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

Re: status of "collections" in XPath / XQuery


xquery collections
 From: "Michael Kay" <michael.h.kay@n...>
 
>   Is there thought going on regarding constraints on collections (when they
> are defined)?  I may want to have all
>   invoice numbers in a collection be unique.
> 
>   I haven't seen any proposals that address that. Certainly, XML Schema
> doesn't provide any cross-document validation.
 
The XLlinkIt validation language at www.xlinkit.com is aimed squarely at this
kind of problem, I think. (Christian Nentwich who sometimes posts on this list is, 
I believe, one of the programmers involved in it.)  

Schematron can do some kinds of inter-document validation, in particular
when there is a link in one document to another, e.g. to a controlled vocabulary.
But it lacks a for-each operator, and so is weak for collections. Xpath 2
may help in this, I don't know.

I gave up trying to figure out a Schematron expression to do this, but undoubtedly
something inefficient based on counting and the document() function could be
possible. 

Cheers
Rick Jelliffe


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.