variable and attribut

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hp_

    #1

    variable and attribut

    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

    #2
    Re: variable and attribut

    hp_ wrote:[color=blue]
    > 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 ">
    >[/color]
    Hi,

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

    Regards,
    Kenneth

    Comment

    • KemperR

      #3
      Re: variable and attribut

      Hi hp_,

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


      Hope that helps
      Rolf

      gf_public@gmx.n et (hp_) wrote in message news:<cc7f428a. 0409130547.5297 60f5@posting.go ogle.com>...[color=blue]
      > 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[/color]

      Comment

      • hp_

        #4
        Re: variable and attribut

        thank you!

        it works

        Comment

        Working...