OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] can you use inheritance (extension) in relax ng?

[ Lists Home | Date Index | Thread Index ]

Hi,

> -----Original Message-----
> From: J. David Eisenberg [mailto:catcode@catcode.com]
> Sent: Saturday, October 25, 2003 1:40 PM
> To: xml-dev@lists.xml.org
> 
> > 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>





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS