xsl-list
[Top] [All Lists]

Re: Matching all elements in a namespace

2004-02-07 14:01:30
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



<Prev in Thread] Current Thread [Next in Thread>