Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Replace attribute value >Thread Next - Re: Replace attribute value Re: Replace attribute valueTo: NULL Date: 2/8/2008 4:20:00 PM Thanks. One last question : Could we use a function to translate ? This will eliminate the need to copy strings for each attribute I would like to process. "Martin Honnen" <mahotrash@y...> wrote in message news:uZ3rWOmaIHA.1376@T...... > Olivier MATROT wrote: >> There is an error on "xsl:template" (<xsl:template >> match="User/@advancedViewing[translate(., $ul, $ll) = 'vrai']">) >> "Variables cannot be used within this expression" > > My bad, forgot about that issue with variables. In that case you have to > spell out the string the variables refer to e.g. > > <xsl:template > match="User/@advancedViewing[translate(., > 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'vrai']"> > > And the list of charactes (above A..Z) is just an example, in case you > want to convert French strings with accents you need to add those to the > second and third argument of the translate call. > > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
