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

RE: XSL, Escaping, undocumented?

Subject: RE: XSL, Escaping, undocumented?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 16 Jun 2003 21:08:20 +0100
xsl escaping
The document() function is designed to read well-formed XML documents.
If it finds anything else, it can either report a fatal error, or
recover by returning an empty node-set.

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> FireNet - Information
> Sent: 16 June 2003 13:30
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: SV:  XSL, Escaping, undocumented?
> 
> 
> Hi.
> I found out that, when assigning a value to a variable, from 
> the document function, and the value is not enclosed in tags 
> (<value>11:34</value>), the variable will be empty.
> 
> The question is now, whether it's possible to retrieve the 
> value, when it's not enclosed in tags.
> 
> -----Oprindelig meddelelse-----
> Fra: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Pa vegne af Michael Kay
> Sendt: 15. juni 2003 22:22
> Til: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Emne: RE:  XSL, Escaping, undocumented?
> 
> 
> > XSL will try to retrieve a value from the URL: 
> > www.time.gov/time.asp?state=la&amp;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.
> 
> When you write &amp; in the URL in your stylesheet, it is 
> converted by the XML parser to "&", so the URL that is passed 
> to the document function is indeed
> 
 www.time.gov/time.asp?state=la&applysummertime=no

I can't see why this isn't working.

Michael Kay


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


 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

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