[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xml-dev] Re: determining ID-ness in XML
At 9:40 AM +0000 11/8/01, David Carlisle wrote:
>xml:space maybe a better example, that can't be normalised and it is (or
>should be according to xml) added to every dtd.
Actually no. It is not added to every DTD. It is added to DTDs for
those applications that want xml:space. Many XML applications do not
see a need for xml:space and happily leave it out. Valid documents
written in these xml:space ignorant applications cannot use
xml:space. Secction 2.10 of the XML spec states, "A special attribute
named xml:space may be attached to an element to signal an intention
that in that element, white space should be preserved by
applications." Note *may* be attached, not "must be attached" or even
"should be attached".
xml:id would be exactly the same. Use it if you want. Ignore it if you don't.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| The XML Bible, 2nd Edition (Hungry Minds, 2001) |
| http://www.ibiblio.org/xml/books/bible2/ |
| http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/ |
+----------------------------------+---------------------------------+