Hi Dean...I did not report it as a bug, I could not determine if was "legal" in the spec or not. I agree with you, once you define an entity, you should be able to reference it whenever you want (within reason).
I will wait til the end of the day, and if no other responses come in I will submit it as a bug. thanks, Tom ps..I am an IBM'er working a contract at Schwab...good work on xerces! > ---------- > From: [EMAIL PROTECTED]:[EMAIL PROTECTED] > Reply To: [EMAIL PROTECTED] > Sent: Thursday, April 20, 2000 10:54 AM > To: [EMAIL PROTECTED] > Cc: [email protected] > Subject: Re: Resend - can ELEMENTS reference ENTITIES? > > > > > 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 > > > >
