This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
How to create an HTML file with the correct ext in lotusXSL
- To: "'XSL-List at mulberrytech dot com'" <XSL-List at mulberrytech dot com>
- Subject: How to create an HTML file with the correct ext in lotusXSL
- From: Brad Sommerfeld <bsommerfeld at mks dot com>
- Date: Wed, 29 Mar 2000 09:27:16 -0600
- Reply-To: xsl-list at mulberrytech dot com
Artur Matos
wrote:
I want my XSL processor to create cat1.html and
cat2.html.
The way I have accomplished this is using a
variable. I construct a name with a static prefix, an element of the XML
and .HTM (ex. prefixNAME.htm)
<xsl:template match="XFDL">
<xsl:variable
name="outname">fileprefix<xsl:value-of
select="name"/>.htm</xsl:variable>
<redirect:write select="$outname">
<!-- output goes here -->
</redirect:write>
</xsl:template>