|
Subject: [xsl] Normalize-Space for a template From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx> Date: Fri, 2 May 2003 11:18:08 -0700 |
Hello,
The following template create a URL. One or more line returns occur in the
source as well unwanted spaces. I'm trying to figure out how to use
"normalize-space" to strip these unwanted spaces. Here is what I have
tried:
<xsl:template name="makeUrl">
<xsl:param name="Display"/>
<xsl:param name="url"/>
<xsl:param name="Query"/>
<a>
<xsl:attribute name="href">
<xsl:value-of select="$url"/>&
<xsl:value-of select="$Query"/>
</xsl:attribute>
<xsl:value-of select="$Display"/>
</a>
<!-- NORMALIZE THIS STUFF -->
<xsl:value-of select='normalize-space(.)'/>
</xsl:template>
It doesn't work. Any ideas?
Karl
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Can I force XSLT to outpu, me | Thread | RE: [xsl] Normalize-Space for a tem, Passin, Tom |
| Re: [xsl] Can I force XSLT to outpu, me | Date | RE: [xsl] Normalize-Space for a tem, Passin, Tom |
| Month |