Subject: Re: [xsl] 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) |
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(): http://www.saxonica.com/documentation/extensions/output-extras/next-in-chain.html 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, cheers, -- 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Managing two different XSLT f, subbulakshmi.kumaras | Thread | RE: [xsl] Managing two different XS, Michael Kay |
RE: [xsl] Sorting Using A Predefine, Michael Kay | Date | RE: [xsl] Managing two different XS, Michael Kay |
Month |