DTD questions

Robert William Vesterman

Usenet Archive
Joined
Jun 25, 2003
Messages
10
Reaction score
0
(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.
 

Bjoern Hoehrmann

Usenet Archive
Joined
Aug 15, 2000
Messages
719
Reaction score
0
* 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.
 

Peter Flynn

Usenet Archive
Joined
Jan 2, 2000
Messages
1,813
Reaction score
0
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
 

Arjun Ray

Usenet Archive
Joined
Jan 22, 2000
Messages
62
Reaction score
0
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
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top