[Home] [By Thread] [By Date] [Recent Entries]
Lawrence:
How about something like -- <xsl:template match="*">
<xsl:if test="normalize-space(.) or node()[not(self::text())]">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:if>
</xsl:template><xsl:template match="comment()|processing-instruction()"> <!-- so that these nodes don't get stripped (delete if you don't want em) --> <xsl:copy-of select="."/> </xsl:template> ? (Strictly speaking, this does go node by node.) Good luck, Wendell At 07:56 PM 3/29/01, you wrote: My requirement is to remove tag names when I convert from one xml to another xml, if there is no data.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



