16.20 - Example: Consolidated Stylesheet Document - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ XML Data Type

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1140-162K
Language
English (United States)
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.