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

RE: Normalize-Space for a template

Subject: RE: Normalize-Space for a template
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 2 May 2003 22:28:37 +0100
normalize space in for loop
> I tried your approach.  It works well.
> Just wondering though:  is there a way to strip spaces from a 
> template that has been called?  My example of a URL and QUERY 
> and DISPLAY was a pretty simple one... if this was a much 
> more complicated (involved) template, it seems there must be 
> a way to "STRIP" the spaces from this result.
> 
Just avoid putting the spaces there in the first place. To achieve this,
put all literal text in an <xsl:text> element:

> >      <a>
> >          <xsl:attribute name="href">
> >             <xsl:value-of select="$url"/>
			<xsl:text>&amp;</xsl:text>
> >          <xsl:value-of select="$Query"/>
> >             </xsl:attribute>
> >          <xsl:value-of select="$Display"/>
> >      </a>

Spaces in the stylesheet are significant only if they are adjacent to
non-whitespace characters.

Michael Kay


 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.