|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Matching empty tags
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








