Subject: Re: How to match on namespace prefix
From: James Clark <jjc@xxxxxxxxxx>
Date: Tue, 05 Jan 1999 07:16:59 +0700
|
You can't yet. 2.6.1 has:
Issue (pattern-namespace-wildcards): Should patterns of the form foo:*
or *:foo be allowed? If so, should * match any element or any element
without a namespace URI?
Francois Belanger wrote:
>
> I could not find how to match nodes (elements or attributes) which are
> part of a particular namespace in the draft.
>
> For example, I'm trying to ignore all nodes from the input tree that are
> from the 'nsp' namespace using:
>
> <xsl:template match="*[namespace() = 'nsp']">
> </xsl:template>
>
> or in a XQL-like format:
>
> <xsl:template match="nsp:*">
> </xsl:template>
>
> XT returns "unexpected token" on both.
>
> Francois Belanger
> Sitepak, Bringing Internet Business into Focus
> http://www.sitepak.com
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|