Next in thread →
Next in month →
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.
Next in thread →
Next in month →