Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] getElementById (not again.... I know, but..)

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <cowan AT ccil.org>
  • To: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] getElementById (not again.... I know, but..)
  • Date: Sun, 8 Oct 2006 01:38:15 -0400

Elliotte Harold scripsit:

> That's the rub. It doesn't. There are quite a few different ways to
> define IDs, some used in the same documents. For instance is an id
> attribute in an HTML document without a DTD an ID or not?

No, it isn't. An attribute is of type ID if and only if one or more of
the following is true:

a) it is declared in the document's DTD as being of type ID, whether
or not XML validation is being done;

b) it is declared in an XML Schema as being of type xs:ID, and XML
Schema validation is being done;

c) the attribute is named "xml:id".

--
John Cowan cowan AT ccil.org http://ccil.org/~cowan
It's the old, old story. Droid meets droid. Droid becomes chameleon.
Droid loses chameleon, chameleon becomes blob, droid gets blob back
again. It's a classic tale. --Kryten, Red Dwarf




Archive powered by MHonArc 2.6.24.

Top of Page