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

RE: whitespace in 1.1

normalize line
> 	 the characters passed to an application by the XML processor
> 	 must be as if the XML processor normalized all line breaks
> 	 in external parsed entities (including the document entity)
> 	 on input, before parsing

In my experience, the words "as if" are often a signal that something is
badly wrong in a spec. Either the processor should normalize line
breaks, in which case it must be made very clear at which stage of
processing it does so, or it shouldn't normalize them. Saying that it
behaves for some purposes as it it normalized them and for other
purposes as if it didn't is a sure path to ambiguity, and a sure signal
that the processing model has not been adequately defined.

There are examples of this in XSLT 1.0: 

"the stylesheet is treated as if neither processing instruction nodes
nor comment nodes were included in the tree that represents the
stylesheet" - but is this the tree before or after whitespace stripping?

"document('') refers to the root node of the stylesheet; the tree
representation of the stylesheet is exactly the same as if the XML
document containing the stylesheet was the initial source document" -
does this "as if" override the previous "as if"?

In all these cases the problems would be avoided by describing a
processing model in which the stages of processing (of an object such as
a stylesheet) are explicitly described, and constraints are defined on
the object at a specific stage of processing.

Michael Kay
Software AG
home: Michael.H.Kay@n...
work: Michael.Kay@s... 


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.