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

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [relax-ng] Including a schema more than once without causing errors


Makoto,
 
Or take the "guard" labelling approach - and allow overriding / replacing - so the second occurence inside an include can be noted to replace the existing definition...
 
DW

"The way to be is to do" - Confucius (551-472 B.C.)


-------- Original Message --------
Subject: Re: [relax-ng] Including a schema more than once without
causing errors
From: "MURATA Makoto (FAMILY Given)" <eb2m-mrt@asahi-net.or.jp>
Date: Mon, June 11, 2007 4:30 am
To: <relax-ng@lists.oasis-open.org>

> Seems to me that the safest solution is that proposed by John Cowan: to
> allow multiple definitions without the combine attribute only when the
> right-hand side of the multiple definitions are identical.

If we adopt this approach, we have to exactly define when two
definitions are identical.

I believe that RELAX NG validators start normalization immediately after 
reading each define statement.  Thus, some implementations assume

  foo = (bar, empty) | bar

and 

  foo = bar

are identical, while others do not.

Cheers,

-- 
MURATA Makoto (FAMILY Given) <EB2M-MRT@asahi-net.or.jp>




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]