Sign In/My Account | View Cart  
advertisement

Article:
 Relax NG, Compared
Subject: "br" element not well-formed?
Date: 2002-10-10 09:09:37
From: Matt Plumtree

In the following example, at the end of the Content Types section on page 4:


<element name="p">
<zeroOrMore>
<text/>
<element name="br">
</zeroOrMore>
<optional>
<text/>
</optional>
</element>


Shouldn't the "br" element be declared:


<element name="br" />


so that it is well-formed? This would match the text, which indicates that the "br" elements are themselves empty.


No Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • "br" element not well-formed?
    2004-07-29 07:34:44 mhawkshaw

    It should read:


    <element name="br">
    <empty/>
    </element>


    As <element/> is not allowed.


Sponsored By: