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

RE: can you use inheritance (extension) in relax ng?


relaxng inheritance
Hi,

> -----Original Message-----
> From: J. David Eisenberg [mailto:catcode@c...]
> Sent: Saturday, October 25, 2003 1:40 PM
> To: xml-dev@l...
> 
> > For now, I want to see why people here seem to believe that it (rnc) is
> > far superior.
> 
> >From the experience of the people in my introductory XML class, they like
> the compact syntax because it's easier to read and less to type. Also, it
> does not look like XML, so there is no confusion about which one is the
> target document and which one is the grammar. Personally, I am more used
> to the XML syntax of Relax NG, so I am stil doing a mental translation
> from XML when I write the compact syntax.
> 
> The class hasn't done XML Schema, but I have given them dire warnings
> about it, so their further experiences are going to be skewed.
> 
> I am in the "is this document valid" camp, not the "what data types does
> this document contain" crowd. Thus, my reaction to XML Schema is to flee,
> shrieking. Even easy things seem to be complicated with XSD.  Consider the
> simple example (shown at
> http://relaxng.org/pipermail/relaxng-user/2003-October/000079.html) which
> I have used when teaching Relax NG. I just could *not* get it to work in
> Schema.

Maybe XML Schema has warped my brain, but I would say that you either:

1. want the validation that Trang produced, because shouldn't you have some
text describing the list that follows (like HTML LI/OL or LI/UL).

Or,

2. you want a completely different element since they do two completely
different things. Why have an element that does (means) two completely
different things named the same?

(but I could not think of a way to do it in XML Schema, so... :)

Best,
-Rob


> 
> ---
> J. David Eisenberg  http://catcode.com/
> 
> 
> 
> 
> 
> -----------------------------------------------------------------
> 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>


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.