Next / Previous / Contents / Shipman's homepage

14.1. The exsl:document extension

With stock XSLT, all output goes to one place: the output document. However, an organization called EXSLT has published an extension element that allows you to sent output to other files. See the EXSLT homepage for more information.

Here is an example of an xsl:stylesheet element that includes the attributes necessary to use the exsl:document extension:

    <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:exsl="http://exslt.org/common"
      extension-element-prefixes="exsl">

Once you have done this, in order to write some content to a file named F, embed that content in an element that looks like this:

    <exsl:document href="F">
      ...
    </exsl:document>