Newbie - External Java function
Posted: Wed Oct 19, 2011 11:10 am
Hi,
I'm using oXygen 13 for DITA-OT plug-in stylesheet development. My stylesheet uses external Java function as follows:
<xsl:stylesheet version="2.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ahf="http://www.antennahouse.com/names/XSLT/ ... s/Document"
xmlns:axf_xsltutils-saxon="java:jp.co.antenna.axf_xsltutils.SetScript"
xmlns:axf_xsltutils-xalan="xalan://jp.co.antenna.axf_xsltutils.SetScript"
extension-element-prefixes="axf_xsltutils-saxon axf_xsltutils-xalan"
exclude-result-prefixes="axf_xsltutils-saxon axf_xsltutils-xalan xs ahf"
>
...
<xsl:copy-of select="axf_xsltutils-saxon:setScriptSaxon(string($prmText),'∂∆∏∑−∕∙√∞∟∩∫≈≠≡≤≥','Latn')"/>
I added to the corresponding .jar file to the oXygen project file. But in the XSLT stylesheet editing window Saxon outputs the following errror.
"SystemID: D:\DITA-OT1.5.1-FB\plugins\ye_pdf\xsl\ye_dita2fo_bodyelement.xsl
Main validation file: D:\DITA-OT1.5.1-FB\plugins\ye_pdf\xsl\ye_dita2fo_shell.xsl
Scenario name: ye_dita2fo
Engine name: Saxon-EE 9.3.0.5
Severity: fatal
Description: Cannot find a matching 3-argument function named {java:jp.co.antenna.axf_xsltutils.SetScript}setScriptSaxon(). For diagnostics on calls to Java methods, use the -TJ command line option or set the Configuration property FeatureKeys.TRACE_EXTERNAL_FUNCTIONS
Start location: 1318:84
URL: http://www.w3.org/TR/xpath20/#ERRXPST0017"
It seems that Saxon cannot recognize the extension function. But this function works in the actual transform in DITA-OT (Not in oXygen).
Do you have any solution to fix this error message?
Thanks,
Toshihiko Makita
I'm using oXygen 13 for DITA-OT plug-in stylesheet development. My stylesheet uses external Java function as follows:
<xsl:stylesheet version="2.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ahf="http://www.antennahouse.com/names/XSLT/ ... s/Document"
xmlns:axf_xsltutils-saxon="java:jp.co.antenna.axf_xsltutils.SetScript"
xmlns:axf_xsltutils-xalan="xalan://jp.co.antenna.axf_xsltutils.SetScript"
extension-element-prefixes="axf_xsltutils-saxon axf_xsltutils-xalan"
exclude-result-prefixes="axf_xsltutils-saxon axf_xsltutils-xalan xs ahf"
>
...
<xsl:copy-of select="axf_xsltutils-saxon:setScriptSaxon(string($prmText),'∂∆∏∑−∕∙√∞∟∩∫≈≠≡≤≥','Latn')"/>
I added to the corresponding .jar file to the oXygen project file. But in the XSLT stylesheet editing window Saxon outputs the following errror.
"SystemID: D:\DITA-OT1.5.1-FB\plugins\ye_pdf\xsl\ye_dita2fo_bodyelement.xsl
Main validation file: D:\DITA-OT1.5.1-FB\plugins\ye_pdf\xsl\ye_dita2fo_shell.xsl
Scenario name: ye_dita2fo
Engine name: Saxon-EE 9.3.0.5
Severity: fatal
Description: Cannot find a matching 3-argument function named {java:jp.co.antenna.axf_xsltutils.SetScript}setScriptSaxon(). For diagnostics on calls to Java methods, use the -TJ command line option or set the Configuration property FeatureKeys.TRACE_EXTERNAL_FUNCTIONS
Start location: 1318:84
URL: http://www.w3.org/TR/xpath20/#ERRXPST0017"
It seems that Saxon cannot recognize the extension function. But this function works in the actual transform in DITA-OT (Not in oXygen).
Do you have any solution to fix this error message?
Thanks,
Toshihiko Makita