qiuwei / jing-trang

Automatically exported from code.google.com/p/jing-trang
Other
1 stars 1 forks source link

rnc comment containing '-->' produces invalid xsd #131

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Translate the following rnc to xsd:
   grammar {
     # --> single comment
     start = element xml { text }
   } 
2. The xsd comment will be closed prematurely.
3. Conversion to rng translates the string "-->" to "- ->"
   thus avoiding this problem. 

Version: trang-20081028
OS:  SunOS 5.10

Original issue reported on code.google.com by e...@leo.org on 6 Dec 2010 at 12:21