[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
> 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 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|