XSLT xsl:import Element
Complete XSLT Element Reference Manual
Definition and Usage
xsl:import element is a top-level element used to import the contents of one style sheet into another.
**Note:** An imported style sheet has lower priority than the importing style sheet.
**Note:** This element must be the xsl:stylesheet or xsl:transform first child node of the
Syntax
property
| property | Value | Description |
|---|---|---|
| href | URI | Required. Specifies the URI of the style sheet to import. |
Example 1
Suppose you have a style sheet named "cdcatalog_ex3.xsl":
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">My CD Collection
Title
Artist
A second style sheet named "cdcatalog_import.xsl" imports "cdcatalog_ex3.xsl":
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
View the XML file、 View the XSL file、 View the result。
**Note:** This example will not run in Netscape 6, because Netscape 6 does not support the xsl:apply-imports element!
Complete XSLT Element Reference Manual