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

Re: New/old pattern syntax, why can't we have both ?

Subject: Re: New/old pattern syntax, why can't we have both ?
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx>
Date: Mon, 24 Aug 1998 22:08:16 -0500
Re: New/old pattern syntax
James K. Tauber wrote:
> 
> I'm interested in exploring the possibility of expanding both to form a
> superset tree addressing language.
> 
> What might make this difficult is that:
> 
> 1. XSL patterns are generally interested in a class of nodes (eg "all the
> elements of type 'emph'") whereas XPointers are generally interested in a
> specific node.

So we're talking about a function that returns one node or one or more.
Clearly the first is just a superset of the second. XPointers could be
merely constrained from resulting in a result set of more than one node.
 
> 2. The processing models are likely quite different. XPointers are used to
> find nodes in a document whereas with XSL, you start with a node and try to
> find the pattern that matches with the greatest specificity.

That's just one way to look at it. You could think of XSL dividing up all
nodes into a sets (the result of queries). One node can reside in multiple
query result sets. The set that most specifically describes the node is
the one that wins.
 
> I don't think XPointers are sufficient but I don't think it would take much
> to make them so.

I agree. This is an important harmonization project. Addressing, filtering
and querying are different views of the same thing, and should share a
syntax and data model.

 Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

"You have the wrong number."
"Eh? Isn't that the Odeon?"
"No, this is the Great Theater of Life. Admission is free, but the 
taxation is mortal. You come when you can, and leave when you must. The 
show is continuous. Good-night." -- Robertson Davies, "The Cunning Man"


 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.