This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How to specify parameters in the href attribute of xml-stylesh eet?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: How to specify parameters in the href attribute of xml-stylesh eet?
- From: Jonathan Marsh <jmarsh at microsoft dot com>
- Date: Thu, 11 May 2000 12:16:56 -0700
- Reply-To: xsl-list at mulberrytech dot com
This is a bug in IE5 in dealing with "&" in URLs in the xml-stylesheet PI.
I'd suggest using ";" as a delimiter instead - if I recall correctly the W3C
has been suggesting this for years. You will have to split the query string
yourself though instead of relying on available server methods to do it for
you.
- Jonathan Marsh
Microsoft
> -----Original Message-----
> From: Ciot, Thierry [mailto:Thierry.Ciot@numega.com]
> Sent: Thursday, May 11, 2000 11:26 AM
> To: xsl-list@mulberrytech.com
> Subject: Q: How to specify parameters in the href attribute of
> xml-stylesh eet?
>
>
> Hi,
>
> I am trying to change the content of my XSL stylesheets
> dynamically using
> microsoft active server pages. The parameters to change the
> style sheet are
> read from the URL (i.e. test_xsl.asp?param1=xxx). So far
> everything works
> fine except when I need to pass more than one parameter.
>
> That is, when I have, in my xml file:
>
> <?xml-stylesheet type="text/xsl" href="test_xsl.asp?param1=xxx"?>
>
> it works OK
>
> but when I have something like:
>
> <?xml-stylesheet type="text/xsl"
> href="test_xsl.asp?param1=xxx¶m2=yyy"?>
>
>
> it does NOT work.
>
>
> I suspect the problem is with the & that is used to separate
> the 2 name
> value pairs.
> I have tried to use an entity (&) but it does not work either.
>
> So my question is: How do I specify the ampersand to
> separater name value
> pairs.
>
> Thanks in advance, Thierry.
>
>
> PS: I am viewing the XML file in IE5.
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list