Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > javax.xml.transform.TransformerException: Could not find function: empty

Reply
Thread Tools

javax.xml.transform.TransformerException: Could not find function: empty

 
 
Abdelhalim
Guest
Posts: n/a
 
      07-05-2007
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(XPathP arser.java:602)
at
org.apache.xpath.compiler.XPathParser.FunctionCall (XPathParser.java:
1449)
at org.apache.xpath.compiler.XPathParser.PrimaryExpr( XPathParser.java:
138
at org.apache.xpath.compiler.XPathParser.FilterExpr(X PathParser.java:
1287)
at org.apache.xpath.compiler.XPathParser.PathExpr(XPa thParser.java:
1220)
at org.apache.xpath.compiler.XPathParser.UnionExpr(XP athParser.java:
117
at org.apache.xpath.compiler.XPathParser.UnaryExpr(XP athParser.java:
1084)
at
org.apache.xpath.compiler.XPathParser.Multiplicati veExpr(XPathParser.java:
1005)
at
org.apache.xpath.compiler.XPathParser.AdditiveExpr (XPathParser.java:
947)
at
org.apache.xpath.compiler.XPathParser.RelationalEx pr(XPathParser.java:
872)

 
Reply With Quote
 
 
 
 
Twisted
Guest
Posts: n/a
 
      07-06-2007
On Jul 5, 6:11 pm, Abdelhalim <abdelha...@gmail.com> wrote:
> javax.xml.transform.TransformerException: Could not find function:


javax.xml.transform.TransformerException: More than meets the eye!
at org.prime.optimus.Transformer.becomeTruck() (Transformer.java:407)
at org.prime.optimus.Transformer.beginFancyStuntDrivi ng()
(Transformer.java:719)
at
org.prime.optimus.Transformer.openWhoopAssCan(org. prime.optimus.WhoopAssCan)
(Transformer.java:113)
at
org.prime.optimus.Transformer.threatDetected(org.p rime.optimus.Decepticon)
(Transformer.java:95)
at org.prime.optimus.SystemThread.run() (SystemThread.java: 17)
at org.prime.optimus.Main.main(int,char[]) (Main.java: 13)

Sorry, couldn't resist.

 
Reply With Quote
 
 
 
 
Tom Hawtin
Guest
Posts: n/a
 
      07-06-2007
Abdelhalim wrote:
>
> 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.


Do you mean that you think empty is a standard function, or that you
have defined a function called "empty" in the XSLT file? If the former,
why do you think that? If the latter, Xalan does not support XSLT 2.0 as
yet, which I believe is necessary to define a function without
non-standard extensions.

Tom Hawtin
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not find function: empty Abdelhalim XML 5 07-06-2007 05:40 PM
Could not connect to mail server System.Web Could not access 'CDO.Message' object. ????? Adam Knight ASP .Net 1 12-05-2005 05:38 AM
Altova Mapforce - xml 2 xml map: empty elements output although input element is not empty Lukas XML 3 11-10-2005 02:25 PM
Error Message: Outlook Express Could Not Be Started Because Msoe.dll Could Not Be Loaded Dutch Treat Computer Support 4 06-21-2004 02:01 PM
Project could not be opened because a language-specific compiler could not be instantieted Roxanne ASP .Net 0 07-04-2003 10:22 AM



Advertisments