Multiple DTD

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Armel HERVE

    #1

    Multiple DTD

    Hello every body,

    I need to construct an XML file using multiple DTDs.
    How can I use namespace to avoid conflict name if the 2 DTD define same
    ELEMENT ?

    Thanks for your answers

    Armel
  • Bob Foster

    #2
    Re: Multiple DTD

    "Armel HERVE" <armel.herve@ne tcourrier.com> wrote in message
    news:MPG.19fa2f 0c29bad97698969 8@news.free.fr. ..[color=blue]
    > I need to construct an XML file using multiple DTDs.
    > How can I use namespace to avoid conflict name if the 2 DTD define same
    > ELEMENT ?[/color]

    You can't. DTDs don't know anything about namespaces. The "poor man's
    namespace" trick involves modifying (at least one of) the DTDs so all
    element names from a given DTD can be given namespace-looking prefixes, but
    it requires quite a lot of DTD editing.

    Bob


    Comment

    • Armel HERVE

      #3
      Re: Multiple DTD

      In article <mG1kb.803783$H o3.217871@sccrn sc03>, bobkfoster@comc ast.net
      says...[color=blue]
      > "Armel HERVE" <armel.herve@ne tcourrier.com> wrote in message
      > news:MPG.19fa2f 0c29bad97698969 8@news.free.fr. ..[color=green]
      > > I need to construct an XML file using multiple DTDs.
      > > How can I use namespace to avoid conflict name if the 2 DTD define same
      > > ELEMENT ?[/color]
      >
      > You can't. DTDs don't know anything about namespaces. The "poor man's
      > namespace" trick involves modifying (at least one of) the DTDs so all
      > element names from a given DTD can be given namespace-looking prefixes, but
      > it requires quite a lot of DTD editing.
      >
      > Bob
      >
      >
      >[/color]
      Thanks for your answer.
      So can I do what I want ? Have I to put all DTD into one file and rename
      some ELEMENTS ?
      What is the best practice ?

      Thanks

      Armel

      Comment

      Working...