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

Re: Keys with duplicates should be simple

Subject: Re: Keys with duplicates should be simple
From: Graydon <graydon@xxxxxxxxx>
Date: Sat, 1 Feb 2014 16:20:02 -0500
Re:  Keys with duplicates should be simple
On Sat, Feb 01, 2014 at 09:06:56PM +0000, David Carlisle scripsit:
> On 01/02/2014 00:11, Graydon wrote:
> >I still want a better syntax for using negated except in predicates,
> >such as:
> >
> >div[not(* except (heading,para))]
> 
> div[every $e in * satisfies $e/(self::heading or self::para)]

That's equivalent, it's conceptually clearer if people are comfortable
with slash-sequence, but I'm not sure it's clearer as a syntactical
expression.

I think I mostly want something like

div[only(heading,para)]

but that raises the question of what only() would do with comments and
processing instructions.

(And yes, I could perfectly well write a local:only().)

-- Graydon

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.