|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: question about 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, ' ')"> ^^^ 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, ' ')"> 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








