Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Newbie problems . . . Newbie problems . . .To: NULL Date: 10/15/2008 7:29:00 AM Hi
I'm trying to use an xsl template. I'm able to get the correct response
from the server which creates a valid xml file which I can see if I
write out the xmlhttp.responseText section to the page.
However it doesn't seem to be loading it across to the test.xsl, which
is being called and displayed correctly as I can pass a parameter city
to it and get it returned.
Question is - have missed/messed something up in the code below?
Set xml = Server.CreateObject("MSXML2.FreeThreadedDOMDocument.3.0")
xml.async = false
xml.loadxml(xmlhttp.responseText)
Set xsl = Server.CreateObject("MSXML2.FreeThreadedDOMDocument.3.0")
xsl.async = false
xsl.load(Server.MapPath("xsl/test.xsl"))
Set template = Server.CreateObject("MSXML2.XSLTemplate")
template.stylesheet = xsl
set processor = template.createProcessor()
processor.input = xml
If city <> "" Then
processor.addParameter "city", city
End If
processor.transform()
Response.Write(processor.output)
TIA - it's hard learning by yourself!
--
Buzby
There's nothing more dangerous than a resourceful idiot
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
