This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Ignoring default attributes during XSL transform
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 17 Apr 2002 22:02:44 +0200
- Subject: Re: [xsl] Ignoring default attributes during XSL transform
- References: <5.1.0.14.2.20020417153524.02b64568@pop.atg.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
<xsl:apply-templates select="* | @*[. != '']">
Regards,
Joerg
Manny Parasirakis wrote:
> 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