Subject: [xsl] How to preserve whitespace in the stylesheet? From: "Robert Nicholson" <robert@xxxxxxxxxxxx> Date: Wed, 20 Dec 2000 18:48:08 +0700 |
I have the following template rule <xsl:template name="separated-list"> <xsl:param name="nodes"/> <xsl:param name="separator"/> <xsl:for-each select="$nodes"> <xsl:value-of select="."/> <xsl:if test="position() != last()"> <xsl:value-of select="$separator"/> </xsl:if> </xsl:for-each> </xsl:template> Sometimes separator is "," and other times it's a <BR> or that's the plan. However, I'm getting hung up on XSLT stripping the whitespace from the tree obtained from the stylesheet. How can I ensure that the whitespace in this case in preserved? I call this rule thus <xsl:call-template name="separated-list"> <xsl:with-param name="nodes" select="note"/> <xsl:with-param name="separator"> <BR/> </xsl:with-param> </xsl:call-template> also, where is it documented exactly why you cannot do <xsl:text><BR/><xsl:text>? XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Converting e.g. "<tagn, David Carlisle | Thread | RE: [xsl] How to preserve whitespac, Kay Michael |
Re: [xsl] Netscape Navigator not di, David Carlisle | Date | [xsl] Ommitting value of a copied i, Yunus Karakaya |
Month |