This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Ignoring default attributes during XSL transform


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]