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.
--
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:
jo****@aspalliance.com
"Showjumper" <sh*******@grkjashdjkf.com> wrote in message
news:u9****************@TK2MSFTNGP12.phx.gbl...
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()