RE: optional attributes

Subject: RE: optional attributes
From: "Lisa van Gelder" <lisa@xxxxxxxxxxxxxxxxx>
Date: Thu, 22 Jun 2000 14:57:42 +0100
Sorry - my last message seems to have been duplicated for some reason.

>Otherwise I think you'll have to process each attribute separately.

><xsl:template match="image[@type='html']">
>  <img>
>    <xsl:for-each select="@border|@alt|@align (etc)">
>      <xsl:if test=". != ''">
>        <xsl:copy />
>      </xsl:if>
>    </xsl:for-each>
>  </img>

This works perfectly. Thanks for all your help.

 XSL-List info and archive:

Current Thread