Loading from a query string?

wxdqz

New Member
Hello, i'm a newbie at xml....

I'm stuck on this. I've been told to get a search working.

the company has the xml page and I'm to make a form that requests a query.

Here is and example of what the form will bring back:

<!-- m --><a class="postlink" href="http://www.parts-unlimited.net/dealerLocator/dealerLocator_resultsp.jsp?new_search=y&site_name=Parts+Unlimited&zip_code=19320&distance=10">http://www.parts-unlimited.net/dealerLo ... istance=10</a><!-- m -->

it comes back as an xml, but if I try to put that link into the script below it sends back an error like it's not getting the information:

<%
set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")
set xslDoc = Server.CreateObject("Microsoft.XMLDOM")
xmlDoc.async = false
xmlDoc.load("http://www.parts-unlimited.net/dealerLocator/dealerLocator_resultsp.jsp?new_search=y&site_name=Parts+Unlimited&zip_code=19320&distance=10")
xslDoc.async = false
xslDoc.load("PUL2.xsl")
if xmlDoc.parseError.errorcode<>0 then
'error handling code
else
' proceed
end if
Response.Write(xmlDoc.transformNode(xslDoc))
%>


Here is the error:
msxml3.dll error '80004005'

The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document.

/velocitytest/newxmltest-fullquery.asp, line 13

Any ideas?

oh, here is the xsl code:
<?xml version="1.0" encoding="ISO8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<xsl:for-each select="dealerSearchResults/featuredDealers/dealers/dealer">
<font color="red" size="5"><b><xsl:value-of select="@name"/></b></font><br />
<font color="blue" size="3"><b><xsl:value-of select="@address1"/></b></font><br />
<font color="blue" size="3"><b><xsl:value-of select="@addressClose"/></b></font><br />
Phone:
<xsl:value-of select="@phone" /> <br />
Distance:
<font color="grey" size="3"><b><xsl:value-of select="@distance"/></b></font><br />
Dealer Website:
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://{@url}"><xsl:value-of select="@url"/></a><br /><br />
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
 
Back
Top