The C++ parser seems to have this problem as well. The deal is that the
parser always has to be looking for PE refs, and probably neither of us
managed to add a check at that point. So we see the % and freak out because
we aren't expected a PE ref there. This should probably be filed as a bug
again both parsers (I'm assuming since you reported it against the Java
parser that it exists there, and we saw it for the first time the other day
against the C++ one while testing something else.)

----------------------------------------
Dean Roddey
Software Weenie
IBM Center for Java Technology - Silicon Valley
[EMAIL PROTECTED]



"Watson, Tom" <[EMAIL PROTECTED]> on 04/20/2000 10:25:04 AM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject:  Resend - can ELEMENTS reference ENTITIES?



<<sorry, don't seem to be subscribed to xerces-j-dev yet>>

Master,

I am having some trouble with enumeration in XML.

Rather than doing this,

<!ELEMENT TxnCode (BUY|SELL|DEP|INT)>

I need to do the following, but it seems to be invalid,

<!ENTITY % validCode "BUY|SELL|DEP|INT">

<!ELEMENT TxnCode (%validCode;)>

This type of syntax is available for ATTLIST, but what about
ELEMENT? I can't carry this value as an attribute in my application
and I want my elements to make use of the Entity/Enum features.

this would also allow me to change my enums in one place.

Grasshopper




Reply via email to