Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Rather than waiting for this to be fixed in 1.8.2 and then waiting for everyone to eventually upgrade to 1.8.2, you can roll your own XSLT macro (for situations where you explicitly want to use Saxon, rather than a user selected XSLT engine)</p> <pre><code>&lt;macrodef name="xslt" uri="com.mycompany.mydepartment"&gt; &lt;attribute name="in" /&gt; &lt;attribute name="out" /&gt; &lt;attribute name="style" /&gt; &lt;attribute name="classpath" default="${saxon.jar.path}" /&gt; &lt;attribute name="taskname" default="mydep:xslt" /&gt; &lt;element name="params" optional="true" implicit="true" /&gt; &lt;sequential&gt; &lt;java classname="net.sf.saxon.Transform" classpath="@{classpath}" taskname="@{taskname}"&gt; &lt;classpath path="${saxon.jar.path}" /&gt; &lt;arg value="-s:@{in}" /&gt; &lt;arg value="-xsl:@{style}" /&gt; &lt;arg value="-o:@{out}" /&gt; &lt;params /&gt; &lt;/java&gt; &lt;/sequential&gt; &lt;/macrodef&gt; </code></pre> <p>you can then invoke it like (assuming xmlns:mydep="com.mycompany.mydepartment" is set on the project element)</p> <pre><code>&lt;mydep:xslt in="${myinput}" out="${myoutput}" style="${myxslt}"&gt; &lt;arg value="param1=value1" /&gt; &lt;arg value="param2=value2" /&gt; &lt;arg value="+param3=somefile.xml" /&gt; &lt;/mydep:xslt&gt; </code></pre> <p>You can find the docs for passing parameters to Saxon at <a href="http://www.saxonica.com/documentation/using-xsl/commandline.xml" rel="nofollow">http://www.saxonica.com/documentation/using-xsl/commandline.xml</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload