Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: How to replace chars in a string

From: "Dave Rathnow" <drathnow@-----------.-----.--->
To: NULL
Date: 9/1/2005 2:55:00 AM
I'm using Xalan 2.7.0, which would probably explain it since it
only implements XSLT 1.0.  Sorry, I should've check it before
I posted.

"Martin Honnen" <mahotrash@y...> wrote in message
news:eKl2HVjrFHA.3264@T......
>
>
> Dave Rathnow wrote:
>
>
> > <xsl:template match="processedIoPoint">
> >     <xsl:variable name="bar" select="fn:replace(@name,' ', '_')"/>
> >     <channel type="{@type}" value="{scaledValue}" nameAlias="{$bar}"
> > uom="{@units}" qualData="{status}" nameChannel="{@channelName}"/>
> > </xsl:template>"
> >
> > I get some error about there being no "replace" method that takes
> > ([ExpressionContext,] #STRING, #STRING) as arguments.
> >
> > I have two question:  Firt off, am I using the fn:replace function
> > incorrectly
> > and why is the argument "@name" being taken as an expression context and
> > not a string?
>
> Which XSLT processor exactly are you using?
> Is the above supposed to be XSLT/XPath 2.0?
>
> -- 
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent