jenmat
asked on
What is the next step with XSL?
Hi,
go to http://www.demo.izi.se/test.asp
what to do next to present this readable in our site? I don´t know what to do with the XSL file end where to put it or is it possible to include a XSL file?
set xmlDoc=CreateObject("Micro soft.XMLDO M")
xmlDoc.async="false"
xmlDoc.load("http://www.demo.izi.se/cat1.xml")
path="//*[@id='100']"
set nodes=xmlDoc.selectNodes(p ath)
for each x in nodes
document.write("<xmp>")
document.write(x.xml)
document.write("</xmp>")
next
go to http://www.demo.izi.se/test.asp
what to do next to present this readable in our site? I don´t know what to do with the XSL file end where to put it or is it possible to include a XSL file?
set xmlDoc=CreateObject("Micro
xmlDoc.async="false"
xmlDoc.load("http://www.demo.izi.se/cat1.xml")
path="//*[@id='100']"
set nodes=xmlDoc.selectNodes(p
for each x in nodes
document.write("<xmp>")
document.write(x.xml)
document.write("</xmp>")
next
ASKER
well, i am not really sure how to handle the ID in the XML file to create a proper XSL. Is that something you can provide a start to? The XML contains a lot of data using <categories> and <category> with several IDs. I want to be able to sort out different categories and for example create a menu och select menu. I think i have a start in the above with the "sort out".
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
'You need another XMLDOM (or whatever object you,re using for your XML) object, in wich you load your XSL file. Then:
Response.Write ( objXML.transformNode ( objXSL ) )
I don't know if it's what you're looking for...