Problems debugging stylesheets with oXygen

63 views
Skip to first unread message

Bridger Dyson-Smith

unread,
May 9, 2013, 11:37:27 AM5/9/13
to XTF Users List
Hi all, 

Is anyone using oXygen's XML IDE to debug stylesheets? I'm attempting to follow the steps in the XTF documentation [1], but I'm getting errors like

XPST0017 XPath syntax error at char 0 on line 51 in {FileUtils:exists($dcpath)}: Cannot find a matching 1-argument function named {java:org.cdlib.xtf.xslt.FileUtils}exists(). The namespace URI and local name are recognized, but the number of arguments is wrong

I'm including the $XTF/WEB-INF/lib/xtf.jar in oXygen and the attempted transformation is using Saxon-PE 9.4.0.6. 

Any suggestions as to what may be going wrong?
Thanks!
Bridger

steve.m...@gmail.com

unread,
Jun 17, 2013, 2:44:43 PM6/17/13
to xtf-...@googlegroups.com
Copy xtf.jar into /Applications/oxygen/lib.
Start or restart Oxygen.
You may also have to remove the extension added in the transformation scenario
in the documentation.


I removed my xtf.jar from /Application/oxygen/lib,
restarted oxygen, and set xtf/xtf.jar from the debugger 'edit extensions' button
( those instructions in the documentation are likely for older versions of Oxygen )
and I get the same error message as you do.

Adding the jar back and restarting, I still get that error message until I remove
the reference to the external jar from that 'edit extensions' .

No idea why it doesn't work the other way.
Later versions of Saxon changed it's support for external functions.
Perhaps it has something to do with that.


-- Steve Majewski / UVA Alderman Library



Martin Haye

unread,
Jun 17, 2013, 5:44:30 PM6/17/13
to xtf-...@googlegroups.com
Thank you, thank you Steve! That's the fix I've been needing.

--Martin

________________________________________
From: xtf-...@googlegroups.com [xtf-...@googlegroups.com] on behalf of steve.m...@gmail.com [steve.m...@gmail.com]
Sent: Monday, June 17, 2013 11:44 AM
To: xtf-...@googlegroups.com
Subject: Re: [xtf-user] Problems debugging stylesheets with oXygen

--
You received this message because you are subscribed to the Google Groups "XTF Users List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtf-user+u...@googlegroups.com.
To post to this group, send email to xtf-...@googlegroups.com.
Visit this group at http://groups.google.com/group/xtf-user.
For more options, visit https://groups.google.com/groups/opt_out.


Bridger Dyson-Smith

unread,
Jun 18, 2013, 7:29:16 PM6/18/13
to XTF Users List
Hi Steve - 
I have to echo Martin here -- thanks so much for figuring this out!!

Bridger

Hillel Arnold

unread,
Apr 13, 2015, 4:03:52 PM4/13/15
to xtf-...@googlegroups.com
Reviving this old thread, as I'm experiencing exactly the same issue as Bridger. Unfortunately, the fix that Steve suggests below is not working for me. I copied xtf.jar over into /Applications/oxygen/lib and then added that file in the transformation as an extension. When I run the transformation, I'm getting a whole bunch of errors like:

Cannot find a matching 1-argument function named {java:org.cdlib.xtf.xslt.Session}getData(). The namespace URI and local name are recognized, but the number of arguments is wrong

Any ideas?
Reply all
Reply to author
Forward
0 new messages