| Subject: Re: [xsl] Check if next tag is ... From: "Anne Kootstra" <anne@xxxxxxxxx> Date: Fri, 15 Dec 2006 10:10:16 +0100 | 
You can use something like this (but you didn't say if you are using XSLT 1.0 or 2.0):
<xsl:template match="C"> <xsl:variable name="empty-t" as="element()"> <T>*</T> </xsl:variable> <table-line> <xsl:apply-templates select=" P, if ( T ) then T else $empty-t, S"/> </table-line> </xsl:template>
<xsl:template match="P|T|S"> <table-cell> <xsl:value-of select="."/> </table-cell> </xsl:template>
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Check if next tag is ..., Florent Georges | Thread | Re: [xsl] Check if next tag is ..., Abel Braaksma | 
| Re: [xsl] Check if next tag is ..., Florent Georges | Date | Re: [xsl] Check if next tag is ..., Abel Braaksma | 
| Month |