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

RE: invalid xpath?

Subject: RE: invalid xpath?
From: "Trevor Nicholls" <trevor@xxxxxxxxxxxxxxxxxx>
Date: Thu, 3 Jul 2008 01:26:50 +1200
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>

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-2007 All Rights Reserved.