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: Unreachable elements


There's a bug in 4.18.  The second paragraph says:

"First, remove any define element which does not have any ref element
referring to it."

This was intended to remove unreachable definitions, but it doesn't quite
work.  For example, in

<grammar>

<start>
  <element name="foo"><empty/></element>
</start>

<define name="bar">
  <ref name="bar"/>
</define>

</grammar>

bar is unreachable but there's a ref element referring to it.  I would
propose to change this to:

"First, remove any define element that is not reachable.  A define element
is reachable if there is reachable ref element referring to it.  A ref
element is reachable if it is the descendant of the start element or of a
reachable define element."

James




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


Powered by eList eXpress LLC