|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Whitespace problem in CSV-like outputAndrew Welch andrew.j.welch at gmail.comMon Oct 20 12:28:24 PDT 2008
> Trying to understand why it is working (it does, tested it with Saxon): > Appending the line feed as a text node seems to influence on the > interpretation of the other items returned that are now seen as text nodes, > too, (and thus serialized as immediately adjacent strings) rather than as > strings that need to be separated with spaces. Adjacent text nodes are merged into a single text node... so a sequence of text nodes becomes a single text node, requiring no separators. For example: "//text()" will ultimately return a single text node "for $x in //text() return xs:string($x)" will return sequence of strings separated by a space (provided count($x) > 1) -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
|
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
|






