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

Re: SAXON: Creating multiple output files

Subject: Re: SAXON: Creating multiple output files
From: Betty Harvey <betty@xxxxxxxxxx>
Date: Mon, 17 Nov 2003 16:14:00 -0500 (EST)
saxon multiple output
Make sure you add the Saxon namespace to your <xsl:stylesheet>:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
                xmlns:saxon="http://icl.com/saxon"
                extension-element-prefixes="saxon"
                version="1.0">

Create your template:

<xsl:template match="myelement">
    <xsl:variable name="file"><xsl:number level="any" 
from="rootelement"/>.html</xsl:variable>
    <xsl:variable name="slideno">
    <saxon:output href="{$file}">
<!--The stuff you want in the file -->
</xsl:template>

Create the filenames based on your needs. I usually just name
them sequentially.  Sometimes, I will add a name , i.e., 
section1.html. 

Saxon works really nice for creating multiple files!

Hope this helps.

Betty

On Mon, 17 Nov 2003, SHEIKH Sajjad wrote:

> Hi all,
> 
> I want to create multiple output files.
> 
> Scenario:	There are plenty of folders.  Underneath each folder,
> there are folders or documents.  Each folder contains a xml document
> called "xmlinterlinks.xml".
> 
> Since the structure of each document is the same therefore I want to use
> one style sheet for all xml documents.
> 
> I finally have come to the conclusion of using saxon but unfortunately I
> have no experience in that.
> 
> I will be thankful if someone would like to share his/her ideas in this
> context.
> 
> Thanks,
> 
> /s 
> 
>  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.