on 08-30-2006 3:16 PM
Hi All,
I have hierarchy template in my program that runs other segments of program. The third line of code gets only 2 levels of MARMM segment. There are 3 MARMM segments with 2 different MVKEM (For Target Market for Ex. France and US). Since only 2 levels are selected it gives 2 levels for France and 2 for US. I don't know how the last() and postition() works. Can anyone help me to get all the 3 levels for each Target Market (2 TM. France and US in this case, so total 3+3 = 6 records).
<xsl:call-template name="hierarchy">
<xsl:with-param name="loopControl" select="1"/>
<xsl:with-param name="itemIndex2" select="last() - position() + 1"/>
<xsl:with-param name="sortedNodes" select="$sortedNodes"/>
<xsl:with-param name="unsortedNodes" select="$unsortedNodes"/>
</xsl:call-template>
Regards,
Hemal
Thanks for your reply.
Can you tell me why is the below line of code don't give any output for VKORG? Is the syntax wrong? I want to store valueS for VKORG in the array itemIndex7. There may be multiple VKORG in E1MVKEM.
<xsl:value-of select="substring(E1MARAM/E1MVKEM[$itemIndex7]/VKORG,0,2)" />
Regards,
Hemal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hemal,
of course i cant give you a solution coz i dont know eithter the whole style nor the source.
last() gives you the position of the last node in current loop or template.
position gives you the position of the current node in current loop (for-each) or template (match)
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.