ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Fix <jakob....@gmail.com>
Subject xslt task problem (xpath expression)
Date Tue, 25 May 2010 13:03:34 GMT
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-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message