wrote:
> However, I don't know how to access the value of an attribute where
> the element has a namespace associated with it
In XPath 1.0, the normal solution is to use a prefix in the path -- then
use a separate (and unfortunately implementation-specific!) mechanism to
tell the Xpath interpreter what namespace is associated with that path.
(If the XPath is within an XSLT stylesheet, the mechanism is simply to
make sure this prefix is defined at that point in the stylesheet. If
you're just using standalone XPath, check the specs for your XPath engine.)
If you need a portable namespace-aware XPath, there is a kluge-around
that involves matching on * and then using a predicate to check both the
localname and the namespace URI. Ugly, but sometimes unavoidable.
I don't do PHP, so I can't advise you on what the structure-like syntax
would be to access a namespaced node. There probably is one; Read The
Fine Manual... Of course the standard DOM API, which is what most
languages use for this purpose, handles namespaces with no problem.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry