[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Normalize-Space for a template

Subject: Normalize-Space for a template
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Fri, 2 May 2003 11:18:08 -0700
xsl normalize space
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"/>&amp;
         <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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.