Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: How to replace chars in a string [Thread Next] Re: How to replace chars in a stringTo: 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
