Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Iteration issue in XSL, values fetching from DCR
Migrateduser
I have a component in which xsl is reading values from replicant of a dcr. I am stuck as xsl don't provide for loop.
Here I am checking the condition based on current position of replicant values. But the value of position is not changing as it doesnt iterate based on iteration of count of replicant.
For testing purpose I have hard coded the values of pos, then condition satisfies and output seems to come fine.
Does anyone have idea how to get the current position and compare everytime with the iteration of count.
I want to iterate the position and based on position and compare the value of position by iterating the value of count.
If we consider the xml(dcr)
//if pos is 1
Then output should comes like:
file(test2).stop()
file(test3).stop()
file(test4).stop()
file(test5).stop()
file(test6).stop()
file(test7).stop()
and if pos is 2
file(test1).stop()
file(test3).stop()
file(test4).stop()
file(test5).stop()
file(test6).stop()
file(test7).stop()
I am attaching for.xsl, test.xml for your reference. Please remove .txt from the file
Find more posts tagged with
Comments
There are no comments yet