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

Re: Parameter Entity Replacement and the XML 1.0 Grammar

  • From: Tony Graham <tgraham@m...>
  • To: XML-Dev Mailing list <xml-dev@i...>
  • Date: Wed, 17 Nov 1999 22:48:50 -0400 (EST)

xml 1.0 entity
At 17 Nov 1999 10:24 -0500, G. Ken Holman wrote:
 > Today I started using a validating parser on the source file and it is 
 > choking on the entity declaration.
 > I immediately thought the new parser I was using was at fault, but thought 
 > I'd check XML 1.0 and saw that perhaps parameter entity references are not 
 > allowed according to the grammar:
 > So, my question is:  Does 4.4.8 take precedence over the grammar 
 > productions (the new parser is incorrect), or is the behaviour I am used to 
 > not correct (XT is incorrect)?

4.4.8 also says that "its replacement text is enlarged by the
attachment of one leading and one following space (#x20) character".

 > T:\ftemp>type test.ent
 > <!ENTITY % e "wmf"><!--non .gif extension-->
 > <!NOTATION %e; SYSTEM "">
 > <!ENTITY % filename "'abc.%e;'">

This evaluates to "'abc. wmf '".  According to RFC 2396, spaces aren't
allowed in URIs.  Perhaps the parser is giving a not very useful error
message in response to the spaces in the URI.

What happens when you use:

<!ENTITY % filename "'abc.wmf'">


Tony Graham
Tony Graham                            mailto:tgraham@m...
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9632
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
  Mulberry Technologies: A Consultancy Specializing in SGML and XML

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.