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]

RE: optional attributes


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>
></xsl:template>

This works perfectly. Thanks for all your help.


 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]