RE: [xsl] URL parameters in xsl

Subject: RE: [xsl] URL parameters in xsl
From: "Martin Lampen" <mlampe@xxxxxxxxxxx>
Date: Thu, 22 May 2003 05:36:05 -0500
Very strange. When I link from I get an internal server error, but when I refresh the page, the rendered page appears.

-----Original Message-----
From: Jeni Tennison [mailto:jeni@xxxxxxxxxxxxxxxx]
Sent: 22 May 2003 11:03
To: Martin Lampen
Cc: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] URL parameters in xsl

Hi Martin,

> When I use Americo's code, I get the following error..
> 'The stylesheet does not contain a document element. The stylesheet
> may be empty, or it may not be a well-formed XML document.
> /default.asp, line 14 '

Your stylesheet is well-formed (or at least what you sent is) so it
sounds as if the ASP code isn't managing to locate the stylesheet.
Check the location of the stylesheet and make sure the code's pointing
to the right place.

If there's no immediately obvious error, try including some debugging
code to check that the stylesheet has been loaded correctly. Something
like (in JavaScript since I don't know VBScript):

  if (xslDoc.parseError.errorCode != 0) {
    var error = xslDoc.parseError;
    alert('Error parsing ' + error.url +
          ' at ' + error.line + ':' + error.linepos +
          ':\n' + error.reason);

That should give you more idea about what the problem is.

By the way, I can't see where you're using the $uid parameter in your
stylesheet. I'm not sure what you want to do with it? But first things


Jeni Tennison

 XSL-List info and archive:

Current Thread