Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Splitting out elements Splitting out elementsTo: NULL Date: 3/13/2009 9:34:00 AM Hi
I'm completely stuck here, my Google powers have deserted me and hope
someone may be able to give me a pointer or two.
I am successfully consuming a web service using xslt and asp (classic)
to display the results. What I would like to do is create variables on
the recieving asp page from the individual elements passed across from
the xsl.
The code I'm using is as follows:
<%
ContactID = Request.QueryString("cid")
Host = "http://somedomain.com/link/id=" & ContactID
Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "GET", Host, False
xmlhttp.send
SET xml = xmlhttp.responseXML
Set xsl = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
xsl.async = false
xsl.load (Server.MapPath("xsl/contacts.xsl"))
Set template = Server.CreateObject("MSXML2.XSLTemplate")
template.stylesheet = xsl
set Contacts = template.createProcessor()
Contacts.input = xml
Contacts.transform()
Contacts = Contacts.output
Set xmlhttp = Nothing
%>
There are several elements, name, address, phone etc which I'd like to
extract individually from this transformation without having to make a
separate request for each one individually - is this possible?
TIA!
Grant
--
Buzby
"There's nothing more dangerous than a resourceful idiot"
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
