namespaces in subtree filtering

Martin Bjorklund <> Wed, 21 March 2007 10:03 UTC

Return-path: <>
Received: from [] ( by with esmtp (Exim 4.43) id 1HTxfF-0000Uv-0a for; Wed, 21 Mar 2007 06:03:29 -0400
Received: from ([]) by with esmtp (Exim 4.43) id 1HTxeX-0005VO-S4 for; Wed, 21 Mar 2007 06:03:28 -0400
Received: from majordom by with local (Exim 4.63 (FreeBSD)) (envelope-from <>) id 1HTxWM-000G4y-9V for; Wed, 21 Mar 2007 09:54:18 +0000
X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.7
Received: from [] ( by with esmtp (Exim 4.63 (FreeBSD)) (envelope-from <>) id 1HTxWJ-000G1g-7M for; Wed, 21 Mar 2007 09:54:16 +0000
Received: from localhost (unknown []) by (Postfix) with ESMTP id 3AEC51B80C3 for <>; Wed, 21 Mar 2007 10:54:07 +0100 (CET)
Date: Wed, 21 Mar 2007 10:54:01 +0100
Message-Id: <>
Subject: namespaces in subtree filtering
From: Martin Bjorklund <>
X-Mailer: Mew version 5.1.51 on Emacs 21.4 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Precedence: bulk
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 6cca30437e2d04f45110f2ff8dc1b1d5

Andy noted at the meeting that subtree filtering can't be used to
retreive elements from mulitple namespaces.

The text from rfc4741, section 6.2.1 says:

   If namespaces are used, then the filter output will only include
   elements from the specified namespace.  A namespace is considered to
   match (for filter purposes) if the content of the 'xmlns' attributes
   are the same in the filter and the underlying data model.

This is somewhat difficult to interpret.  What exactly does "the
'xmlns' attributes" mean?  Note the plural.

Suppose we have this in the database:

   <if:interfaces xmlns:if="">
       <ds0:circuitIdentifier xmlns:ds0="">foo</ds0:circuitIdentifier>
Accordning to the example in 6.2.1, the following filter:

       <if:interfaces xmlns:if=""/>

would return

   <if:interfaces xmlns:if="">

Suppose instead the filter is

   <get xmlns:if="">

Note that no xmlns attributes are present in the filter itself.

Would we get the ds0 elements as well?

What about this filter:

       <if:interfaces xmlns:if=""

Here we have two xmlns attributes.  Would we get the ds0 elements in
this case?

IMO, it's unfortunate that the xmlns attribute is overloaded with this
filter semantics.  I don't really see the value in this namespace
selection mechanism at all.  Are there any use cases where it makes


to unsubscribe send a message to with
the word 'unsubscribe' in a single line as the message text body.
archive: <>