Re: strip non-text space, returns, tabs, etc...

Subject: Re: strip non-text space, returns, tabs, etc...
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 29 Nov 1999 21:40:45 GMT

<xsl:element name="A">
        <xsl:attribute name="href"><xsl:value-of
select="myValue"/></xsl:attribute>
        <xsl:text>This is a link.</xsl:text>
</xsl:element>


don't do that, do this

<xsl:element name="A">
        <xsl:attribute name="href"><xsl:value-of
select="normalize-space(myValue)"/></xsl:attribute>
        <xsl:text>This is a link.</xsl:text>
</xsl:element>


or simpler, this

<A name="{normalize-space(myValue)}">
  <xsl:text>This is a link.</xsl:text>
</A>

David


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


Current Thread