W3C home > Mailing lists > Public > xsl-editors@w3.org > July to September 1998

Feature request: multiple file output

From: G. Ken Holman <gkholman@CanadaMail.com>
Date: Sat, 12 Sep 1998 21:07:31 -0400
Message-Id: <199809130107.VAA24259@pop01.globecomm.net>
To: XSL Editors <xsl-editors@w3.org>
I have a feature request that I hope you find worthwhile to consider.

I'd like to be able to direct my processing of a single input file to
output multiple files from within a single XSL script.

Something along the lines of:

<xsl:template match="show">
  <xsl:for-each select="./slide">
    <xsl:entity name="{attribute(id)}.htm">
       <html>
         <xsl:process-children/>
       </html>
    </xsl:entity>
  </xsl:for-each>
</xsl:template>

or even

<xsl:template match="volume">
  <xsl:for-each select="./book">
    <xsl:entity name="{attribute(filename)}">
      <fo:page-sequence>
        <fo:simple-page-master
                page-width='8.5in'  page-height='11in'
                header-size='.5in'  footer-size='.5in'
                margin-top='1in'    margin-bottom='1in'
                margin-left='.75in' margin-right='.5in'>
          <xsl:process-children/>
        </fo:simple-page-master>
      </fo:page-sequence>
    </xsl:entity>
  </xsl:for-each>
</xsl:template>

Thanks!

................... Ken


--
G. Ken Holman               mailto:gkholman@CanadaMail.com
Crane Softwrights Ltd.  http://www.CraneSoftwrights.com/s/
Box 266,                                V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0            F: +1(613)489-0995
Training:   http://www.CraneSoftwrights.com/s/schedule.htm
Resources: http://www.CraneSoftwrights.com/s/resources.htm
Shareware: http://www.CraneSoftwrights.com/s/shareware.htm
Received on Saturday, 12 September 1998 21:07:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:49 GMT