RE: [xsl] method='text' ... whitespace problems

Subject: RE: [xsl] method='text' ... whitespace problems
From: DPawson@xxxxxxxxxxx
Date: Tue, 19 Nov 2002 10:27:45 -0000
DC wrote:
> XSLT1 is delightfully quiet about newlines in text output 

Mike, how does 6.5.2 do on this please?


> (XSLT2 is more
> explict and usefully states that #10 characters will, as in 
> xml output, 
> produce a system specific line end).

That's good. Thanks David.


> 
> However xslt1 is silent so if you are on dos and want to 
> generate a crnl
> pair then you probably have to use
> <xsl:text>&#10;&#13;</xsl:text>
> as your 
> <xsl:text>
> </xsl:text>
> is equivalent to
> <xsl:text>&#10;</xsl:text>
> even if the file has dos line ends as teh xml parser 
> normalises all line
> endings to #10 on the way in.

That's a nice gotcha :-)


Thanks David. V. useful.

Regards DaveP.

** snip here ****



- 

NOTICE: The information contained in this email and any attachments is 
confidential and may be legally privileged. If you are not the 
intended recipient you are hereby notified that you must not use, 
disclose, distribute, copy, print or rely on this email's content. If 
you are not the intended recipient, please notify the sender 
immediately and then delete the email and any attachments from your 
system.

RNIB has made strenuous efforts to ensure that emails and any 
attachments generated by its staff are free from viruses. However, it 
cannot accept any responsibility for any viruses which are 
transmitted. We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email 
and any attachments are those of the author and do not necessarily 
represent those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread