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

Re: Applying a Default Template

Subject: Re: Applying a Default Template
From: Ruud Grosmann <r.grosmann@xxxxxx>
Date: Tue, 30 Nov 2010 16:47:43 +0100
Re:  Applying a Default Template
On 11/30/10 15:59, Neil Beddoe wrote:
HI,

I'm transforming some data into XHTML and I was wondering if there's a way to apply a template that adds a default format before applying another template that applies more specific format.

Hi Neil, you can use xsl:next-match if you don't want to use modes

<xsl:template match="row/*" priority='1'>
<!-- because of priority, this one takes precedence over the specific money template -->
<td><xsl:next-match/></td>
</xsl:template>


<xsl:template match="money">
<span class="money" onclick="ShowMeMoney()">
<xsl:value-of select="."/>
</span>
</xsl:template>

regards, Ruud

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.