Javatpoint Logo
Javatpoint Logo

XSLT <xsl:import> Element

The XSLT <xsl:import> element is used to import the content of one stylesheet to another stylesheet. The importing stylesheet has higher precedence over imported stylesheet.

Parameter explanation

href: It is used to provide the path of xslt stylesheet to be imported.

XSLT <xsl:import> Element Example

Let's take an example to create a list of <employee> element with its attribute "id" and its child <firstname>, <lastname>, <nickname>, and <salary> iterating over each employee. In this example, we have created two xsl stylesheets where employee_import.xsl stylesheet imports employee.xsl and employee.xml is linked to employee_import.xsl.





XSLT Xsl import element 1
Next Topic#

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA