[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: More Conformance Test suite questions

  • From: Rob Lugt <roblugt@e...>
  • To: Gary Stephenson <garys@i...>, xml-dev@l...
  • Date: Tue, 26 Jun 2001 12:02:32 +0100

gary stephenson
Gary Stephenson wrote:
> > "When an XML processor recognizes a reference to a parsed entity, in
> > to validate the document, the processor must include its replacement
> >
> > So, I suggest you only need to read external entities when they are
> > referenced.
> Assuming the above to be correct, it raises the obvious question as to why
> your validator allowed the test to pass. It wasn't in the original list of
> problems you posted - was it?  Or is the test actually still in error
> this - for some reason that currently escapes me.


our XML Validator allows this test to pass because the test doesn't contain
a recognizable reference to %bad-pe;.


<!ENTITY % bad-pe SYSTEM "pe01.ent">
<!ATTLIST root
    something CDATA   "%bad-pe;"
    evil (doctor | scott) "doctor"

What appears to be a reference to %bad-pe; isn't really a reference because
it appears inside a literal.  PEs are not recognised within literals except
for entity value literals.  In this case the 'something' attribute has a
literal default value of "%bad-pe;" - which is perfectly valid.


Rob Lugt
ElCel Technology


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.