variable and attribut

hp_

Usenet Archive
Joined
Sep 13, 2004
Messages
2
Reaction score
0
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
 

Kenneth Stephen

Usenet Archive
Joined
Dec 29, 2003
Messages
36
Reaction score
0
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
 

KemperR

Usenet Archive
Joined
Sep 9, 2004
Messages
6
Reaction score
0
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
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top