|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Carriage Return & # 13 ;
Jan Mendling wrote: ... and I want to identify the carriage return in this Text-Element. The XSLT processor wont see carriage returns (0xD) characters, because they are transformed to linefeed characters (0xA) by the parser before passed up (there are exceptions which are not of interest here). See http://www.w3.org/TR/2000/REC-xml-20001006#sec-line-ends 2.a) This is the template I wrote: > substring-before($Text,'$UC13'),
^ ^
[snip]
This will return the entire $Text unless it contains the string '$UC13'.
Same for the substring-after. This means you basically pass
concat($Text,' UC13',$Text) to the recursive invocation of the template,
and the recursion will never terminate.J.Pietschmann XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








