Praveen
2005-10-26 12:10:09 UTC
Im using following code for xml/xsl transform using asp
set xml = Server.CreateObject("MSXML2.DOMDocument")
xml.async = false
xml.load("MyXML.xml")
set xsl=Server.CreateObject("MSXML.FreeThreadedDOMDocument")
xsl.async=false
xsl.load("MyXSL.xsl") '
set xslTemplate=Server.CreateObject("Msxml2.XSLTemplate")
set xslTemplate.stylesheet=xsl
set xslProcessor=xslTemplate.createProcessor
xslProcessor.input=xml
set Tinyxml = Server.CreateObject("MSXML.FreeThreadedDOMDocument") 'or
"MSXML2.DOMDocument"?????
Tinyxml .async = false
Tinyxml .loadXML "<Root><Item name="PQR"/><Item name="XYZ"/></</Root>"
xslProcessor.addObject Tinyxml, "urn:ABC"
xslProcessor.transform()
Response.Write(xslProcessor.output)
This code is wroking fine....
Insdie xsl Im having xmlns:PC="urn:ABC"
My question is regarding the TinyXML object which Im adding to the
xslProcessor.
If I want to Print the TinyXML as a string or read some value from TinyXML
or Loop Thru TinyXML
How it is possible.
I tried some thing like this
<xsl:value-of select="PC:get-text()"/>
I want to what type of operations can I do with the XmlObj which Im adding
to Proccessor......
thanks
praveen
set xml = Server.CreateObject("MSXML2.DOMDocument")
xml.async = false
xml.load("MyXML.xml")
set xsl=Server.CreateObject("MSXML.FreeThreadedDOMDocument")
xsl.async=false
xsl.load("MyXSL.xsl") '
set xslTemplate=Server.CreateObject("Msxml2.XSLTemplate")
set xslTemplate.stylesheet=xsl
set xslProcessor=xslTemplate.createProcessor
xslProcessor.input=xml
set Tinyxml = Server.CreateObject("MSXML.FreeThreadedDOMDocument") 'or
"MSXML2.DOMDocument"?????
Tinyxml .async = false
Tinyxml .loadXML "<Root><Item name="PQR"/><Item name="XYZ"/></</Root>"
xslProcessor.addObject Tinyxml, "urn:ABC"
xslProcessor.transform()
Response.Write(xslProcessor.output)
This code is wroking fine....
Insdie xsl Im having xmlns:PC="urn:ABC"
My question is regarding the TinyXML object which Im adding to the
xslProcessor.
If I want to Print the TinyXML as a string or read some value from TinyXML
or Loop Thru TinyXML
How it is possible.
I tried some thing like this
<xsl:value-of select="PC:get-text()"/>
I want to what type of operations can I do with the XmlObj which Im adding
to Proccessor......
thanks
praveen