Can't Debug xsdDocHtml.xsl

This should cover W3C XML Schema, Relax NG and DTD related problems.
cjboorman
Posts: 37

Can't Debug xsdDocHtml.xsl

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 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]
ionela
Posts: 196

Re: Can't Debug xsdDocHtml.xsl

Mon Dec 21, 2015 2:38 pm

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
Ionela Istodor
oXygen XML Editor and Author Support

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 1 guest