[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: illegal xhtml attributes?

Subject: RE: illegal xhtml attributes?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 2 Apr 2001 14:51:58 +0100
xhtml attributes
>                 <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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.