This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Ignoring default attributes during XSL transform
- From: Manny Parasirakis <mannyp at atg dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 17 Apr 2002 15:36:17 -0400
- Subject: [xsl] Ignoring default attributes during XSL transform
- Reply-to: xsl-list at lists dot mulberrytech dot com
I am trying to figure out how I can ignore outputting attributes whose
values are not set (=""). I am fairly new at this but cannot figure it out.
I need to do this for all XML tags. Here is my XSL:
<xsl:template match="*|@*">
<xsl:copy>
<xsl:apply-templates select="*|@*"/>
</xsl:copy>
</xsl:template>
I've tried a bunch of things but cannot figure this out.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list