tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/797-xslt-for-each-helpCascade CMS: Discussion 2013-08-19T21:30:03Ztag:help-archives.hannonhill.com,2010-02-09:Comment/266169542013-04-29T19:15:18Z2013-04-29T19:15:18ZXSLT For Each Help<div><p>Hi Akbar,</p>
<p>Looking over your Data Definition, it looks like only the
<code>staff_name</code> field is repeatable, so either the loop in
your XSLT will need to be tweaked or the <code>service_staff</code>
group will need to be multiple and not the <code>staff_name</code>
field.</p>
<p>If <code>service_staff</code> is made into a multiple group,
your Format should work just fine. With the way your Data
Definition is set up currently, you would need to use something
like:</p>
<pre>
<code><xsl:for-each select="//service_staff/staff_name">
<div><xsl:value-of select="staff_name"/></div>
</xsl:for-each>
<div><xsl:value-of select="//service_staff/area"/></div></code>
</pre>
<p>Please let me know if you have any questions.</p>
<p>Thanks</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/266169542013-04-29T19:38:57Z2013-04-29T19:38:57ZXSLT For Each Help<div><p>Ryan,</p>
<p>Thanks for your response. I just got it figured out. I made a
repeatable group. And also found some XSLT examples on W3C
site.</p>
<p>Sorry, I was so engrossed in getting it done that I forgot to
update you.</p>
<p>You may close this ticket.</p>
<p>Cheers.</p>
<p>Thanks,</p>
<p>Akbar</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/266169542013-04-29T19:40:50Z2013-04-29T19:40:50ZXSLT For Each Help<div><p>Not a problem at all, Akbar. Glad to hear you were able to get
the Format working.</p>
<p>Have a great day!</p></div>Ryan Griffith