[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
SV: [xsl] XSL, Escaping, undocumented?
Subject: SV: [xsl] XSL, Escaping, undocumented? From: "FireNet - Information" <info@xxxxxxxxxx> Date: Sun, 15 Jun 2003 11:01:46 +0200 |
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@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Pa vegne af Oleg Tkachenko Sendt: 15. juni 2003 11:38 Til: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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 "&", it doesn't convert it to the actual amp character, which > means that the ASP script reads the state variable like > "la&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 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL, Escaping, undocument, Oleg Tkachenko | Thread | RE: [xsl] XSL, Escaping, undocument, Julian Reschke |
[xsl] XSL, Escaping, undocumented?, FireNet - Informatio | Date | Re: [xsl] Re: A Calendar Project..., Karl Stubsjoen |
Month |