DITA-OT PDF2 validation scenario

Here should go questions about transforming XML with XSLT and FOP.
tmakita
Posts: 69

DITA-OT PDF2 validation scenario

Thu Mar 12, 2015 11:34 am

Hi

Does anyone know how to make the validation scenario for DITA-OT (2.0) PDF2 plug-in?

Today I made my validation scenario using xsl/fo/topic2fo_shell_axf.xsl as root stylesheet. But I got following validation error from oXygen 16.1.

System ID: D:\DITA-OT\DITA-OT2.0\plugins\org.dita.pdf2\xsl\fo\links.xsl
Main validation file: D:\DITA-OT\DITA-OT2.0\plugins\org.dita.pdf2\xsl\fo\topic2fo_shell_axf.xsl
Scenario name: PDF2
Engine name: Saxon-EE 9.5.1.7
Severity: fatal
Description: XPST0017 XPath syntax error at char 104 on line 385 near {...omit-from-unordered-links(....}: Cannot find a matching 1-argument function named {http://dita-ot.sourceforge.net/ns/200709/related-links}omit-from-unordered-links()
Start location: 385:144
URL: http://www.w3.org/TR/xpath20/#ERRXPST0017


System ID: D:\DITA-OT\DITA-OT2.0\plugins\org.dita.pdf2\xsl\common\vars.xsl
Main validation file: D:\DITA-OT\DITA-OT2.0\plugins\org.dita.pdf2\xsl\fo\topic2fo_shell_axf.xsl
Scenario name: PDF2
Engine name: Saxon-EE 9.5.1.7
Severity: fatal
Description: XTSE0650: No template exists named getVariable
Start location: 44:43
URL: http://www.w3.org/TR/xslt20/#err-XTSE0650

Thanks,

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

Re: DITA-OT PDF2 validation scenario

Thu Mar 12, 2015 12:16 pm

Hi Toshihiko,

One more thing to do.
The XSLT stylesheets refer to certain XSLT stylesheets using a special "cfg:" prefix like:

Code: Select all

<xsl:import href="cfg:fo/xsl/custom.xsl"/>


which is resolved via the XML catalogs.
So you should go to the Oxygen Preferences->XML / XML Catalog page and add in the Catalogs list links to two XML catalogs:


DITA-OT2.0.1/plugins/org.dita.pdf2/cfg/catalog.xml

and:

DITA-OT2.0.1/catalog-dita.xml.

Because if you do not do that, Oxygen will find the mappings in the XML catalogs added by the DITA Open Toolkit distribution which is bundled with it (the older DITA OT 1.8.5).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
tmakita
Posts: 69

Re: DITA-OT PDF2 validation scenario

Thu Mar 12, 2015 10:34 pm

Hi Radu,

Thank you for your reply.
Now the validation works fine.
I appreciate you help.

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

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests