I believe the builtin XPath/XSLT is 1.0 only - not 2.0. You will have to enable Saxon to use it...
On Tue, 25 May 2010, Jakob Fix wrote:
Hi, any idea why the following xpath expressions are not understood by ant's builtin xsl task? Doesn't seem out-of-spec to me, and saxon groks it, the stylesheet is version 2.0. elt1[elt2[matches(text(), '^[\d]+$')]] elt1[elt2[matches(., '^[\d]+$')]] elt1[elt2[matches(., '^\d+$')]] elt1[matches(., '^\d+$')] ant version 1.8.1 I wanted to use saxon's saxon-xslt task instead but it doesn't support the filedirparameter="dirname" and filenameparameter="filename" params which I also need. K:\tests>ant Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar Buildfile: K:\tests\build.xml KTAGR: [xslt] Transforming into K:\tests [xslt] Processing K:\tests\input\KTAGR_1_en.ps.xml to K:\tests\resources\KTAGR_1_en.ps.xml [xslt] Loading stylesheet K:\tests\convert.xsl [xslt] : Error! Error checking type of the expression 'funcall(matches, [step("self", -1), literal-expr(\d+)])'. [xslt] : Fatal Error! Could not compile stylesheet [xslt] Failed to process null BUILD FAILED K:\tests\build.xml:123: Fatal error during transformation any pointers greatly appreciated. cheers, Jakob. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
-- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-890-8117 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org