I am trying:
not((starts-with(name(), 'GC') or (starts-with(name(), 'CC')) and
ends-with(name(),'-POUND-') and
and I get an error:
ends-with() is an unknown XSLT function.
But when I look it up, it is there in various places, such as:
http://www.w3schools.com/Xpath/xpath_functions.asp#string
Does 2005 use a different version of XSLT?
Thanks,
Tom
"tshad" <ts...@dslextreme.com> wrote in message
news:ulySVeN#IHA....@TK2MSFTNGP04.phx.gbl...
'ends-with' is XPath 2.0, therefore, for all practical purposes, you need an
XSLT 2.0 processor. None of Microsoft's products support version 2.0.
You can either re-write your XSLT of use Saxon which has a free .NET
version. You won't ,however, be able to debug in Visual Studio, you'll need
to use something like Altova XML Spy.
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
Are they planning to?
Thanks,
Tom
A workaround is to use the following XPath expression (or to wrap it in a
named template):
$pPattern
=
substring
($pString,
string-length($pString) - string-length($pPattern)+1
)
Cheers,
Dimitre Novatchev
"tshad" <ts...@dslextreme.com> wrote in message
news:ulySVeN%23IHA...@TK2MSFTNGP04.phx.gbl...