Subject: Re: [xsl] monotonous nbsp coding From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Wed, 13 Nov 2002 23:02:09 +0100 |
<td> <xsl:value-of select="."/> <xsl:if test=". = ''"> </xsl:if> </td>
<td> <xsl:value-of select="concat(., ' ')"/> </td>
Some older browsers have a problem rendering tables with empty <td> tags in them. (You know which ones...) Is there a better way to code this in XSLT than the following:
<td> <xsl:choose> <xsl:when test="string-length() > 0"><xsl:value-of select="." /></xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose> </td>
This gets monotonous after a while. It would be nice if <xsl:value-of> could take an attribute which would provide a default value if the select produces an empty result!
Stuart Zakon
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] monotonous nbsp coding, Zakon, Stuart | Thread | Re: [xsl] monotonous nbsp coding, Vasu Chakkera |
Re: [xsl] MathML and XSL, Joerg Heinicke | Date | Re: [xsl] monotonous nbsp coding, Greg Faron |
Month |