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] Relax NG annoyances
by =?ISO-8859-1?Q?Bill_de_h=D3ra?= other posts by this author
Jul 2 2003 9:26PM messages near this date
Re: [xml-dev] Relax NG annoyances | RE: [xml-dev] Relax NG annoyances
Jimmy Cerra wrote:
>  Why aren't defined patterns named with QNames?  That would make
>  portability so much easier!  Such as:
>  
>  ] <pattern xmlns:jfc="My Namespace for Patterns">
>  ]   <define name="jfc:mypattern" />
>  ] </pattern>

How would this aid portability? Or, how do I import a namespace for 
validation purposes?


>  Why isn't there a more complete datatyping language?  Sure, W3C XML
>  Schema can often be ugly; however, it can also be elegant too.  Why
>  can't I specify unions and extensions of XML Schema datatypes?  Why
>  can't I specify non-whitespace separated lists?  Such as (I.E.
>  "NCName|anyURI"):
>  
>  ] <list separator="|">
>  ]   <data type="NCname" />
>  ]   <data type="anyURI" />
>  ] </list>

IMO that's the Right Thing. Keeping types that operate over elment 
content/attributes well apart from structural validation is a big 
big win for RNG. If you really these types you can create them, or a 
whole library. Jing and MSV include basic WXS types for 
convenience,. The only extra types I wish I had to hand are for 
email/URI validation, but it's not like they're hard to plugin, were 
I bothered.


>  Why can't I do that in Relax NG?  I understand that it was designed to
>  eliminate perceived annoyances with W3C XML Schema; however, Relax NG
>  has a bunch of annoyances to call its own.  :-/

I don't these are they however!

Bill de hÓra



-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Jimmy Cerra
Bob Foster
Jeni Tennison
Rick Jelliffe
Jeni Tennison
Rick Jelliffe
Jeni Tennison
James Clark
Robin Berjon
Jeni Tennison
Robin Berjon
Amelia A. Lewis
Berend de Boer
=?ISO-8859-1?Q?Bill_de_h=D3ra?=

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved