[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
xsl generate multiple documents
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.