I use the following without problem neither with C++ parser XML4C 2.3.1 or
with the latest
CVS snapshot of Xerces-C at xml.apache.org:

<!ENTITY % elems "detelem | logvol | material">

<!--XML root element, transient root as well-->
<!ELEMENT DDDB (catalog | catalogref | %elems;)+>


[EMAIL PROTECTED] wrote:
> 
> 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.)

> 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
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 

Radovan Chytracek                     LHCb experiment at CERN
e-mail: [EMAIL PROTECTED]     WWW: http://home.cern.ch/~chytrace
phone:  +41 22 76 72486

Reply via email to