xsl-list
[Top] [All Lists]

[xsl] RE : [xsl] attribute of a single-tag node

2006-11-20 06:29:44

--- Nico Van Cleemput <Nicolas(_dot_)VanCleemput(_at_)UGent(_dot_)be> a écrit :

Hi,

sorry for my probably incorrect terminology, but when I say single- 
tag nodes I mean a node like <img src="..."> in HTML. If I want to  
create such a tag with specific attributes, how do I go about doing  
that? I guess I can't use <xsl:attribute> because that has to be  
defined inside the tag.

Is this the only possible way of doing it:

<img>
   <xsl:attribute name="src">
        <xsl:text><xsl:value-of select="$src"/></xsl:text>
   </xsl:attribute>
</img>

Is there anyway of doing this and not ending up with a non-existing
</ 
img>-tag?

Thanks,
Nico

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





        

        
                
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--