RE: Generating multiple documents from one source

Subject: RE: Generating multiple documents from one source
From: Bjorn Boxstart <bboxstart@xxxxxxxxxxxxx>
Date: Fri, 19 May 2000 08:43:49 +0200
If you use XT there is a sample in the documentation on how to do exactly 
what you want. If you're using msxml, you could ofcourse do this by using 
the control in for example visual basic. With the function selectNodes(..) 
you could select the parts of the document that you want to publish as 
single HTML pages.

Below you can find a sample from the XT documentation

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:xt="http://www.jclark.com/xt";
                extension-element-prefixes="xt">

<xsl:variable name="file">out</xsl:variable>

<xsl:template match="/">
  <xt:document method="xml" href="{$file}.xml">
     <xsl:call-template name="out"/>
  </xt:document>
  <xt:document method="html" href="{$file}.html">
     <xsl:call-template name="out"/>
  </xt:document>
  <xt:document method="text" href="{$file}.txt">
     <xsl:call-template name="out"/>
  </xt:document>
</xsl:template>

<xsl:template name="out">
  <html>
   <head><title>Title</title></head>
   <body>
   <p>Line 1<br/>Line 2</p>
   </body>
  </html>
</xsl:template>

</xsl:stylesheet>

good luck,

Bjorn

-----Original Message-----
From:	Carlos Araya [SMTP:elrond@xxxxxxxxxxxxxxxx]
Sent:	Friday, May 19, 2000 12:35 AM
To:	xsl-list
Subject:	Generating multiple documents from one source

Hello:

I have one XML document and need to generate multiple html pages. How can
I do that?

thanks,
Carlos
--
Carlos E. Araya
WebCT Project Coordinator - New Media Specialist
Alquist Center for Instrucctional Development
San Jose State University
1 Washington Square
San Jose, Ca 95192-0026

finger elrond@xxxxxxxxxxxxxxxx for PGP key
--
"Be conservative in what you do, be liberal in what you accept from
others," --John B. Postel


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread