I need to do a transform using 2 xsl files? How would i go about this? This
is what am doing now - just a single transform.
Dim XMLDoc As New XmlDocument
XMLDoc.Load(Server.MapPath("files/rdxmltemplate.xml"))
Dim XSLTrans As New Xsl.XslTransform
XSLTrans.Load(Server.MapPath("files/nitf-rd.xsl"))
Dim ms As New MemoryStream
XSLTrans.Transform(XMLDoc, Nothing, ms, Nothing)
ms.Seek(0, SeekOrigin.Begin)
Dim sr As New StreamReader(ms)
PageContent.Text = sr.ReadToEnd()
sr.Close()
Teemu Keiski - 03 Jul 2003 22:22 GMT
You mean you need to do it in two phases? In that case use the result of
first transformation as input for the second transformation. XmlDocument for
example can load the XML from Stream (say MemoryStream that was target
stream of the first transformation) abd you could use it again as input.
But if the need was to have to separate transformation, then use the same
XMLDocument as source for both and after doing the first transformation and
outputting results load the second XSLT stylesheet to the XslTransform and
redo the transformation.
If you need more specific information, plase tell bit more about your case.

Signature
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi
ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com
Email:
joteke@aspalliance.com
> I need to do a transform using 2 xsl files? How would i go about this? This
> is what am doing now - just a single transform.
[quoted text clipped - 8 lines]
> PageContent.Text = sr.ReadToEnd()
> sr.Close()
Showjumper - 04 Jul 2003 02:23 GMT
I am using the NITF DTD. One xsl is for the <body.head> and the other xsl is
for the <body.content>
> You mean you need to do it in two phases? In that case use the result of
> first transformation as input for the second transformation. XmlDocument for
[quoted text clipped - 21 lines]
> > PageContent.Text = sr.ReadToEnd()
> > sr.Close()
Teemu Keiski - 03 Jul 2003 22:25 GMT
And in addition see Oleg Tkachenko's message in thread:
"Do transformation output to string or xmlDoc and not a file or
xmltextwriter"
a couple of threads below this one

Signature
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi
ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com
Email:
joteke@aspalliance.com
> I need to do a transform using 2 xsl files? How would i go about this? This
> is what am doing now - just a single transform.
[quoted text clipped - 8 lines]
> PageContent.Text = sr.ReadToEnd()
> sr.Close()