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] | [Elist Home]


Subject: Re: Convention for mimicking inheritance in RELAX NG


I created a syntax sugar for this convention.  You can write

  <class name="animal" abstract="true"/>

  <class name="mamal" base="animal" abstract="true"/>

  <class name="cat" base="mamal">
    <optional>
      <attribute name="color"/>
    </optional>
  </class>

.

By applying the attached XSLT stylesheet, you get a RELAX NG schema.

fortuneCat1.orng

ooRelaxng1.xsl

f.rng

fortuneCat.xml



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


Powered by eList eXpress LLC