[xsl] default namespace in match attribute of xsl:template

Subject: [xsl] default namespace in match attribute of xsl:template
From: Peter Paulus <paulus@xxxxxxxx>
Date: Tue, 04 Feb 2003 08:36:53 +0100
Hello XSL-list,

We have an XML that looks like this:

<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope'>
<reponse xmlns='someuri'>

the XSL looks like this:

<xsl:template match='/'>
<xsl:apply-templates select='Envelope'/>

<xsl:template match='soap:Envelope'>
<xsl:apply-templates select='Body'/>

<xsl:template match='soap:Body'>
<xsl:apply-templates select='response'/>

<xsl:template match='response'>

The response element falls in the default namespace 'someuri'. How do you
indicate this namespace in the match parameter of xsl:template. We tried
match='response', match=':response', match='namespace::/response',

By the way, we are using Xalan++ 1.4 as the processor. XML is parsed by
Xerces++ 2.1.

Is there a right way to do this?

With kind regards,
Peter Paulus

Neroc Publishing Solutions b.v.
De Run 1131
The Netherlands
tel: +31-40-2586666
fax: +31-40-2541893

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

Current Thread