You are able to customize the PDF output of the documentation for an XML schema by running
two transformations and customizing the intermediate file. To do this, follow the next procedure:
- Customize the [OXYGEN_DIR]
/frameworks/schema_documentation/xsl/xsdDocDocbook.xsl stylesheet to include
the content that you want to add in the PDF output. Add the content in the XSLT template
with the match="schemaDoc" attribute between these two
elements:
<info>
<pubdate><xsl:value-of select="format-date(current-date(),'[Mn] [D], [Y]', 'en', (), ())"/></pubdate>
</info>
<xsl:apply-templates select="schemaHierarchy"/>
- Create an intermediary file that holds the content of your XML Schema documentation;
- Go to ;
- Click Custom in the XML Schema
Documentation dialog;
- Go to Options;
- In the Custom format options dialog enable Copy
additional resources to the output folder , enter:
[OXYGEN_DIR]/frameworks/schema_documentation/xsl/xsdDocDocbook.xsl
in the Custom XSL field and click
OK;
- When you return to the Custom format options dialog box just
press the Generate button which will generate a DocBook XML
file with an intermediary form of the Schema documentation;
- Create the final PDF document;
- Go to and click New;
- In the New Scenario dialog go to the XSL
URL field and choose the
[OXYGEN_DIR]/frameworks/docbook/oxygen/xsdDocDocbookCustomizationFO.xsl
file;
- Go to the FO Processor tab and enable Perform FO
Processing and XSLT result as input;
- Go to the Output tab and select the directory where you want
to store the XML Schema documentation output and click OK;
- Click Apply Associated.