Can't Debug xsdDocHtml.xsl

This should cover W3C XML Schema, Relax NG and DTD related problems.
Posts: 37
Joined: Wed Jun 19, 2013 1:49 am

Can't Debug xsdDocHtml.xsl

Post by cjboorman » Sat Dec 19, 2015 3:03 am

I've successfully used oXygen to generate documentation for my schema. Now I want to use oXygen's XSLT Debugger to step-through the transformation (xsdDocHtml.xsl) to learn how the stylesheet works – so I can customize it. I configured a basic transformation scenario, but it won't compile and it's not obvious why. I get the following error:

Code: Select all

Description: SXXP0005: The source document is in namespace, but none of the template rules match elements in this namespace (Use --suppressXsltNamespaceCheck:on to avoid this warning)

Posts: 349
Joined: Mon Dec 05, 2011 6:08 pm

Re: Can't Debug xsdDocHtml.xsl

Post by ionela » Mon Dec 21, 2015 2:38 pm


To debug this transformation you need to apply the stylesheet (xsdDocHtml.xsl) on an intermediate file resulted during the custom XML Schema Documentation generation.
To obtain the intermediate file, in the XML Schema Documentation dialog select Custom format and then the Options button.
Here in the 'Custom format options' dialog choose xsdDocHtml.xsl stylesheet in the Custom XSL field and make sure you clear 'Delete intermediate XML files' option and check 'Copy additional resources to the output folder'.
This way you obtain a temporary file (name_of_the_XSD_file.tmp) that should be opened in oXygen as an XML file and on it apply the transformation scenario that you can further debug. Make sure in the scenario configuration you choose Saxon-PE/Saxon-EE as Transformer and in the Parameters tab insert as mainFile the name of the temporary file and tmp for intermediateXmlExtension parameter.

I hope this helps.

Ionela Istodor
oXygen XML Editor and Author Support

Post Reply