XML to DTD Trang Conversion namespace-prefix Bug

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Klaus
Posts: 2
Joined: Thu Dec 14, 2006 1:46 pm

XML to DTD Trang Conversion namespace-prefix Bug

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Can you post a sample of your XML file ?


Regards,
Sorin
Klaus
Posts: 2
Joined: Thu Dec 14, 2006 1:46 pm

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Post 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
Post Reply