XSL include and schematron
Posted: Mon Jun 11, 2012 3:48 pm
Hi,
I have a schematron document which runs fine in Oxygen XML, but when I try to process the same schematron using commandline I'm having trouble with XSL functions included.
I'm including a bunch of functions to the schematron like this:
At first I had a problem with the "xsl:include"-tag:
From setting up oxygenXML I remembered I had to add "allow-foreign=true". This removed the warning, but I still get errors like:
My command line looks like this:
I'm using the reference implementation from schematron.com for XSLT2 and saxon HE 9.4.0.3. I'm also using Saxon HE in OxygenXML.
Knowing this is a little out of scope of OxygenXML, but maybe I'm missing something obvious in my conversion or the way I'm importing the functions?
Thanks in advance,
Bo
I have a schematron document which runs fine in Oxygen XML, but when I try to process the same schematron using commandline I'm having trouble with XSL functions included.
I'm including a bunch of functions to the schematron like this:
Code: Select all
<xsl:include href="custom_fct.xsl"/>
<ns prefix="fct" uri="http://custom"/>
Code: Select all
Warning: unrecognized element xsl:include
Code: Select all
Error at xsl:when on line 194 column 53 of out_1.xsl:
XPST0017 XPath syntax error at char 0 on line 194 in {fct:func_custom(.)}:
Cannot find a matching 1-argument function named {http://custom}func_custom()
Code: Select all
$SAXON -o:out_1.xsl -s:$SCHEMATRON_FILE \
$ISO_SCHEMATRON_DIR/iso_schematron_skeleton_for_saxon.xsl allow-foreign=true
$SAXON -o:out.results -s:$XML_FILE out_1.xsl allow-foreign=true
Knowing this is a little out of scope of OxygenXML, but maybe I'm missing something obvious in my conversion or the way I'm importing the functions?
Thanks in advance,
Bo