xsl not looping through all variables
Setting up a format but it is not looping through all the variables. It will only loop through one (the $title variable). Can't seem to figure this out. Please help. I have attached the format and data definition. Any help would greatly be appreciated.
- data_defintion.txt 675 Bytes
- format.txt 3.38 KB
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ryan Griffith on 08 Oct, 2014 03:13 PM
Hi,
It looks like you may need to tweak your apply-templates XPath a bit to properly loop over all of the accordion nodes. Also, I'm not seeing any looping for the course nodes.
Curious, though, is there a reason you are using all of those variables as opposed to simply outputting the value? I've attached a modified Format that I believe should do the trick.
Please let me know if you have any questions.
Thanks!
2 Posted by jjohn352 on 15 Oct, 2014 03:20 PM
Thanks Ryan .... it works now. Much appreciated. I thought I needed variables in order for it to loop.
3 Posted by Ryan Griffith on 15 Oct, 2014 03:23 PM
Not a problem at all. I am glad to hear your Format is now working as expected.
I'm going to go ahead and close this discussion, please feel free to comment or reply to re-open if you have any additional questions.
Have a great day!
Ryan Griffith closed this discussion on 15 Oct, 2014 03:23 PM.