Internal DTD fragment

Discussion in 'XML' started by gipsy boy, Jan 10, 2005.

  1. gipsy boy

    gipsy boy Guest

    "NOTE:In order for such an attribute to be used with the XPath id
    function, it must actually be declared in the DTD as being an ID."

    How do I do this, define an internal DTD fragment that does this?

    Thanks!

    --
    - gipsy boy
     
    gipsy boy, Jan 10, 2005
    #1
    1. Advertising

  2. gipsy boy

    Peter Flynn Guest

    gipsy boy wrote:

    > "NOTE:In order for such an attribute to be used with the XPath id
    > function, it must actually be declared in the DTD as being an ID."
    >
    > How do I do this, define an internal DTD fragment that does this?


    <!DOCTYPE report SYSTEM "http://blah.blah/report.dtd" [
    <!ATTLIST list id ID #REQUIRED>
    ]>

    That creates an attribute called "id" of type ID on the "list" element
    in that report DTD.

    ///Peter
    --
    "The cat in the box is both a wave and a particle"
    -- Terry Pratchett, introducing quantum physics in _The Authentic Cat_
     
    Peter Flynn, Jan 10, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joseph Tilian
    Replies:
    0
    Views:
    376
    Joseph Tilian
    Dec 21, 2004
  2. Ronald Fischer
    Replies:
    4
    Views:
    1,805
    Ronald Fischer
    Mar 17, 2005
  3. Simon
    Replies:
    0
    Views:
    1,366
    Simon
    Jul 3, 2003
  4. test
    Replies:
    2
    Views:
    2,174
    Oliver Wong
    Jul 28, 2006
  5. Chris W
    Replies:
    2
    Views:
    423
    Chris W
    Oct 11, 2008
Loading...

Share This Page