[Home] [By Thread] [By Date] [Recent Entries]

Subject: How to get cotext of foreach caller
From: PiGalKOM <pigalkom@xxxxxxxxxxxxxx>
Date: Sat, 09 Dec 2006 21:19:02 +0100
Hello,

 I have small problem:
Here is part of XML:
<parent>
     <list>
          <item>1</item>
          <item>1</item>
          <item>1</item>
          <item>1</item>
     </list>
     <child para="123">
          qwerty
    </child>
</parent>
<parent>
....
</parent>
....
And here is part of <xsl:transform version="1.0"...>


<xsl:template match="child"> <xsl:for-each select="/parent/list/item"> <xsl:value of select="?????????????/@para"/> </xsl:for-each> </form> </tr> </xsl:template>

The problem is how to get value of parameter @para of <child> node (point of loop call) from for-each loop (where context is /parent/list/item )


Sorry for my "English"



Pozdrawiam,


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member