Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: "Chains" of xslt transformations

From: "swapna guddanti" <swapnag@---------.------.--->
To: NULL
Date: 7/5/2005 1:48:00 PM
hi,
you can always store the intermediate result in an xml document.
the following code snippet does this.
public void problem1()

{

XslCompiledTransform transform = new XslCompiledTransform();

transform.Load("xslt1.xslt");

transform.Transform("xml1.xml", "xml2.xml");

transform.Load("xslt2.xslt");

transform.Transform("xml2.xml","output.xml");

}

In this case, the strings are file names with their paths.

hope this helps,

swapna




"Slava Sedov" <SlavaSedov@d...> wrote in message 
news:78867F34-C5DC-46FF-9449-5607E6248E52@m......
> need to effectively perform 2 sequential xslt transforms on some data
> ((xm1+xsl1)+xsl2) and can`t find a way to do it without intermediate
> transform intermediate xml to text - i use XslCompiledTransform with
> XPathDocument, is anyone know good way to pass result data after first
> xslt-transformation as source data for second xslt-transformation?
>
> p.s. also i am interesting about best practice to this scenario - i get
> xml1, then apply xslt1 to it and in result i get another xslt2 and then
> perform tranformation of xml2 using xslt2. I don`t understand why i need
> store intermediate results as strings instead of storing it as 
> XPathDocument
> or at least XMLDocument. 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent