How to set Saxon features in <pipeline>/<xslt> task?

19 views
Skip to first unread message

Toshihiko Makita

unread,
Jul 18, 2019, 4:51:20 AM7/18/19
to DITA-OT Users
Hi All,

I'm developing HTML5 plug-in by referencing standard DITA-OT HTML5 plug-in. In this development I need to set Saxon feature settings that is available in normal ant <xslt> task such like below:

            <factory name="net.sf.saxon.TransformerFactoryImpl">
                <attribute name="http://saxon.sf.net/feature/timing" value="true"/>
                <!-- Suppress namespace warning -->
                <!--attribute name="http://saxon.sf.net/feature/suppressXsltNamespaceCheck" value="true"/-->
                <!--Assert-->
                <!--attribute name="http://saxon.sf.net/feature/enableAssertions" value="true"/-->
                <!-- Trace -->
                <!--attribute name="http://saxon.sf.net/feature/traceListenerClass" value="net.sf.saxon.trace.XSLTTraceListener"/-->
            </factory>

However when I insert <factory> into <pipeline>/<xslt> task, the build fails with message:

BUILD FAILED
D:\DITA-OT\dita-ot-3.3.2\plugins\org.dita.base\build.xml:31: The following error occurred while executing this line:
D:\DITA-OT\dita-ot-3.3.2\plugins\org.dita.base\build.xml:48: The following error occurred while executing this line:
D:\DITA-OT\dita-ot-3.3.2\plugins\com.antennahouse.html5\build.xml:84: The following error occurred while executing this line:
D:\DITA-OT\dita-ot-3.3.2\plugins\com.antennahouse.html5\build.xml:94: xslt doesn't support the nested "factory" element.

<pipeline>/<xslt> task is introduced in the following document.

Adding Saxon customizations

Also it is used in the build.xml file ofDITA-OT standard  HTML5 plug-in.


How do I control Saxon features in <pipeline>/<xslt> task? 

Regards,

-- 
/*--------------------------------------------------
 Toshihiko Makita
 Development Group. Antenna House, Inc. Ina Branch
 Web site:
 http://www.antenna.co.jp/
 http://www.antennahouse.com/
 --------------------------------------------------*/ 

Reply all
Reply to author
Forward
0 new messages