|
Subject: Re: [xsl] Check if next tag is ... From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 15 Dec 2006 10:50:20 +0100 |
You can use something like this (but you didn't say if you are using XSLT 1.0 or 2.0):
I intent to stick to 1.0.
Cheers, I will give this a go.<xsl:apply-templates select=" P, if ( T ) then T else $empty-t, S"/>
<xsl:template match="/A">
<table>
<xsl:apply-templates select="C" />
</table>
</xsl:template>
<xsl:template match="C[not(T)]">
<tr>
<xsl:apply-templates select="P" />
<td>*</td>
<xsl:apply-templates select="S" />
</tr>
</xsl:template>
<xsl:template match="C">
<tr>
<xsl:apply-templates select="*" />
</tr>
</xsl:template>
<xsl:template match="P|S|T">
<td><xsl:value-of select="."/></td>
</xsl:template>
</xsl:stylesheet>Abel Braaksma Nuntia B.V.
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Check if next tag is ..., Anne Kootstra | Thread | Re: [xsl] Check if next tag is ..., Abel Braaksma |
| Re: [xsl] Check if next tag is ..., Anne Kootstra | Date | Re: [xsl] Check if next tag is ..., Abel Braaksma |
| Month |