This should cover W3C XML Schema, Relax NG and DTD related problems.
- Posts: 37
- Joined: Wed Jun 19, 2013 1:49 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)
- Posts: 336
- Joined: Mon Dec 05, 2011 6:08 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.
oXygen XML Editor and Author Support