tksk / jing-trang

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

trang: no namespace prefixes for some generated DTD ATTLISTs #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Convert the following RNC schema to a DTD using trang:

namespace my = "http://www.example.com"

start = my.a
a.attlist = attribute foo { text }?
my.a = element my:a { a.attlist, text }

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

<?xml encoding="UTF-8"?>

<!ATTLIST a
  foo CDATA #IMPLIED>

<!ELEMENT my:a (#PCDATA)>
<!ATTLIST my:a
  xmlns:my CDATA #FIXED 'http://www.example.com'>

... is output. I would expect the "my" prefix to be used in the first ATTLIST.

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

20081028 on Java 1.6.0_11-b03 on Vista

Please provide any additional information below.

Original issue reported on code.google.com by alex.bro...@gmail.com on 13 Jan 2009 at 4:11

GoogleCodeExporter commented 9 years ago
Thanks for the helpful report.

Original comment by jjc.jclark.com on 14 Jan 2009 at 8:34

GoogleCodeExporter commented 9 years ago

Original comment by jjc.jclark.com on 14 Jan 2009 at 8:34

GoogleCodeExporter commented 9 years ago
Fixed in r2317.

Original comment by jjc.jclark.com on 15 Jan 2009 at 4:37