"Biron,Paul V" <[EMAIL PROTECTED]> wrote on 05/18/2005 01:11:48 PM:
> > -----Original Message----- > > From: Joseph Kesselman [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, May 17, 2005 1:17 PM > > To: [email protected] > > Subject: Re: How to use entities with XML Schema? > > > > Officially (officiously?), the folks who designed schemas > > expect us to stop using entities and migrate to some other > > variety of macro/external-data reference. <snip/> > [1] http://www.w3.org/TR/REC-xml/#wf-entdeclared > [2] http://www.xml.com/axml/notes/EntDecExeg.html (a nice > explanation of the rule that appears in Tim Bray's Annotated XML Spec, v1) > [3] In the xerces2-j FAQ on configuration for validation [4] there > is note that reads: "An application may choose to create a > configuration that does not have a DTD validator but has an XML > Schema validator. This will turn Xerces into a non-compliant > processor according to XML 1.0 and XML Schema specifications, thus > the validation/augmentation outcome is undefined." I completely > disagree with this note and think xerces is incorrect in this > behavior. I suspose their reasoning is that the presence of a <! > DOCTYPE> in the instance requires that DTD validation be performed > but this isn't sanctioned by the XML spec. The presence of <! > DOCTYPE> is NOT the signal to perform validation [5] although many > processors believe it is. This section of the FAQ is targeted at XNI parser configuration authors. I admit that could be made clearer. In Xerces the DTD validator component (even when validation is turned off) provides attribute defaults, attribute types from the DTD and determines which white space characters are element content whitespace (also known as ignorable whitespace). A parser configuration which doesn't include a DTD validator in the pipeline may be missing properties from the infoset, therefore it is not a compliant XML 1.0 processor. What validating and non-validating processors do is described in another FAQ ( http://xml.apache.org/xerces2-j/faq-write.html#faq-2). > [4] http://xml.apache.org/xerces2-j/faq-pcfp.html > [5] http://www.xml.com/axml/notes/DoctypeMeans.html Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
