Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Scope of namespaces

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Michael Kay <mike AT saxonica.com>
  • Cc: 'xom-interest' <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Scope of namespaces
  • Date: Mon, 06 Feb 2006 05:29:42 -0500

Michael Kay wrote:

(There are other weird things as well, for example LDML [1]: this actually
*requires* the namespace declaration to appear on a particular element (one
which doesn't use the declared namespace): putting the declaration on an
ancestor element, or on a descendant which does use the prefix, isn't good
enough. For this use case, the "declared namespaces" model is probably
better.)

XHTML is similar. It requires the namespace declaration to appear on the html element, and requires it not to use a prefix; though at least in this case the html element is in the XHTML namespace.

In fact, anything that uses a DTD such as LDML or XHTML is likely to have these sorts of syntactic restrictions on the placement of namespace declarations.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page