DTD questions

Discussion in 'XML' started by Robert William Vesterman, Dec 19, 2004.

  1. (1) Is there a way to say that an attribute is an ID, but it also must
    be of a certain form (i.e. conform to an <!ENTITY> specification)?

    (2) Is there a way to say that an attribute's value should be
    considered case-insensitive?

    Thanks,

    Bob Vesterman.
     
    Robert William Vesterman, Dec 19, 2004
    #1
    1. Advertising

  2. * Robert William Vesterman wrote in comp.text.xml:
    >(1) Is there a way to say that an attribute is an ID, but it also must
    >be of a certain form (i.e. conform to an <!ENTITY> specification)?


    No.

    >(2) Is there a way to say that an attribute's value should be
    >considered case-insensitive?


    No.
    --
    Björn Höhrmann · mailto: · http://bjoern.hoehrmann.de
    Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
    68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
     
    Bjoern Hoehrmann, Dec 19, 2004
    #2
    1. Advertising

  3. Robert William Vesterman

    Peter Flynn Guest

    Robert William Vesterman wrote:

    > (1) Is there a way to say that an attribute is an ID, but it also must
    > be of a certain form (i.e. conform to an <!ENTITY> specification)?


    No. ID values must be literals.

    > (2) Is there a way to say that an attribute's value should be
    > considered case-insensitive?


    No, XML specifies that they must be case-sensitive.
    If you want them to be case-insensitive, use SGML instead of XML.

    ///Peter
    --
    "The cat in the box is both a wave and a particle"
    -- Terry Pratchett, introducing quantum physics in _The Authentic Cat_
     
    Peter Flynn, Dec 31, 2004
    #3
  4. Robert William Vesterman

    Arjun Ray Guest

    On Fri, 31 Dec 2004 02:22:04 +0000, Peter Flynn wrote:
    > Robert William Vesterman wrote:


    >> (2) Is there a way to say that an attribute's value should be
    >> considered case-insensitive?

    >
    > No, XML specifies that they must be case-sensitive.
    > If you want them to be case-insensitive, use SGML instead of XML.


    Yes, but it needs to be remembered here that SGML doesn't really have a
    "case insensitivity" option. The option is better termed "case folding",
    where name tokens are normalized by the parser to upper-case form.
     
    Arjun Ray, Dec 31, 2004
    #4
    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:
    355
    Joseph Tilian
    Dec 21, 2004
  2. Ronald Fischer
    Replies:
    4
    Views:
    1,762
    Ronald Fischer
    Mar 17, 2005
  3. Leonardo Hyppolito

    Some questions about XML and DTD

    Leonardo Hyppolito, Mar 4, 2004, in forum: XML
    Replies:
    5
    Views:
    377
    Leonardo Hyppolito
    Mar 4, 2004
  4. test
    Replies:
    2
    Views:
    2,045
    Oliver Wong
    Jul 28, 2006
  5. Ali Syed
    Replies:
    3
    Views:
    562
    Mark McIntyre
    Oct 13, 2004
Loading...

Share This Page