I'm having a bit of trouble using Request.QuerySt ring(). 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.as p?id=a">A</a> |
<a href="browse.as p?id=b">B</a> |
<a href="browse.as p?id=c">C</a>
</body>
</html>
browse.asp
========
<%@ Language="VBScr ipt" %>
<%
dim objDom, fileExists, objFieldValue, objPI
st1 = Request.QuerySt ring("id")
set xmlDocument = CreateObject("M SXML2.FreeThrea dedDOMDocument" )
xmlDocument.asy nc="false"
xmlDocument.loa d(Server.MapPat h("db/data.xml"))
set xslDocument = CreateObject("M SXML2.FreeThrea dedDOMDocument" )
xslDocument.asy nc="false"
xslDocument.loa d(Server.MapPat h("browse_resul ts.xsl"))
Set XSLTemplate = Server.CreateOb ject("MSXML2.XS LTemplate")
Set XSLTemplate.sty lesheet = xslDocument
Set proc = XSLTemplate.cre ateProcessor()
proc.input = xmlDocument
proc.addParamet er "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.as p?id=a">A</a> |
<a href="browse.as p?id=b">B</a> |
<a href="browse.as p?id=c">C</a>
</body>
</html>
browse.asp
========
<%@ Language="VBScr ipt" %>
<%
dim objDom, fileExists, objFieldValue, objPI
st1 = Request.QuerySt ring("id")
set xmlDocument = CreateObject("M SXML2.FreeThrea dedDOMDocument" )
xmlDocument.asy nc="false"
xmlDocument.loa d(Server.MapPat h("db/data.xml"))
set xslDocument = CreateObject("M SXML2.FreeThrea dedDOMDocument" )
xslDocument.asy nc="false"
xslDocument.loa d(Server.MapPat h("browse_resul ts.xsl"))
Set XSLTemplate = Server.CreateOb ject("MSXML2.XS LTemplate")
Set XSLTemplate.sty lesheet = xslDocument
Set proc = XSLTemplate.cre ateProcessor()
proc.input = xmlDocument
proc.addParamet er "text0", st1
proc.Transform
Response.Write proc.output
%>
Comment