Subject: RE: [xsl] document() function: error when using asp generated xml From: Dave Grewcock <Dave.Grewcock@xxxxxxxxxxxx> Date: Wed, 11 Sep 2002 14:35:11 +0100 |
I'll watch the replies with interest. I am in a similar situation, trying to use XSLT document() function to call a SQL2000 template file that delivers an XML data set. When I execute this client side it all works fine. When I do it server side I get the same error as you I think. Dave -----Original Message----- From: Armand Pondman [mailto:Armand@xxxxxxxxxxxxxx] Sent: 11 September 2002 12:04 To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: [xsl] document() function: error when using asp generated xml I'm quite new to xsl but I recently created some pages with succes and i'm learning new stuff every day. There's one thing bothering me though: I get the following error when I use the document() function to read an asp script which generates well-formed xml. -------------- msxml4.dll error '80004005' Error while parsing "http://www.yourelement.nl/sanssouci/modules/reakties/data/xml/xmlReakties.a sp?page=/sanssouci/huisdjs.asp&id=6&itemid=1&query=". No data is available for the requested resource. -------------- The asp script generates the xml and outputs it with the XML contenttype. I'm using the complete uri locating the script file so the parser won't read the asp file from disk but from the uri instead (so the scripts gets executed and returns xml) I use the following code in my xsl file: <xsl:variable name="rdata" select="'http://www.yourelement.nl/sanssouci/modules/reakties/data/xml/xmlRe akties.asp'" /> <xsl:variable name="rsource" select="document(concat($rdata,'?page=',$script,'&id=',$id,'&itemid= ',$extid,'&query=',$query))" /> The strange thing is, when I view the page on my localhost there are no errors and the page loads correct. I tested it locally using the remote copy (with http://www.yourelement.nl/... ) and the local copy (with http://localhost/...) of the generated xml file. if I view the address contained in the error it shows the xml as it should. My own guess is there is something wrong with my remote webserver settings, because if the code works locally it shouldn't be a code problem right? or am i missing something? Both servers use the ISS webserver and the MS XML4 parser (msxml4.dll) but on the remote server the page fails to load. Is it my XSL/XML code? Do I need to alter a setting on the remote webserver? Can someone help me out please :) O yeah, before I forget: with all asp generated XML, when I click on View source I get an error saying: "The XML source is unavailable for viewing." Is this normal behaviour for generated xml files? Grtz, Armand XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] document() function: error wh, Armand Pondman | Thread | Re: [xsl] document() function: erro, J.Pietschmann |
RE: [xsl] doe alternative?, Michael Kay | Date | Re: [xsl] generalized unique elemen, David Carlisle |
Month |