This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: optional attributes
- To: "xsl list" <XSL-List at mulberrytech dot com>
- Subject: RE: optional attributes
- From: "Lisa van Gelder" <lisa at wirestation dot co dot uk>
- Date: Thu, 22 Jun 2000 14:57:42 +0100
- Reply-To: xsl-list at mulberrytech dot com
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