Configuring XSLT Debugger for custom PDF plugin

kirkilj
Posts: 72

Configuring XSLT Debugger for custom PDF plugin

Fri Mar 15, 2019 12:03 am

It's been a few years since I used the XSLT debugger with DITA PDF transforms. I followed the instructions in https://www.oxygenxml.com/doc/versions/ ... formations.

When I open stage1.xml, I have one validation error on the second line:

Code: Select all

<opentopic:map xmlns:opentopic="http://www.idiominc.com/opentopic"
xmlns:ot-placeholder="http://suite-sol.com/namespaces/ot-placeholder">
The error msg is: "Invalid format for "class" attribute. Class attribute not specified."

The schema model for this element does not show that @class is allowed on this element: (#PCDATA | title | topicref)* with only the attributes @xmlns:opentopic and @xmlns:ot-placeholder.

I'm using DITA-OT 3.2.1 with a custom PDF plugin.

Thoughts?
Radu
Posts: 6058

Re: Configuring XSLT Debugger for custom PDF plugin

Fri Mar 15, 2019 8:35 am

Hi John,

You should not expect the intermediary XML document to be valid according to the DITA standard. So jut ignore that error or all other errors signaled on that file.

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

Re: Configuring XSLT Debugger for custom PDF plugin

Fri Mar 22, 2019 5:47 pm

Thanks Radu,

I can debug now, but some templates and variables still don't resolve.

* Is Master File support required for all template and variable references to resolve?

* If so, which xsl files or DITA Map files should I include?

* And should these be the xsl files in my local Git repos for dita-ot and our custom plugins OR should they be the versions of these that are located in our <dita test content>/target/dita/plugins directory, which is built by maven at the beginning of our test builds?
kirkilj
Posts: 72

Re: Configuring XSLT Debugger for custom PDF plugin

Sat Mar 23, 2019 2:51 am

I'd also like to know if the topic2fo_shell_fop.xsl I should select as the XSLT target of the Transformation Scenario should be the one in:

(1) our custom PDF plugin at plugins/com.acme.pdf or
(2) the plugins/org.dita.pdf2 or
(3) plugins/org.dita.pdf2.fop?

Do all of these have to be in the Master File list?

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: Costin, Radu and 2 guests