Subject: Re: [xsl] Applying a Default Template From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 30 Nov 2010 15:09:09 +0000 |
It seems inefficient to have to put a<td> in every one of my individual templates. Is there any way I can apply a template that puts in the<td> tags for every child of<row> and then applies the individual templates for the types of children of<row>?
<xsl:template match="*" mode="td"> <td> <xsl:apply-templates select="."/> </td> </xsl:template>
<span class="money" onclick="ShowMeMoney()"> <xsl:value-of select="."/> </span>
<xsl:for-each select="*"> <td> <xsl:apply-templates select="."/> </td> </xsl:for-each>
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Applying a Default Template, Neil Beddoe | Thread | Re: [xsl] Applying a Default Templa, Michael Kay |
[xsl] Applying a Default Template, Neil Beddoe | Date | [xsl] linefeed in a variable data t, David |
Month |