Alex_2 Posted July 22, 2016 Share Posted July 22, 2016 Is there a way to loop i.e. perform for-each on specific count/number rather than nodeset? Link to comment Share on other sites More sharing options...
Martin Honnen Posted July 22, 2016 Share Posted July 22, 2016 With XSLT 2.0 you can process any sequence so <xsl:for-each select="1 to 5">...</xsl:for-each> processes a sequence of five integers 1,2,3,4,5. Make sure you store the input document you want to process outside of the for-each in a variable if you want to access it inside of the for-each as the context item is the currently processed integer number. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now