[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

default namespace in match attribute of xsl:template

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

We have an XML that looks like this:

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

the XSL looks like this:

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

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

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

<xsl:template match='response'>
<xsl:message>response</xsl:message>
</xsl:template>

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',
match='#default: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
5503 LB VELDHOVEN
The Netherlands
tel: +31-40-2586666
fax: +31-40-2541893






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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.