Subject: RE: [xsl] Values in attributes From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx> Date: Mon, 29 Dec 2003 14:34:36 +0000 |
Regards, and happy new year, Ragulf Pickaxe :)
From: "Jaime A Stuardo Bahamondes" <jstuardo@xxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: [xsl] Values in attributes Date: Mon, 29 Dec 2003 09:04:27 -0400
Why to use a variable? it's shorter to use {city/name} inside the HTML attribute, or maybe I've missing something.
Jaime
> <xsl:template match="/city"> > <xsl:variable name="city_name" select="name" /> > > <a > href="cities.php?city={$city_name}"><xsl:value-of > select="$city_name" /></a> > > </xsl:template> > > Hope it solves the problem. > > Regards, > Mukul
> > For example, with this piece of xml code: > > > > <city> > > <name>Sevilla</name> > > </city> > > > > generate this outputs in HTML: > > > > <a href="cities.php?city=Sevilla">Sevilla</a> > > > > Thanks in advance > > > > -- > > Francisco de Asis Franco Eslava
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Values in attributes, Jaime A Stuardo Baha | Thread | Re: [xsl] Values in attributes, Vasu Chakkera |
RE: [xsl] Values in attributes, Jaime A Stuardo Baha | Date | [xsl] template match, Mark Williams |
Month |