xsl-list
[Top] [All Lists]

Re: [xsl] template which handles identical XML-structures but can insert unique label texts

2006-10-26 12:50:50


something like , assuming the parent of the fragment you posted is
Manure,

<xsl:template match="Manure>
<table>
<xsl:apply-templates/>
</table>
</xsl:template>

<xsl:template match="Manure/*">
<tr>
<td>
<xsl:value-of select="name()"/>
</td>
<xsl:apply-templates/>
</tr>
</xsl:template>

<xsl:template match="Manure/*/*">
<td>
<xsl:apply-templates/>
</td>
</xsl:template>

David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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