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

SV: XSL, Escaping, undocumented?

Subject: SV: XSL, Escaping, undocumented?
From: "FireNet - Information" <info@xxxxxxxxxx>
Date: Sun, 15 Jun 2003 11:01:46 +0200
xsl escaping
XSL will try to retrieve a value from the URL:
 - 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@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Pa vegne af Oleg Tkachenko
Sendt: 15. juni 2003 11:38
Til: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Emne: Re:  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
> specified state.
> My problem is that the MSXML XSL transformation handles the "&" character
> an illegal character.
> If I write "&amp;", it doesn't convert it to the actual amp character,
> 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
is the only valid way both in XML and HTML.

Oleg Tkachenko
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

Current Thread


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.
First Name
Last Name
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.