[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Normalize-Space for a template
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|