problem with extensions functions in 10.1 ( worked in 9.x )
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 13
- Joined: Thu Dec 13, 2007 1:21 am
- Location: University of Virginia
problem with extensions functions in 10.1 ( worked in 9.x )
In oxygen 9.x, I could drop a jar file that defined xpath extension functions into
oxygen/lib, and these functions would be recognized both for validation and
debugging.
In oxygen 10.1 (using Saxon B 9.1.0.5), this method is no longer working.
I've also tried defining a transformation scenario and adding the jar to that
scenario. With both methods, I get an error:
SystemID: /Java/apache-tomcat-6.0.18/webapps/vivaxtf/style/textIndexer/common/preFilterCommon.xsl
Severity: fatal
Description: Error in call to extension function {public static boolean org.cdlib.xtf.xslt.FileUtils.exists(net.sf.saxon.expr.XPathContext,java.lang.String)}: Exception in extension function java.lang.NoSuchMethodError: net.sf.saxon.expr.XPathContext.getOrigin()Lnet/sf/saxon/trace/InstructionInfoProvider; - net.sf.saxon.expr.XPathContext.getOrigin()Lnet/sf/saxon/trace/InstructionInfoProvider;
Start location: 46:0
oxygen/lib, and these functions would be recognized both for validation and
debugging.
In oxygen 10.1 (using Saxon B 9.1.0.5), this method is no longer working.
I've also tried defining a transformation scenario and adding the jar to that
scenario. With both methods, I get an error:
SystemID: /Java/apache-tomcat-6.0.18/webapps/vivaxtf/style/textIndexer/common/preFilterCommon.xsl
Severity: fatal
Description: Error in call to extension function {public static boolean org.cdlib.xtf.xslt.FileUtils.exists(net.sf.saxon.expr.XPathContext,java.lang.String)}: Exception in extension function java.lang.NoSuchMethodError: net.sf.saxon.expr.XPathContext.getOrigin()Lnet/sf/saxon/trace/InstructionInfoProvider; - net.sf.saxon.expr.XPathContext.getOrigin()Lnet/sf/saxon/trace/InstructionInfoProvider;
Start location: 46:0
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: problem with extensions functions in 10.1 ( worked in 9.x )
The extensions should be visible once you paste the jar in the lib folder. From the error message however it seems that the extensions do not work with the latest version of Saxon that comes with oXygen 10.1. Please try to re-compile them with Saxon 9.1.0.5 and see if that works.
Best Regards,
George
Best Regards,
George
George Cristian Bina
-
- Posts: 13
- Joined: Thu Dec 13, 2007 1:21 am
- Location: University of Virginia
Re: problem with extensions functions in 10.1 ( worked in 9.x )
It does appear to be a saxon issue and not oxygen.
It works from the command line for ver 9.0.0.4J
It does not work from command line for saxonb9-1-0-5j.
I haven't yet found anything in the saxon release note that would explain
why it broke.
Not sure what you mean by compile with 9.1.0.5 .
The extension functions don't reference saxon, so saxon isn't used in
compiling any extensions. From the extensions POV, version of saxon
doesn't matter. Obviously, this isn't the case the other way around.
It works from the command line for ver 9.0.0.4J
It does not work from command line for saxonb9-1-0-5j.
I haven't yet found anything in the saxon release note that would explain
why it broke.
Not sure what you mean by compile with 9.1.0.5 .
The extension functions don't reference saxon, so saxon isn't used in
compiling any extensions. From the extensions POV, version of saxon
doesn't matter. Obviously, this isn't the case the other way around.
-
- Posts: 13
- Joined: Thu Dec 13, 2007 1:21 am
- Location: University of Virginia
Re: problem with extensions functions in 10.1 ( worked in 9.x )
Oops. I was looking at "Extensions" rather than "Extensibility" section:I haven't yet found anything in the saxon release note that would explain
why it broke.
http://www.saxonica.com/documentation/c ... ity91.html
It may have something to do with the tightening of the type rules.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service