Make sure you add the Saxon namespace to your <xsl:stylesheet>:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://icl.com/saxon"
extension-element-prefixes="saxon"
version="1.0">
Create your template:
<xsl:template match="myelement">
<xsl:variable name="file"><xsl:number level="any"
from="rootelement"/>.html</xsl:variable>
<xsl:variable name="slideno">
<saxon:output href="{$file}">
<!--The stuff you want in the file -->
</xsl:template>
Create the filenames based on your needs. I usually just name
them sequentially. Sometimes, I will add a name , i.e.,
section1.html.
Saxon works really nice for creating multiple files!
Hope this helps.
Betty
On Mon, 17 Nov 2003, SHEIKH Sajjad wrote:
Hi all,
I want to create multiple output files.
Scenario: There are plenty of folders. Underneath each folder,
there are folders or documents. Each folder contains a xml document
called "xmlinterlinks.xml".
Since the structure of each document is the same therefore I want to use
one style sheet for all xml documents.
I finally have come to the conclusion of using saxon but unfortunately I
have no experience in that.
I will be thankful if someone would like to share his/her ideas in this
context.
Thanks,
/s
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list