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

Re: 2.0 feature request

Subject: Re: 2.0 feature request
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Tue, 20 Feb 2001 11:24:55 +0100
Re:  2.0 feature request
Jeni Tennison wrote:
> 
> Just to point out that when you put that into an expression in XSLT
> you get:
> 
>  /emp[rating = "Poor"]/@mgr -&gt; emp/@mgr -&gt; emp/name
> 
> (the > signs have to be escaped in attribute values) which is slightly

"have to" or "may" ?

XML 1.0 states:

The right angle bracket (>) may be represented using the string "&gt;",
and must, for compatibility, be escaped using "&gt;" or a character
reference when it appears in the string "]]>" in content, when that
string is not marking the end of a CDATA section.

and

[10]  AttValue ::=   
            '"' ([^<&"] | Reference)* '"' 
         |  "'" ([^<&'] | Reference)* "'"

and you can keep your ">" unescaped in attributes.

It's a reason why I often reverse my XPath tests to use ">" rather the
"<" for readability ;=)

Eric

> less easily readable. It would be nice (i.e. preferential but fairly
> low priority) if XPath 2.0 could steer away from using characters that
> have to be escaped in attribute values (though it's obviously already
> using some, and there are only so many characters you can use).
> 
> Cheers,
> 
> Jeni
> 
> ---
> Jeni Tennison
> http://www.jenitennison.com/
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 
See you in Austin (Knowledge Technologies 2001)
              http://www.gca.org/attend/2001_conferences/kt_2001/mon.htm
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------

 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.