xsl not looping through all variables

jjohn352's Avatar

jjohn352

08 Oct, 2014 01:38 PM

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.

  1. 1 Posted by Ryan Griffith on 08 Oct, 2014 03:13 PM

    Ryan Griffith's Avatar

    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. 2 Posted by jjohn352 on 15 Oct, 2014 03:20 PM

    jjohn352's Avatar

    Thanks Ryan .... it works now. Much appreciated. I thought I needed variables in order for it to loop.

  3. 3 Posted by Ryan Griffith on 15 Oct, 2014 03:23 PM

    Ryan Griffith's Avatar

    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!

  4. Ryan Griffith closed this discussion on 15 Oct, 2014 03:23 PM.

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

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM