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

Re: question about import/include

Subject: Re: question about import/include
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Fri, 04 Apr 2003 21:46:13 +0200
studio 2003 import include
Craig Kattner wrote:
I have the following stylesheet with a named template called
"convert_linefeeds" which converts CRLF's to new paragraphs of html. It works
fine when the named template is part of the stylesheet. However, I want to
reuse it in other places but when using import/include the template doesn't
work.
...
<xsl:when test="contains($input, '&#13;&#10;')">
                                    ^^^
The problem appears to be here. A conformant XML parser is required to
normalize CRLF pairs into a single LF (Actually it requires special
tricks to get a CR passed through to the reading application, look it
up in the spec). See
 http://www.w3.org/TR/REC-xml#sec-line-ends

Just try
 <xsl:when test="contains($input, '&#10;')">

J.Pietschmann


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



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