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.
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.