T
thomas
I'm having a bit of trouble using Request.QueryString(). I want to click on
the link to browse all <artist> records in an xml file begining with a
particular letter. Any ideas where I'm going wrong?
index.html
=======
<html>
<body>
<p>browse by artist</p>
<a href="browse.asp?id=a">A</a> |
<a href="browse.asp?id=b">B</a> |
<a href="browse.asp?id=c">C</a>
</body>
</html>
browse.asp
========
<%@ Language="VBScript" %>
<%
dim objDom, fileExists, objFieldValue, objPI
st1 = Request.QueryString("id")
set xmlDocument = CreateObject("MSXML2.FreeThreadedDOMDocument")
xmlDocument.async="false"
xmlDocument.load(Server.MapPath("db/data.xml"))
set xslDocument = CreateObject("MSXML2.FreeThreadedDOMDocument")
xslDocument.async="false"
xslDocument.load(Server.MapPath("browse_results.xsl"))
Set XSLTemplate = Server.CreateObject("MSXML2.XSLTemplate")
Set XSLTemplate.stylesheet = xslDocument
Set proc = XSLTemplate.createProcessor()
proc.input = xmlDocument
proc.addParameter "text0", st1
proc.Transform
Response.Write proc.output
%>
the link to browse all <artist> records in an xml file begining with a
particular letter. Any ideas where I'm going wrong?
index.html
=======
<html>
<body>
<p>browse by artist</p>
<a href="browse.asp?id=a">A</a> |
<a href="browse.asp?id=b">B</a> |
<a href="browse.asp?id=c">C</a>
</body>
</html>
browse.asp
========
<%@ Language="VBScript" %>
<%
dim objDom, fileExists, objFieldValue, objPI
st1 = Request.QueryString("id")
set xmlDocument = CreateObject("MSXML2.FreeThreadedDOMDocument")
xmlDocument.async="false"
xmlDocument.load(Server.MapPath("db/data.xml"))
set xslDocument = CreateObject("MSXML2.FreeThreadedDOMDocument")
xslDocument.async="false"
xslDocument.load(Server.MapPath("browse_results.xsl"))
Set XSLTemplate = Server.CreateObject("MSXML2.XSLTemplate")
Set XSLTemplate.stylesheet = xslDocument
Set proc = XSLTemplate.createProcessor()
proc.input = xmlDocument
proc.addParameter "text0", st1
proc.Transform
Response.Write proc.output
%>