SV: XSL, Escaping, undocumented?
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, 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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format