Subject: RE: [xsl] attribute of a single-tag node From: cknell@xxxxxxxxxx Date: Thu, 16 Nov 2006 10:12:11 -0500 |
You probably want to use the attribute value template: <img src="{$src}"> -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: Nico Van Cleemput <Nicolas.VanCleemput@xxxxxxxx> Sent: Thu, 16 Nov 2006 16:04:00 +0100 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] attribute of a single-tag node 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] RE : [xsl] attribute of a sin, Florent Georges | Thread | [xsl] Dynamic sort fx, Dhunta, Vikram \(GE, |
[xsl] attribute of a single-tag nod, Nico Van Cleemput | Date | [xsl] Dynamic sort fx, Dhunta, Vikram \(GE, |
Month |