Page 1 of 1

XML to DTD Trang Conversion namespace-prefix Bug

Posted: Thu Dec 14, 2006 2:06 pm
by Klaus
Hi ,

when I use the Trang Converter to generate a DTD from one of my XML-Files, it produces prefixed elements but with content models where prefixes are missing.

Example:

<!ELEMENT gml:LineString (metaDataProperty?,(pos|pointProperty)+)>

Correct:

<!ELEMENT gml:LineString (gml:metaDataProperty?,(gml:pos|gml:pointProperty)+)>

For the result DTD Oxygen notifies these errors.

I think this is a Converter- bug.

Regards,
Klaus

Posted: Thu Dec 14, 2006 6:33 pm
by sorin_ristache
Hello,

Can you post a sample of your XML file ?


Regards,
Sorin

Posted: Thu Dec 14, 2006 8:56 pm
by Klaus
Hello,

here is an extract from the code:

<gml:LineString>
<gml:metaDataProperty>
</gml:metaDataProperty>

<gml:pointProperty>
<gml:Point gml:id="P32.6846_55.392">
<gml:pos srsDimension="2">32.6846 55.392</gml:pos>
</gml:Point>
</gml:pointProperty>
<gml:pos srsDimension="2">32.6846 58.503</gml:pos>
<gml:pos srsDimension="2">33.695 58.503</gml:pos>
<gml:pointProperty>
<gml:Point gml:id="IBTransitionToEntranceFoyerSouthPoint">
<gml:pos srsDimension="2">33.695 59.601</gml:pos>
</gml:Point>
</gml:pointProperty>
</gml:LineString>

Please post if you need the hole XML-file.

Regards,
Klaus

Posted: Fri Dec 15, 2006 12:00 pm
by sorin_ristache
Hello,

Yes, you are right. It is a bug in the Trang converter. The result DTD should contain:

Code: Select all

<!ELEMENT gml:LineString (gml:metaDataProperty,(gml:pos|gml:pointProperty)+)>

Regards,
Sorin

Posted: Mon Dec 18, 2006 1:46 pm
by Radu
Hi Klaus,

Just wanted to let you know we fixed the bug and the fix will probably be available in the next maintainance version.

Regards,
Radu