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

RE: Restrictions on existence of attributes?


xsl detect existence of attributes
Le jeudi 06 juillet 2006 à 09:07 +0100, Michael Kay a écrit :
> > a toolmaker could easily make a system that checks whether one 
> > RELAX NG schema is a restricted or xsd-style extension of 
> > another. 
> 
> I disagree. Just because month has the value-set 1..12 and percentage has
> the value-set 1..100 does not mean that month is a subtype of percentage.
> Subtyping is a semantic relationship, not merely a syntactic one.

Yes, but...

I agree that subtyping is a semantic relationship and that's why I think
that it would be appropriate to use annotations to express this notion
in RELAX NG.

There are cases where things are already clear enough in a RELAX NG
schema to detect these relations (typically in my examples corresponding
to extension and substitution groups).

And it would also be useful to be able to check if a schema is a
restriction or an extension of another one. This is a different concept
which is purely about validation but tools to check this would be very
useful in a number of situations.

Eric

-- 
GPG-PGP: 2A528005
Have you ever thought about unit testing XSLT templates?
                                                     http://xsltunit.org
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------

Ceci est une partie de message=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


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.