|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: invalid xpath?
It's probably worth noting that all three examples are supposed to be output as <code> abc<nl/> def<nl/> </code> i.e. "soft" newlines are inserted at the beginning and after each <nl/>. This is done to aid human readability (as our humans are imperfect XML parsers). OK, this isn't necessary nor pure, but it ought to be possible. The original stylesheet (thru Saxon) did this nicely, i.e. it roundtripped. Splitting the XPath expression into two conditions is not roundtripping correctly, instead the output is gaining one space per line per invocation. Cheers Trevor -----Original Message----- <snip> we're looking at code samples where spaces are significant, and line breaks are inserted into the text with <nl/> elements. The following three XML fragments need to produce identical output: <code> abc<nl/> def<nl/> </code> <code> abc<nl/> def</nl></code> <code> abc<nl/> def<nl/></code>
|
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
|






