apertium / lttoolbox

Finite state compiler, processor and helper tools used by apertium
http://wiki.apertium.org/wiki/Lttoolbox
GNU General Public License v2.0
18 stars 22 forks source link

<e/> gives `Error (29): Invalid inclusion of '<e>' into '<e>'.` #179

Closed unhammer closed 9 months ago

unhammer commented 9 months ago
<?xml version="1.0" encoding="UTF-8"?>
<dictionary type="separable">
  <alphabet/>
  <sdefs>
    <sdef n="n" c="Noun"/>
  </sdefs>
  <pardefs>
    <pardef n="foo">
      <e></e>
      <e/>
      <e><i>bar</i></e>
    </pardef>
  </pardefs>
  <section id="main" type="standard">
    <e>
      <p><l><s n="n"/></l> <r></r></p>
    </e>
</section>
</dictionary>

should be valid, but fails to compile with lsx-comp (unless I remove the <e/>), giving Error (29): Invalid inclusion of '<e>' into '<e>'.

(xsltproc turns <e></e> into <e/>)