Subject: Re: [xsl] removing spaces from attributes with saxon From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx> Date: Mon, 29 Apr 2002 14:58:44 +0200 |
I'm using Saxon652 and got problems when I want to use the normalize-space() - function to remove white-spaces from an attribute.normalize-space() function doesn't remove all white spaces, it's "normalize", not "remove" function, read spec what the normalizing means: http://www.w3c.org/TR/xpath.html#function-normalize-space
<xsl:variable name="f"> <xsl:value-of select="normalize-space(@name)"/> </xsl:variable>
ps.: one more general question: is it not possible to declare variables by referring to values of other variables, as the following example shows:What the expr atribute? There is no such attribute and this should be syntax error at all. Use concat() function to concat string values:
<xsl:variable name="sep" select="system-property('file.separator')"/> <xsl:variable name="dir" expr="{$sep}html{$sep}"/>
-- Oleg Tkachenko Multiconn International, Israel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] removing spaces from attribut, ChivaBaba | Thread | [xsl] A problem with loop and Conca, Mukul . Mudgal |
[xsl] A problem with loop and Conca, Mukul . Mudgal | Date | RE: [xsl] variable declaration, Michael Earls |
Month |