DTD questions

  • Thread starter Robert William Vesterman
  • Start date
R

Robert William Vesterman

(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.
 
B

Bjoern Hoehrmann

* 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.
 
P

Peter Flynn

Robert said:
(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
 
A

Arjun Ray

Robert William Vesterman wrote:

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.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top