Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Newbie problems . . .

From: "Buzby" <gb@---------.--->
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent