OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Annotations in XPath-NG? (Re: [xml-dev] XPath/XSLT 2.0 con

[ Lists Home | Date Index | Thread Index ]


Uche Ogbuji wrote:

> [...]  I agree that an annotation system would be great for XPath
> 2.0, and, in fact, Eric and I had been discussing how to add such a thing to
> 4Suite so we could implement some of the modular data typing straw men we've
> been discussing.
>
> My foirst comment is that it should be generic annotation, not just type
> annotation.  My thoughts would be:
>
> Add an "annotation" property to each node.  This is a simple key/value pair
> where the key is URI (or is that anathema  ;-) ) and the value is any XPath
> 1.0 object (which would even allow annotations to be cross-node links).
>
> You can access any particular annotation for any particular XPath object with
> a function lookup(annoitation-key).  Of course, some facilities, such as
> optimizers, might use annotations behind the scenes, directly.
>
> Does this sound like a good general approach?


Cost has something like this:

    <URL: http://www.flightlab.com/cost/manual.html#PROPERTIES >

I've found it to be a very useful feature.


--Joe English

  jenglish@flightlab.com




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS