A
Abdelhalim
Hello,
I'm using xalan-j 2.6, and trying to invoke a transformation using XSL
file that contains the function "empty", but I'm getting the below
exception, I think the empty function is a valid XPath function, and
XML Spy can translate docuements using this XSL file without any
problems.
Is it a bug in xalan? I tried 2.7 but I got the same exception.
Any idea what's happening?
javax.xml.transform.TransformerException: Could not find function:
empty
at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:602)
at
org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:
1449)
at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:
1388)
at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:
1287)
at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:
1220)
at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:
1178)
at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:
1084)
at
org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:
1005)
at
org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:
947)
at
org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:
872)
I'm using xalan-j 2.6, and trying to invoke a transformation using XSL
file that contains the function "empty", but I'm getting the below
exception, I think the empty function is a valid XPath function, and
XML Spy can translate docuements using this XSL file without any
problems.
Is it a bug in xalan? I tried 2.7 but I got the same exception.
Any idea what's happening?
javax.xml.transform.TransformerException: Could not find function:
empty
at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:602)
at
org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:
1449)
at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:
1388)
at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:
1287)
at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:
1220)
at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:
1178)
at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:
1084)
at
org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:
1005)
at
org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:
947)
at
org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:
872)