I have an XML document with pagination indicated. I would like to to transform this single file into multiple output files. That is, I would like to convert the following:
<root>
<page>
Page 1 contents
</page>
<page>
Page 2 contents
</page>
</root>
To
page1.html
<html>
<head></head>
<body>
Page 1 contents
</body>
</html>
page2.html
<html>
<head></head>
<body>
Page 2 contents
</body>
</html>
With XSLT 2.0 -- yes use the
<xsl:result-document>
element:Results:
With XSLT 1.0 one may use the EXSLT extension element
<exslt:document>
: