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

Re: XPath/XSLT 2.0 concerns


xpath restriction
Michael Kay wrote:

> Yes, I think one thing we've learnt from the problems with "namespace
> nodes" is that representing all information in terms of nodes is a bad
> idea, because nodes carry too much baggage - they have identity, they
> belong to a document, they have a parent. Can two elements in different
> documents share a "type node"? If the context item is a "type node",
> what is the value of "/"?


I think the problem with namespace nodes is different in that they must coexist
with the other nodes in the *same* document. As I see it, this restriction wouldn't
apply to an annotation:: axis. What nodes and what document(s) they belong
to would not be specified in the XPath-NG specification.  So without this restriction,
why not use nodes (elements, attributes, text etc) for type information (and other 
annotations)? Why not use XML for type information structures in XPath? I mean,
the selector syntax is kind of built into the language it self :-). I see no reason to invent
something new here (however fun it may be).

To answer the question "If the context item is a "type node" what is the value of '/'"
you would have to check with the specification for the particulary type system you
are using.

And axis or not, I think it's really just a question of notation if you say
foo/annotation::psvi:type-definition or foo/annotation ('psvi:type-definition').

Cheers,
David


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.