Clone attributes as needed. Added Node.xpath, Node.match.
authorFrederic Jolliton <frederic@jolliton.com>
Tue, 13 Sep 2005 07:11:21 +0000 (07:11 +0000)
committerFrederic Jolliton <frederic@jolliton.com>
Tue, 13 Sep 2005 07:11:21 +0000 (07:11 +0000)
commit1d2c962f0a05935ad903bce1030a871697112273
tree65ae422a0d5125279fce8f0483ea7048aeeca7c4
parentbaba0add0ddfc3141ef1035d16e12df023ce8829
Clone attributes as needed. Added Node.xpath, Node.match.

 * Attributes are cloned when inserted in a tree if they're already part
   of another tree.

 * Added Node.xpath as canonical name to query a tree with a XPath
   expression (and with [] and / operator overloaded to call it.)

 * Added Node.match to test node against a XSLT pattern.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-42
nodes.py