Re: [xsl] Matching all elements in a namespace

Subject: Re: [xsl] Matching all elements in a namespace
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Sat, 07 Feb 2004 22:01:30 +0100
Kjetil Kjernsmo wrote:
So, the obvious thing felt like something like...:
<xsl:template match="namespace-uri() = 'http://www.w3.org/TR/xhtml1/strict'">
<xsl:copy-of select="."/>
</xsl:template>


...and I've tried numerous variations over this theme over the past couple of weeks, but it doesn't "work".

You can only match on match pattern, not arbitrary XPath expressions. Try <xsl:template match=*["namespace-uri() = 'http://www.w3.org/TR/xhtml1/strict']">

J.Pietschmann

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread