Subject: RE: [xsl] illegal xhtml attributes? From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Mon, 2 Apr 2001 14:51:58 +0100 |
> <xsl:attribute name="width"> > <xsl:value-of select="$imagewidth"/> > </xsl:attribute> > <xsl:attribute name="height"> > <xsl:value-of select="$imageheight"/> > </xsl:attribute> > <xsl:attribute name="alt"> > <xsl:value-of select="$imagealt"/> > </xsl:attribute> > <out:attribute name="src"> > <out:value-of select="$image"/> > </out:attribute> > <xsl:if test="$reset='true'"> > <xsl:attribute name="alt"> > <xsl:value-of select="'Reset'"/> > </xsl:attribute> > </xsl:if> > It might be that your XSLT processor (have you told us which one you're using?) is objecting to outputting two attributes with the same name ("alt" appears twice). It shouldn't - this is quite OK in XSLT, the second takes precedence. You seem to like typing; what's wrong with <img width="{$imagewidth}" height="{$imageheight}" ...> Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] illegal xhtml attributes?, David Carlisle | Thread | RE: [xsl] Latest XSLTMark benchmark, Kevin Jones |
Re: [xsl] illegal xhtml attributes?, David Carlisle | Date | Re: [xsl] XML Update Client-Side to, Robert Koberg |
Month |