[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: implementation of xsl:strip-space. RESOLUTION
Hello Steve,
in general it's better to use <xsl:variable name="imagefilename" select="normalize-space(.)"/> instead of <xsl:variable name="imagefilename"><xsl:value-of select="normalize-space(.)"/></xsl:variable>. You won't have whitespace characters then and a node set or here a string, otherwise you have a result tree fragment, which must be converted into a string when used. For more information: http://www.w3.org/TR/xslt#section-Result-Tree-Fragments Regards, Joerg Wright, Steve wrote: Thanks Sherzod and Joerg for your suggestions.. It turns out that the carraige returns were coming in through the varialbe 'imagefilename' that I was setting (below), so by using: <xsl:variable name="imagefilename"><xsl:value-of select="normalize-space(.)" /></xsl:variable>, it works now. 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
|