This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How to create an HTML file with the correct ext in lotusXSL


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]