XSLT <xsl:import>
Element
Definition and Usage
The <xsl:import>
element is a top-level element used to import content from one stylesheet into another.
Note: The imported stylesheet has a lower priority than the exporting stylesheet.
Note: This element must be the first child node of <xsl:stylesheet>
or <xsl:transform>
.
Syntax
Attributes
Attribute | Value | Description |
---|---|---|
href | URI | Required. Specifies the URI of the stylesheet to be imported. |
Example 1
Suppose you have a stylesheet named "cdcatalog_ex3.xsl":
A second stylesheet named "cdcatalog_import.xsl" will import "cdcatalog_ex3.xsl":
View XML File, View XSL File, View Result.
Note: This example will not run in Netscape 6 because Netscape 6 does not support the <xsl:apply-imports>
element!