[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: me@xxxxxxxxxxxx
Date: Fri, 02 May 2003 13:17:14 -0700 (PDT)
xsl enter
> In your example, I didn't see where you performed an
> "normalization" of
> white space.  Is that because with this approach, it
is
> not necessary?
It is not necessary because I didn't introduce any
white space into what will become the href value
(granted that could have been due to my editor). The
lines:

<xsl:attribute name="href">
<xsl:value-of select="$fullURI"/>
</xsl:attribute>

could read

<xsl:attribute name="href">
<xsl:value-of select="normalize-space($fullURI)"/>
</xsl:attribute>

or even

<xsl:attribute name="href"><xsl:value-of
select="normalize-space($fullURI)"/></xsl:attribute>

The main difference between what I wrote an the
original was I am building the value-of the href before
I am using it using

<xsl:variable name="fullURI">
<xsl:value-of select="$url"/>&<xsl:value-of
select="$Query"/>
</xsl:variable>

So its "all put together" when I use it. The way it was
originally read (to the parser at least)

<xsl:attribute name="href">[enter]
[tab]<xsl:value-of select="$url"/>&[enter]
[tab]<xsl:value-of select="$Query"/>[enter]
</xsl:attribute>

Which could produce unsightly white space.

hope that helps (and I didn't make any errors in my
explanation)

    _/  _/_/    _/_/_/
   _/_/   _/ _/     _/
  _/               _/
 _/             _/
_/          _/_/_/_/
http://treebeard.sourceforge.net
http://ashpool.sourceforge.net

 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.