This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Removing tags automatically efter xsl transformation!
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Removing tags automatically efter xsl transformation!
- From: "Oleg Tkachenko" <olegt at multiconn dot com>
- Date: Tue, 7 Aug 2001 15:31:04 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello Uwe !
> I want to remove tags like <tag/> (without any child and string-length of
> zero) from my output. I'm transforming xml-files to different formats. In
> some I don't want to have "empty" tags.
>
> Has someone an idea or a solution?
What about the folowing:
<xsl:template match="*[not(node())]"/>
+ you need to care about whitespace only containing nodes, like
<tag>
</tag>
---
Oleg Tkachenko
Multiconn International
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list