OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: How to ??

[ Lists Home | Date Index | Thread Index ]
  • From: David Megginson <david@megginson.com>
  • To: keshlam@us.ibm.com
  • Date: Wed, 17 Mar 1999 06:59:36 -0500 (EST)

keshlam@us.ibm.com writes:

 > In the DOM world, default attribute values should show up
 > automatically as attributes of the elements they apply to. The
 > Attr.isSpecified() method can be used to distinguish between a
 > default and an explicitly entered attribute. Note that even if an
 > explicit value is the same as the default, it is considered
 > Specified. Note too that unless you use a validating parser, the
 > whole concept of default attributes is moot.

Would that it were so simple -- in fact, while the XML REC requires
validating parsers from reading default attribute values, it does not
forbid non-validating parsers to use them.  In fact, both AElfred and
Expat (both of which are non validating) do recognise and use default
attribute values.


All the best,


David

-- 
David Megginson                 david@megginson.com
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS