Re: [xsl] Namespace prefixes in Schemas

Subject: Re: [xsl] Namespace prefixes in Schemas
From: Abel Online <>
Date: Wed, 16 Aug 2006 13:13:56 +0200
Antsnio Mota wrote:

So "to match the namespace URI rather than the prefix" should be the
correct beahviour of any XPath processor,


or is that left to the
processor implementation?

No. It is an error if the processor matches only by prefix. But, the colon was a legal part of an XML name, before namespaces came around. Without the namespace declaration, the XML is still "well formed" if the node names contain prefixes and colons. Meaning, that if there's a namespace declaration, the XML must be considered as XML + Namespaces. If there's no namespace declaration, it can be considered as just XML.

Not that this is necessarily the cause for processors to act as if the prefix is part of the node name.

Neverthleless, i'm going to try to get some help on the Sarissa list too.

Thanks for your time.

Current Thread