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

Re: implementation of xsl:strip-space. RESOLUTION

Subject: Re: implementation of xsl:strip-space. RESOLUTION
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Tue, 28 Jan 2003 02:34:48 +0100
xsl strip space attribute
Hello Steve,

in general it's better to use

<xsl:variable name="imagefilename" select="normalize-space(.)"/>

instead of

<xsl:variable name="imagefilename"><xsl:value-of select="normalize-space(.)"/></xsl:variable>.

You won't have whitespace characters then and a node set or here a string, otherwise you have a result tree fragment, which must be converted into a string when used.

For more information:
http://www.w3.org/TR/xslt#section-Result-Tree-Fragments

Regards,

Joerg

Wright, Steve wrote:
Thanks Sherzod and Joerg for your suggestions.. It turns out that the
carraige returns were coming in through the varialbe 'imagefilename' that I
was setting (below), so by using: <xsl:variable
name="imagefilename"><xsl:value-of select="normalize-space(.)"
/></xsl:variable>, it works now.

Thanks again for your thoughts and comments.

-steve

p.s. I'm using the XT processor.


-----Original Message----- From: Sherzod Ruzmetov [mailto:xslt@xxxxxxxxxxxx] Sent: Monday, January 27, 2003 12:15 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: implementation of xsl:strip-space


:<a> :<xsl:attribute name="href"> :<xsl:text>javascript:bigFig('</xsl:text> :<xsl:value-of select="$imagelabel" /> :<xsl:text>','../fig/big/</xsl:text> :<xsl:value-of select="$imagefilename" /> :<xsl:text>','</xsl:text> :<xsl:value-of select="$imagelabel" /> :<xsl:text>');</xsl:text> :</xsl:attribute>

Ok, don't use <xsl:attribute..>! Simply hard code the attributes.
It should work afterwards as expected!
http://www.handalak.com/styles/global.xsl
is the actual style sheet used by http://vs.handalak.com. Find the rules for
"deflist"
(definition lists). These are the lists that expand and collapse on mouse
click.

Let's see if it helps.

sherzod


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.