Example: Consolidated Stylesheet Document

Teradata Vantage™ XML Data Type

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1140-162K
The following is a sample consolidated stylesheet document:
<?xml version="1.0" encoding="UTF-8"?>
<ConsolidatedStylesheet
   stylesheetURI="http://www.example.com/stylesheeturi" >
   <ComponentStylesheet locationURI="http://example.com/stylesheeturi"
      <xsl:stylesheet  …>
      ....
      </xsl:stylesheet>
   </ComponentStylesheet>
   <ComponentStylesheet locationURI="../xslt/includedstylesheet1.xsl"
      <xsl:stylesheet  …>
      ....
      </xsl:stylesheet>
   </ComponentStylesheet>
</ConsolidatedStylesheet>

The ConsolidatedStylesheet element is the document element for the consolidated stylesheet document. It is the envelope that contains the individual component stylesheets. Each component is wrapped in a ComponentStylesheet element which includes a locationURI attribute. The base stylesheet has a stylesheetURI attribute whose value matches the locationURI of one of the components. The stylesheet is compiled starting at this component, and stylesheet includes occurring in that stylesheet are resolved using the locationURI attribute on the ComponentStylesheet elements.