Subject: Matching empty tags From: "Araquel, Ed E." <Araquel.Ed@xxxxxxxx> Date: Tue, 31 Aug 1999 10:11:22 -0500 |
A small newbie question here: How do I match an empty tag such as <TD/> so that I can do a transformation on it. I would like it to be in the following template form but it doesn't seem to work: <xsl:template match="TD"> <xsl:choose> <xsl:when test=".=''"> <TD><xsl:text> </xsl:text></TD> </xsl:when> <xsl:otherwise> <xsl:copy> <xsl:apply-templates select="@*|*|text()|comment()"/> </xsl:copy> </xsl:otherwise> </xsl:choose> </xsl:template> What I'm trying to do is convert any <TD/> tags into <TD>space character</TD> Is this possible? -- Ed Araquel Mayo Foundation 200 1st St. SW - Siebens 7 Rochester, Minnesota 55905 (507) 538-1023 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Linking acronym to a glossary e, G. Ken Holman | Thread | Re: Matching empty tags, David Carlisle |
Re: Linking acronym to a glossary e, G. Ken Holman | Date | Re: Matching empty tags, David Carlisle |
Month |