Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML-Schema to (SGML) DTD transcription

Reply
Thread Tools

XML-Schema to (SGML) DTD transcription

 
 
Martin Froehlich
Guest
Posts: n/a
 
      08-06-2004
Hello!

I'm looking for a method or tool to transcribe a XML-Schema (more
precisely the W3C XML-Schema Schema) to a classic DTD. That
is, I have a xyz.xsd file and want to have a xyz.dtd file. Not the
other way round.

The effect should be that any file which is valid according to
the XML-Schema is also valid according to the generated DTD.

I'm aware of the fact that for instance namespaces and such
constructs will introduce some complexity, but in the end
XML-Schema contains more constraints than the DTD formalism,
therefore -- from a theoretical point of view -- it should be
feasible. But has it already be done?

No search engine or FAQ-file I found on the net contained a
usable pointer, preventing me to reinvent the wheel. But maybe
the experts on this lists may have a hint.

Any help appreciated!

--
Martin Froehlich
System Development
Telefonica Deutschland GmbH
 
Reply With Quote
 
 
 
 
Kenneth Stephen
Guest
Posts: n/a
 
      08-07-2004
Martin Froehlich wrote:

> Hello!
>
> I'm looking for a method or tool to transcribe a XML-Schema (more
> precisely the W3C XML-Schema Schema) to a classic DTD. That
> is, I have a xyz.xsd file and want to have a xyz.dtd file. Not the
> other way round.

Martin,

I know that the (IBM product) WebSphere Studio Application Developer
can do this. It costs $$$. Since it is based on Eclipse, there exists
the slim possibility that Eclipse itself can do this, and Eclipse is
freely downloadable.

Regards,
Kenneth
 
Reply With Quote
 
 
 
 
Peter Flynn
Guest
Posts: n/a
 
      08-07-2004
Martin Froehlich wrote:

> Hello!
>
> I'm looking for a method or tool to transcribe a XML-Schema (more
> precisely the W3C XML-Schema Schema) to a classic DTD. That
> is, I have a xyz.xsd file and want to have a xyz.dtd file. Not the
> other way round.


Most of the big DTD/Schema design tools can do this, eg XML Spy.
But you risk losing some constraints.

> The effect should be that any file which is valid according to
> the XML-Schema is also valid according to the generated DTD.


Not possible to guarantee this.

> I'm aware of the fact that for instance namespaces and such
> constructs will introduce some complexity, but in the end
> XML-Schema contains more constraints than the DTD formalism,
> therefore -- from a theoretical point of view -- it should be
> feasible. But has it already be done?


No, the opposite is true: W3C Schema allows you to specify constraints
which cannot be specified in a DTD, so converting a W3C Schema to a
DTD means you may have to forego those constraints which cannot be
represented in a DTD.

///Peter
--
"The cat in the box is both a wave and a particle"
-- Terry Pratchett, introducing quantum physics in _The Authentic Cat_
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transcription using voice recognition? Sigi Rindler Computer Support 6 02-11-2007 02:53 AM
XML file from one DTD to another DTD test Java 2 07-28-2006 08:48 PM
How to specify DTD to DTD.getDTD for DocumentParser? Ronald Fischer Java 4 03-17-2005 09:37 AM
Removing the dtd name when using print(...) on the dtd generated class Joseph Tilian Java 0 12-21-2004 02:58 PM
Including a dtd into another dtd... possible? Asfand Yar Qazi XML 1 09-19-2003 12:10 PM



Advertisments