[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: URL parameters in xsl

Subject: RE: URL parameters in xsl
From: "Martin Lampen" <mlampe@xxxxxxxxxxx>
Date: Thu, 22 May 2003 05:36:05 -0500
xsl get url parameter
Very strange. When I link from http://192.168.22.105/default.asp?uid=6 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:  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
first...
  
Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.