[Home] [By Thread] [By Date] [Recent Entries]
At 3:07 PM +0900 7/10/01, Joel Rees wrote: >I have been assuming that non-name characters are not allowed in tag >attributes. If this assumption is wrong, then the following argument is >somewhat superfluous, and perhaps the issue of allowing the extension >characters in tags can be relegated to questions of convenience. > That assumption is partially incorrect. Non-name characters are allowed in attribute values, though not attribute names. Furthermore, in a valid document, attributes of types ID, IDREF, IDREFS, NMTOKEN, and NMTOKENS may only contain name characters. But this isn't true of most attributes. -- +-----------------------+------------------------+-------------------+ | Elliotte Rusty Harold | elharo@m... | 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/ | +----------------------------------+---------------------------------+
|

Cart



