Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > DTD questions

Reply
Thread Tools

DTD questions

 
 
Robert William Vesterman
Guest
Posts: n/a
 
      12-19-2004
(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.
 
Reply With Quote
 
 
 
 
Bjoern Hoehrmann
Guest
Posts: n/a
 
      12-19-2004
* 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 · private.php?do=newpm&u= · 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/
 
Reply With Quote
 
 
 
 
Peter Flynn
Guest
Posts: n/a
 
      12-31-2004
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_
 
Reply With Quote
 
Arjun Ray
Guest
Posts: n/a
 
      12-31-2004
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML file from one DTD to another DTD test Java 2 07-28-2006 08:48 PM
How to specify DTD to DTD.getDTD for DocumentParser? Ronald Fischer Java 4 03-17-2005 09:37 AM
Removing the dtd name when using print(...) on the dtd generated class Joseph Tilian Java 0 12-21-2004 02:58 PM
Some questions about XML and DTD Leonardo Hyppolito XML 5 03-04-2004 11:42 PM
Including a dtd into another dtd... possible? Asfand Yar Qazi XML 1 09-19-2003 12:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57