extend existing dtd

Discussion in 'XML' started by Andreas, Feb 14, 2005.

  1. Andreas

    Andreas Guest

    Hi guys,

    I am fairly new to XML, so please forgive me if this questions is really
    simple:

    is there a possibility to extend existing DTDs? I would like to base my XML
    DTD on the existing http://www.w3.org/TR/html4/loose.dtd, but I want to add
    a few more elements. Is that possible to do and if so, what would be the
    easiest way to do it? I mean, without cutting and pasting the entire W3 DTD
    into my own file?

    Thanks heaps!
     
    Andreas, Feb 14, 2005
    #1
    1. Advertisements

  2. Andreas

    Soren Kuula Guest

    Internal subsets might work for you ?

    <!DOCTYPE foo PUBLIC "..." "..." [
    <!ElEMENT my_first_new_element....>
    ...
    ]>

    <foo>
    ....
    </foo>

    But you have to include that into every XML document then,

    I think there is no other solution.

    Soren
     
    Soren Kuula, Feb 15, 2005
    #2
    1. Advertisements

  3. Andreas

    Soren Kuula Guest


    Internal subsets might work for you ?

    <!DOCTYPE foo PUBLIC "..." "..." [
    <!ElEMENT my_first_new_element....>
    ...
    ]>

    <foo>
    ....
    </foo>

    But you have to include that into every XML document then,

    OR look in the thread below, "why does a browser...". Maybe you can
    include two external entities?

    Soren
     
    Soren Kuula, Feb 15, 2005
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.