DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16094>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16094

Xerces fails on empty entities

           Summary: Xerces fails on empty entities
           Product: Xerces2-J
           Version: 2.2.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DTD
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I'm playing around with JBoss and its data sources. I have several data sources 
that differ only in a suffix in the XADataSoureName.
So I made a template with an internal dtd and the only thing a have to change 
is a value in the internal dtd to get a new data source.
I have xerces in directory $JAVA_HOME/jre/lib/endorsed because I need xerces 
and not crimson as xml parser. I use JDK1.4.1 on Windows 2000.

Here is a xml fragment:
<!ENTITY house-id "">

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE server [
<!ENTITY house-id "">
<!ENTITY db-host "...">
<!ENTITY db-user "...">
<!ENTITY db-pass "...">
<!ENTITY db-datasource-class "...">
<!ENTITY jndi-ds-prefix "jdbc/">
]>

<server>

 ....


                <attribute name="JndiName">
                    &jndi-ds-prefix;jvadta&house-id;
                </attribute>


</server>


When I leave the entity 'house-id' empty, then JBoss tries to bind the data 
source to 'java:/'. That means to me that xerces drops both entities in the 
given element.

When I set the entity 'house-id' to " " (there is really a blank) then xerces 
normalizes this to "" (there is really no blank) and all works fine.


HTH

Marco Lehmann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to