ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] Rick Jelliffe quotable quote on the purpose of schemas
by Philippe Poulard other posts by this author
Dec 13 2006 10:44AM messages near this date
RE: [xml-dev] Rick Jelliffe quotable quote on the purpose of schemas | RE: [xml-dev] Rick Jelliffe quotable quote on the purpose of schemas
& XSLT Michael Kay wrote:
> >Except that you will need 3000 tags to express all that 
> >people expect and will expect.
>  
>  
>  I'm not sure what you're getting at here. Why should a constraint expressed
>  in a declarative language be harder to express than the same constraint in a
>  procedural language?  Why are multiple tags needed?

Because the expressiveness of W3C XML Schema is (explicitely or 
implicitely) well-defined in the spec : some things can be expressed 
others can't, for example co-occurence constraints ; I remember that the 
guy who talked about co-occurence constraints last week in Boston 
introduced a new element (or an attribute, I don't really remember) for 
that purpose : so, new feature, new tag.

>  
>  Can you give me an example of a constraint which is difficult, or verbose,
>  to express in a declarative language such as XQuery?

Here is one that you can't express in W3C XML Schema :
-the number of cells must be the same in all columns of the table
http://reflex.gforge.inria.fr/tutorial/active-schema/datas.xml
(this was expressed by someone who asked for a W3C XML Schema, and that 
gurus said it was impossible ; if it is, please just let me know)

If this discussion were reduced to schemata, a language such as XQuery 
could be used to express additional constraints that you can't express 
with your favorite schema language ; this is the same as using 
Schematron, or by using XSLT for further validation. However, none of 
them act at the component level, that is to say at the content model 
level : an editor would propose you to insert an element which would be 
rejected by XQuery/Schematron/XSLT.

What is missing in operating and declarative tag libs in general 
(including but not limited to schemata) is an intrusive mean to act at 
the component level. XQuery is irrelevant in this case. But it could 
help : Active Tags is based on XPath, and could rely on XQuery (some 
arrangements would be required : in Active Tags, some tags are litteral 
others are "active").

>  
>  Michael Kay
>  http://www.saxonica.com/
>  


-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@[...].org
subscribe: xml-dev-subscribe@[...].org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
Thread:
Michael Kay
Philippe Poulard
Michael Kay
Philippe Poulard
Philippe Poulard
Rick Jelliffe
Michael Kay
Len Bullard
Robert Koberg
Greg Alvord
Rick Marshall

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved