Including external stylesheets.

Two ways have been created to allow for modular xsl stylesheet development.

  • Imports an external xslt stylesheet.

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:import href="test.xslt"/>
    </xsl:stylesheet>
    					

    Templates and Definitions in an imported stylesheet have lower precendence.

  • Includes an external xslt stylesheet.

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:include href="test.xslt"/>
    </xsl:stylesheet>
    					

    Templates and Definitions in an included stylesheet have the same precendence.