problem with embedded xml in asp

> I am having a typical but silly problem while using xml and xsl to do a
> serverside transformation to XHTML. I am getting a proper xml on the
screen
> when i am trying to output an asp.I want to use this xml and the xsl which
> resides in the server to be transformed at the server side.
> >
> > How can i get a reference to the xmlstream which is outputted on the
> screen.> >
> > i need to attach a piece of code which will load this and use the xsl by
> > doing a serverside transformation.. Please advice..
>
> The code which i want to attach is this..
>
> if i have a string of xml then i can use the below code
> Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
> objXMLDoc.async = False
> objXMLDoc.loadXML(XMLString)
>
> if i have a physical xml file then i can use this code..
> '---Create an instance of the DOM object---
> Set xml = Server.CreateObject("MSXML.DOMDocument")
> '---Let it run synchronously---
> xml.async = false
> '---Load the XML document---
> xml.load (Server.MapPath("physicalfilename.xml"))
>
============================================================================
> ===========
> here i will get the reference of the xml and use xsl to tranform at
> serverside
>
============================================================================
> ===========
> dim xsl
> Set xsl = Server.CreateObject("MSXML.DOMDocument")
> xsl.async = false
> '---Load the XSLT stylesheet---
> xsl.load (Server.MapPath("ContractView.xsl"))
> '---Performs the transformation---
> Response.write (objXMLDoc.transformNode(xsl))
>
============================================================================
> ==========
> >
> > ~
> > Regards,
> >
> > Vimal Nair

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories