Json transformation fails due to default xsl files
Posted: Wed Nov 18, 2020 9:34 pm
Hello,
I am trying to publish the topics in my ditamap to a single xml or json file to be used by a help gadget that is embedded in the product. The file will contain topics that each have unique reference IDs which are used to created context-sensitive tool tips.
Anyway, I have created a new transformation DITA-OT json transformation scenario using the stock settings, but keep getting the following fatal errors:
I haven't modified any of these .xsl files.
Also, my expectation is that this would generate a single json file with all the topics. My team could just as easily use an .xml file with all the resolved topics in raw XML. Is there a better way to do this?
Thanks in advance!
I am trying to publish the topics in my ditamap to a single xml or json file to be used by a help gadget that is embedded in the product. The file will contain topics that each have unique reference IDs which are used to created context-sensitive tool tips.
Anyway, I have created a new transformation DITA-OT json transformation scenario using the stock settings, but keep getting the following fatal errors:
Code: Select all
System ID: C:\Program Files\Oxygen XML Editor 20\frameworks\dita\DITA-OT2.x\plugins\org.dita-community.common.xslt\xsl\dita-support-lib.xsl
Scenario: OxygenIntro (json)
Input file: C:\dita-tech-enablement\Oxygen-training\Class-files\5-8-2020\Jesse\OxygenIntro.ditamap
Engine name: XSLT
Severity: fatal
Description: Required item type of first argument of matches() is xs:string; supplied value has item type xs:boolean
Start location: 40:5
System ID: C:\Program Files\Oxygen XML Editor 20\frameworks\dita\DITA-OT2.x\plugins\org.dita4publishers.common.xslt\xsl\map2graphicMap.xsl
Scenario: OxygenIntro (json)
Input file: C:\dita-tech-enablement\Oxygen-training\Class-files\5-8-2020\Jesse\OxygenIntro.ditamap
Engine name: XSLT
Severity: fatal
Description: XPath syntax error at char 23 on line 345 in {relpath:toUrl($inputdir)}:
Start location: 345:7
System ID: C:\dita-tech-enablement\Oxygen-training\Class-files\5-8-2020\Jesse\OxygenIntro.ditamap
Scenario: OxygenIntro (json)
Input file: C:\dita-tech-enablement\Oxygen-training\Class-files\5-8-2020\Jesse\OxygenIntro.ditamap
Engine name: DITA-OT
Severity: fatal
Description: Transformation failed. C:\Program Files\Oxygen XML Editor 20\frameworks\dita\DITA-OT2.x\plugins\org.dita4publishers.json\build_transtype-json.xml:24: javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 4 errors detected.
Also, my expectation is that this would generate a single json file with all the topics. My team could just as easily use an .xml file with all the resolved topics in raw XML. Is there a better way to do this?
Thanks in advance!