[XML-SIG] default namespaces, XPath and XSLT question
Uche Ogbuji
uche.ogbuji@fourthought.com
Wed, 14 Nov 2001 07:33:33 -0700
> A quick question: do default namespaces get taken into account when
> processing xpaths in an xsl stylesheet?
No.
> example:
> <xsl:template xmlns="http://foobar.net" match='bogo[@xpath]'>
> <foo/>
> </xsl:template>
>
> This template should generate a <foo xmlns='http://foobar.net'/> element.
> Do I understand the spec correctly if I assume that it do so for
> this node:
> <bogo xpath='.'/>
> and not for this one :
> <fb:bogo xmlns:fb="http://foobar.net" xpath='//*'/>
This is correct.
--
Uche Ogbuji Principal Consultant
uche.ogbuji@fourthought.com +1 303 583 9900 x 101
Fourthought, Inc. http://Fourthought.com
4735 East Walnut St, Boulder, CO 80301-2537, USA
XML strategy, XML tools (http://4Suite.org), knowledge management