Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Newbie problems . . . >Thread Next - Re: Newbie problems . . . Re: Newbie problems . . .To: NULL Date: 10/15/2008 10:30:00 AM The first thing I would check is that the XML has loaded correctly. The load
method returns a Boolean, if false check the xml.parseError.reason.
Another thing is to try include adding the version number to the template
ProgID.
Is the output XML or just HTML?
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
"Buzby" <gb@p...> wrote in message
news:6llke3Fd2etsU1@m......
> 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 | |||
|
