[SOLVED] for-each problem
This is an open discussion with 2 replies, filed under XSLT.
Search
Your images are not being called from the context that your loop is in...
<img src="{$workspace}/{image/@path}/{image/filename}" />
Should fix it.
XSL is context based. As you are in a loop, then the current context is the current entry
node you are in. The paths you had specified would always call the first entry node in the set, as the context starts from the root.
Thanks a lot!
Problem solved :)
Create an account or sign in to comment.
Hi, I have a problem with for-each loop. There is 4 entries.
Everything is OK, but only one image is repeating (from first entry)... Any solution?
Thanks!