variable and attribut

H

hp_

hello,

i need some help, i'm writing an xsl script and want to write a
variable in an attribute. is there any possibility to do so?


my code looks like this
<xsl:variable name="format" select="@format"/>
<zaehler format="$format">

the result is:
<zaehler format="$format">

obviously the variable isn't recognized...

but what can i do?

thank you very much
 
K

Kenneth Stephen

hp_ said:
hello,

i need some help, i'm writing an xsl script and want to write a
variable in an attribute. is there any possibility to do so?


my code looks like this
<xsl:variable name="format" select="@format"/>
<zaehler format="$format">

the result is:
<zaehler format="$format">
Hi,

Try <zaehler format="{$format}">

Regards,
Kenneth
 
K

KemperR

Hi hp_,

I think you should code it like this:
<xsl:variable name="format" select="@format"/>
<zaehler format="{$format}">


Hope that helps
Rolf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top