XSL stylesheet 1<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' > |
| <xsl:template match="table"> |
| <TABLE BORDER='1'> |
| <xsl:for-each select="item"> |
| <xsl:apply-templates select="."/> |
| </xsl:for-each> |
| </TABLE> |
| </xsl:template> |
| <xsl:template match="item"> |
| <xsl:variable name="tmp"> <xsl:value-of select="."/></xsl:variable> |
| <xsl:if test="boolean(normalize-space($tmp))"> |
| <TR><TD><xsl:value-of select="$tmp"/></TD></TR> |
| </xsl:if> |
| </xsl:template> |
| </xsl:stylesheet> |