XML/XSL request


/ Published in: ASP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <%
  2. dim xslDoc, xmlDoc
  3.  
  4. set xmlDoc=server.CreateObject("Msxml2.FreeThreadedDOMDocument.3.0")
  5. set xslDoc=server.CreateObject("Msxml2.FreeThreadedDOMDocument.3.0")
  6.  
  7. xmldoc.async = false
  8. xslDoc.async = false
  9.  
  10. xmlDoc.load server.mapPath("unimac_models.xml")
  11. xslDoc.load server.mapPath(strXSLFile)
  12.  
  13. Set template = Server.CreateObject("MSXML2.XSLTemplate.3.0")
  14. Set template.stylesheet = xslDoc
  15. Set proc = template.createProcessor
  16.  
  17. proc.input = xmlDoc
  18.  
  19. proc.addParameter "modelid", strModel
  20. proc.addParameter "seriesid", strSeries
  21.  
  22. response.Charset = "UTF-8"
  23. proc.output = response
  24. proc.transform
  25. %>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.