[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
My follow on question is whether or not there is a way to compare an attribute value to its default value defined in the DTD?
At 10:02 PM 4/17/2002 +0200, Joerg Heinicke wrote:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] Ignoring default attributes during XSL transform
Subject: Re: [xsl] Ignoring default attributes during XSL transform From: Manny Parasirakis <mannyp@xxxxxxx> Date: Wed, 17 Apr 2002 16:51:08 -0400 |
My follow on question is whether or not there is a way to compare an attribute value to its default value defined in the DTD?
At 10:02 PM 4/17/2002 +0200, Joerg Heinicke wrote:
<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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Ignoring default attribut, Joerg Heinicke | Thread | Re: [xsl] Ignoring default attribut, Joerg Heinicke |
RE: [xsl] Getting rid of namespace , Francois Rautenbach | Date | Re: FW: [xsl] XML transformation us, David Carlisle |
Month |
Keywords