Complete XSLT Element Reference
The <xsl:import> element is a top-level element that is used to import the contents of one style sheet into another.
Note: An imported style sheet has lower precedence than the importing style sheet.
Note: This element must appear as the first child node of <xsl:stylesheet> or <xsl:transform>.
| Attribute | Value | Description |
|---|---|---|
| href | URI | Required. Specifies the URI of the style sheet to import |
Suppose you have a style sheet called "cdcatalog_ex3.xsl":
A second style sheet called "cdcatalog_import.xsl" imports "cdcatalog_ex3.xsl":
View the XML file, View the XSL file, and View the result
Note: This example will not work in Netscape 6 because it does not
support the <xsl:apply-imports> element!
Complete XSLT Element Reference
Your message has been sent to W3Schools.