Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nano 2 posts 22 karma points
    Nov 11, 2011 @ 18:02
    Nano
    0

    Insert a value to a property

    Hi... I’m unable to place a value in a property and generate the following output : 

    <order id="Value">

                    :

      <order>

    My xsl looks as follow: 

       <order id = "ID??">  <!--<xsl:value-of select="Message/../../ID"/>-->

    :

       </order>    

     What is the syntax for placing a value here, I tried everything. What am I doing wrong?

     

     

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Nov 11, 2011 @ 18:18
    Jan Skovgaard
    0

    Hi Nano

    You can do it like this

    <order id="{Message/../../ID}">
    <!-- rest of your XML content goes here-->
    </order>

    Or like this

    <order>
    <xsl:attribute name="id">
    <xsl:value-of select="Message/../../ID" />
    </xsl:attribute>
    <!-- rest of your XML content goes here-->
    </order>

    Hope this helps.

    /Jan

  • Nano 2 posts 22 karma points
    Nov 11, 2011 @ 18:23
    Nano
    0

    Thank you Jan!!

    That’s exactly what I needed and it works.

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Nov 11, 2011 @ 18:25
    Jan Skovgaard
    0

    Hi Nano

    Glad I was able to help you out :-) Don't hesitate if there is other stuff you have doubt about. We're a very friendly bunch in here who just loves to help each other out.

    /Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies