TheVillageIdiot27
Programmer
Hi
I am sure this is probably very easy but I am new to XML so bare with me.
I am trying to create an ASP page which will load an XML file sitting on the server, run a XQuery over it then transform the results with and XSLT stylesheet.
I have worked out how to load the XML file into the XMLDOM and am able to transform that with the XSLT but cannot work out how to execute a short XQUERY instruction before doing the transform.
FYI: The code I have at the moment is:
<%
set xmlsource = Server.CreateObject("Microsoft.XMLDOM")
xmlsource.async = false
xmlsource.load(Server.MapPath("docs.xml"))
set xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load(Server.MapPath("docs.xsl"))
Response.Write(xmlsource.transformNode(xsl))
%>
and for the sake of example the XQUERY could be 'doc("docs.xml")' (I appreciate this does nothing).
I am sure this is probably very easy but I am new to XML so bare with me.
I am trying to create an ASP page which will load an XML file sitting on the server, run a XQuery over it then transform the results with and XSLT stylesheet.
I have worked out how to load the XML file into the XMLDOM and am able to transform that with the XSLT but cannot work out how to execute a short XQUERY instruction before doing the transform.
FYI: The code I have at the moment is:
<%
set xmlsource = Server.CreateObject("Microsoft.XMLDOM")
xmlsource.async = false
xmlsource.load(Server.MapPath("docs.xml"))
set xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load(Server.MapPath("docs.xsl"))
Response.Write(xmlsource.transformNode(xsl))
%>
and for the sake of example the XQUERY could be 'doc("docs.xml")' (I appreciate this does nothing).