[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Ignoring default attributes during XSL transform
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 17 Apr 2002 22:02:44 +0200
<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


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member