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

Re: Attribute normalisation and character entities

  • From: richard@c... (Richard Tobin)
  • To: xml-dev@i...
  • Date: 27 Jan 2000 23:26:57 GMT

normalisation introductory note
In article <3890CE2A.633285@p...>,
David Brownell <david-b@p...> wrote:

>There are two curious points in 3.3.3 ... first, that character and
>entity refs may appear, and second that CRLF sequences may appear (line
>endings already having been normalized).

What makes you sure line ends have already been normalised?  In 2.11
it refers to converting them to #xA before passing them to the
application, and suggests that it can be implemented by normalising
before parsing (but doesn't have to be).

I take the line-end conversion in 3.3.3 as duplicating the requirement
in 2.11.  If you implement it by normalising before parsing, you won't
have to do anything about it in attribute normalisation.

Similarly, I think the entity expansion in 3.3.3 is duplication of
4.4.

And finally, I suspect that the authors just forgot the possibility
of non-#x20 whitespace (arising from character entity references) in
the paragraph about trimming and compressing spaces.

The simplest solution seems to me to leave normalisation as it is, and
change the Names and Nmtokens productions (which are only used for
tokenised attribute) to require #x20 rather than S.  This would make
"foo&#9;bar" illegal as a tokenised attribute, and a good thing too.

-- Richard
-- 
Spam filter: to mail me from a .com/.net site, put my surname in the headers.

"The Internet is really just a series of bottlenecks joined by high
speed networks." - Sam Wilson

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/ or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom@i... the message
unsubscribe xml-dev  (or)
unsubscribe xml-dev your-subscribed-email@your-subscribed-address

Please note: New list subscriptions now closed in preparation for transfer to OASIS.



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.