-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
36 lines (22 loc) · 971 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: <xsl:import>
slug: Web/XSLT/Element/import
page-type: xslt-element
---
{{XsltSidebar}}
The `<xsl:import>` element is a top-level element that serves to import the contents of one stylesheet into another stylesheet. Generally speaking, the contents of the imported stylesheet have a lower import precedence than that of the importing stylesheet. This is in contrast to `<xsl:include>` where the contents of the included stylesheet have exactly the same precedence as the contents of the including stylesheet.
## Syntax
```xml
<xsl:import href=URI />
```
### Required Attributes
- `href`
- : Specifies the URI of the stylesheet to import.
### Optional Attributes
None.
### Type
Top-level, must appear before any other child of `<xsl:stylesheet>` or `<xsl:transform>` in the importing stylesheet.
## Specifications
XSLT, section 2.6.2.
## Gecko support
Mostly supported with a few issues with top level variables and parameters as of Mozilla 1.0.