trang: translating comments between compact and xml

David Tolpin <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.