Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Abdelhalim - 05 Jul 2007 23:11 GMT
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)
Twisted - 06 Jul 2007 03:56 GMT
> 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.beginFancyStuntDriving()
(Transformer.java:719)
at
org.prime.optimus.Transformer.openWhoopAssCan(org.prime.optimus.WhoopAssCan)
(Transformer.java:113)
at
org.prime.optimus.Transformer.threatDetected(org.prime.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.
Tom Hawtin - 06 Jul 2007 11:04 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.