Page 1 of 1

Can't Debug xsdDocHtml.xsl

Posted: Sat Dec 19, 2015 3:03 am
by cjboorman
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 http://www.w3.org/2001/XMLSchema, but none of the template rules match elements in this namespace (Use --suppressXsltNamespaceCheck:on to avoid this warning)
URL: http://www.saxonica.com/html/documentation/javadoc/net/sf/saxon/trans/SaxonErrorCode.html#SXXP0005[/codebox]

Re: Can't Debug xsdDocHtml.xsl

Posted: Mon Dec 21, 2015 2:38 pm
by ionela
Hi,

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.

Regards,
Ionela