[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Question on space normalization in serialization
On Tue, 1 Sep 2015, David Carlisle d.p.carlisle@xxxxxxxxx wrote:
[explaining that what I saw was the result of attribute value normalization by the parser] Of course... and would have been obvious to me if I were processing XML containing "data" instead of working on XML containing "code". Sometimes I forget that XSLT is actually XML before it is anything else. Thanks! David On 1 September 2015 at 22:16, David Sewell dsewell@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-listI am probably forgetting something basic in the XSLT specs about how string variables are created and evaluated, but I was experimenting with including CSS rules within an XSLT stylesheet and then writing them at run time along with the output of my transformation via xsl:result-document. I discovered that if I put the CSS into a string variable using the @select attribute, linefeeds are not preserved in the output; but if I put the CSS text into a sequence constructor, the linefeeds are preserved in the output. What's the underlying reason, assuming this isn't implementation-dependent? (I'm testing with Saxon; XSLT 2 and 3 produce identical results.)
|
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
|