[relaxng-user] trang: translating comments between compact and xml

David Tolpin dvd at davidashen.net
Wed Nov 26 00:36:38 ICT 2003


Hi,

trang translates

element 
( a # case a
| b # case b
)
{ empty }

into

<?xml version="1.0" encoding="UTF-8"?>
<element xmlns="http://relaxng.org/ns/structure/1.0">
  <choice>
    <name>a</name>
    <!-- case a -->
    <name>b</name>
  </choice>
  <!-- case b -->
  <empty/>
</element>

moving the second comment past the end of the name class.  I realize that translation
of comments is not normative;  however, since the comments are translated by trang,
is there a list of patterns where comments do not stay in place during translation?

David Tolpin
http://davidashen.net/


More information about the relaxng-user mailing list