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

Re: Parser Question.

  • From: John Cowan <cowan@l...>
  • To: bryanb@u... (Brown Bryan)
  • Date: Thu, 1 Jun 100 04:18:57 -0400 (EDT)

rss xml order dependency
Brown, Bryan scripsit:

> A parser should issue an error because the entity decl in the internal
> subset references a notation "gif" which has not yet been declared. But in
> the XML conformance tests in one of the sun tests a very similiar example
> arises and the Conformace test says that it should be a valid document. Is
> this correct ?

There is no requirement that a notation declaration appear before the
unparsed entity declaration.  In general, the only order dependency
in DTDs is that parameter entities must not be used before they are
declared.

> Question 3.
> In the external subset PEs can occur anywhere, this seems to me to make the
> process of parsing an external production very complicated because I need to
> check at each step of the way if the next token is a PE reference, does
> anyone have a better way ?

That's the way it's done.  An easy way is to check at a low level
for &s, capture the following name and ;, and "push back" the definition
onto the input stream (most environments don't allow pushing back an
arbitrary number of characters, except for Java, so you may need to
build the facility yourself).

> Question 4.
> The spec states that if a SystemLiteral has a fragment identifier the parser
> may signal an error, yet the conformance tests offer a document which is
> supposed not-wf because it has a SystemLiteral with a fragment identifier.
> So is it an error or is it the parser option what to do ?

It is none too clear; the errata process is taking up that very point.

-- 
John Cowan                                   cowan@c...
	Yes, I know the message date is bogus.  I can't help it.
		--me, on far too many occasions

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.