esgee85 / jing-trang

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

Trang's DTD output module doesn't convert a:documentation elements to XML comments #123

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. trang foo.rng foo.dtd

What is the expected output? What do you see instead?

Since foo.rng has an a:documentation element whose content is "This is element 
foo", foo.dtd should have a comment "This is element foo", but it does not.  
This is particularly bad considering that the point of the a: namespace is DTD 
compatibility.

What version of the product are you using? On what operating system?

Trang version 20091111 on Windows.

Please provide any additional information below.

The XSD and RNC output modules do the right thing.

Original issue reported on code.google.com by johnwco...@gmail.com on 15 Oct 2010 at 2:01

Attachments:

GoogleCodeExporter commented 8 years ago
It's actually already the first thing on the todo list for the DTD output 
module:

http://code.google.com/p/jing-trang/source/browse/trunk/mod/convert-to-dtd/todo.
txt

It's not as straightforward as it seems, because in general there is not a 1-1 
correspondence between RNG definitions and DTD declarations.

Original comment by jjc.jclark.com on 16 Oct 2010 at 4:06