Customizing the Generated PDF

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, use the following procedure:
  1. 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"/>
    Note: The content that you insert here has to be wrapped in DocBook markup. For details about working with DocBook take a look at the video demonstration from this address http://www.oxygenxml.com/demo/DocBook_Editing_in_Author.html.
  2. Create an intermediary file that holds the content of your XML Schema documentation.
    1. Go to Tools > Generate Documentation > XML Schema Documentation.
    2. Click Custom in the XML Schema Documentation dialog box.
    3. Go to Options.
    4. In the Custom format options dialog box, 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.
    5. 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.
  3. Create the final PDF document.
    1. Go to Document > Transformation > Configure Transformation Scenario and click New.
    2. In the New Scenario dialog box, go to the XSL URL field and choose the [OXYGEN_DIR]/frameworks/docbook/oxygen/xsdDocDocbookCustomizationFO.xsl file.
    3. Go to the FO Processor tab and enable Perform FO Processing and XSLT result as input.
    4. Go to the Output tab and select the directory where you want to store the XML Schema documentation output and click OK.
    5. Click Apply Associated.