Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - "Chains" of xslt transformations [Thread Next] Re: "Chains" of xslt transformationsTo: 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.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
