xsl-list
[Top] [All Lists]

SV: XSL, Escaping, undocumented?

2003-06-15 02:01:46
XSL will try to retrieve a value from the URL:
www.time.gov/time.asp?state=la&applysummertime=no
 - which, of course, is invalid to ASP. ASP is not supposed to convert the
URL. The browser is the only device that converts content, that is, XML,
HTML etc.

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



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".

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

-----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 Oleg 
Tkachenko
Sendt: 15. juni 2003 11:38
Til: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Emne: Re: [xsl] XSL, Escaping, undocumented?


FireNet - Information wrote:

I want this functionality in XSL:
<xsl:variable name="time"
select="document('www.time.gov/time.asp?state=la&applysummertime=no')"/>

The above ASP will return an XML document that will contain the time in
the
specified state.
My problem is that the MSXML XSL transformation handles the "&" character
as
an illegal character.
If I write "&amp;", it doesn't convert it to the actual amp character,
which
means that the ASP script reads the state variable like
"la&amp;applysummertime=no"..

Then there is something wrong with the ASP script or IIS, because using
&amp;
is the only valid way both in XML and HTML.

--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel


 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>