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

Re: Relax NG annoyances


relax ng namespace validation
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



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.