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

Re: trying to drop leading/trailing WS text nodes from

Subject: Re: trying to drop leading/trailing WS text nodes from verbatim
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 3 Sep 2003 14:47:50 +0100
control m xml
> but the code you're referring to is for removing *leading* linefeeds
> from the left, so that normalization won't have any effect, will it?

yes, any literal control-m character or literal control-j control-m pair
is effectively replaced by a single control-j _before_ XML parsing
happens. this is mandated by the XML spec.

> and the normalization you're talking
> about is only for the end of lines, no?

yes but where end-of-line is by definition any literal control-m
character or literal control-j control-m pair occuring anywher in the
file.

The only way to get a control-m into an XML file is to have &#13; or
some equivalent construct. Writing a line end on a macintosh or
windows machine will only produce a unix style control-j in the result of
parsing the document. So basically if you are looking for line ends you
only ever need look for control-j.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.