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

Re: Managing two different XSLT files by a MASTER File

Subject: Re: Managing two different XSLT files by a MASTER File
From: "Abel Braaksma (online)" <abel.online@xxxxxxxxx>
Date: Thu, 21 Jun 2007 10:06:29 +0200 (CEST)
Re:  Managing two different XSLT files by a MASTER File
There are several ways of dealing with this, depending on your
actual requirements and whether you use XSLT 1 or 2:

1. Use xsl:import in conjunction with xsl:apply-imports and/or
priorities (xslt 1) or xsl:next-match in xslt 2

2. Use xsl:include/import and named templates in your included
files. In XSLT 1 you can use the node-set extension to build a temp
tree and re-apply the next transform, in xslt 2 this is
automatically so and you can just re-apply (i.e. your first
transform transforms to a variable, your second transform is an
apply-templates on that variable)

3. Use proprietary extensions, i.e., Saxon has a saxon:next-in-chain
attribute and saxon:compile-stylesheet() plus saxon:transform():

4. Use a workflow system to do what you want and to have more
control on the overall process.

There are probably more ways to do this, but these are the most
obvious that come to mind.

Hope this helps,

-- Abel Braaksma

> Hi All,
> I have a SAMPLE.xml file and 2 different XSLT files(XSLTFile1.xsl
> and
> XSLTFile2.xsl).
> At first XSLTFile1.xsl will be applied on SAMPLE.xml and get the
> Ouput1.xml file.
> Then the XSLTFile2.xsl will be applied on Output1.xml file to get
> the
> FINAL Output file.
> My problem is , managing these 2 different xsl files by a MASTER XSL
> file. Is there any way to do so?
> I'm using SAXON XSLT processor.
> Any help is highly appreciated !
> Thanks in Advance,
> Best Regards
> Lakshmi
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of
> the addressee(s) and may contain proprietary, confidential or
> privileged information. If you are not the intended recipient, you
> should not disseminate, distribute or copy this e-mail. Please
> notify the sender immediately and destroy all copies of this message
> and any attachments.
> WARNING: Computer viruses can be transmitted via email. The
> recipient should check this email and any attachments for the
> presence of viruses. The company accepts no liability for any damage
> caused by any virus transmitted by this email.
> www.wipro.com

Current Thread


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.
First Name
Last Name
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.