xsl-list
[Top] [All Lists]

SV: XSL, Escaping, undocumented?

2003-06-15 05:00:03
I'm using MS XML 4, XSL transformation.

My problem seems to be, that the document() function in XSL doesn't pass a
GET request when the URL contains >>&amp;<<.
Tests have shown that ASP (IIS) converts things like >>&amp;<< to >>&<<
automaticly.

The problem therefore lies in the document() function. I _could_ write #
instead of &, and make the ASP script switch the characters.
 - surely, I'd rather have it work the right way. Any ideas?


-----Oprindelig meddelelse-----
Fra: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]Pa vegne af 
Julian Reschke
Sendt: 15. juni 2003 11:12
Til: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Emne: RE: [xsl] XSL, Escaping, undocumented?


From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of 
FireNet -
Information
Sent: Sunday, June 15, 2003 11:02 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: SV: [xsl] XSL, Escaping, undocumented?


XSL will try to retrieve a value from the URL:
www.time.gov/time.asp?state=la&amp;applysummertime=no

If this is really the case, your XSLT engine is severely broken. Which one
is it? Do you have an HTTP trace of the GET request?

...

The question is, more directly: How do I put a & in an URL, that  I can
pass
to the document() function.

Using "&amp;". The XSLT processor should never do a GET request with the
XML-escaped ampersand, though.

I have another question:
How do I combine two variables?
Say, I have the variables; first, second, third - each with the respective
values 1, 2, 3.

How do I do something like: <xsl:value-of
select="$first$second$third"/> (in
ASP you would write >> first & second & third << to get the value "123".

select="concat($first,$second,$third)"

That way, I could, perhaps, define a variable with the value of  "&", and
use
it in the URL?

...but I'd be really surprised if this would help.

Julian


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


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



<Prev in Thread] Current Thread [Next in Thread>