Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a list of nodes, each of the nodes I want to give a class with the position of the node.
To get the position I am using: <xsl:value-of select="position()"/>
How do I insert this value within my class, which is <li class="navigatie">
My target is to generate a list like:
<li class="navigatie1"> ....<li class="navigatie2"> ....<li class="navigatie3"> ....
How to achieve this?
Greetings, Patrick
Hi Patrick,
You can use the following syntax to output the position() inline...
<li class="navigatie{position()}">
Cheers, Lee.
Thanks!
is working on a reply...
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.
Continue discussion
xslt within class
I have a list of nodes, each of the nodes I want to give a class with the position of the node.
To get the position I am using: <xsl:value-of select="position()"/>
How do I insert this value within my class, which is <li class="navigatie">
My target is to generate a list like:
<li class="navigatie1"> ....
<li class="navigatie2"> ....
<li class="navigatie3"> ....
How to achieve this?
Greetings, Patrick
Hi Patrick,
You can use the following syntax to output the position() inline...
Cheers, Lee.
Thanks!
is working on a reply...
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.