tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/3954-formatting-a-dd-block-with-current-page-assignedCascade CMS: Discussion 2018-10-18T20:37:04Ztag:help-archives.hannonhill.com,2010-02-09:Comment/313613902014-01-29T18:53:49Z2014-01-29T18:53:49ZFormatting a DD block with current page assigned<div><p>Hi David,</p>
<p>This typically occurs when there is no
<code><xsl:template></code> to catch the root element, which
then applies the desired templates accordingly. When you have a
moment, try adding the following directly above
<code><xsl:template match="facultyInfo"></code> and let me
know how it works out:</p>
<pre>
<code><xsl:template match="system-index-block">
<xsl:apply-templates select="//facultyInfo"/>
</xsl:template></code>
</pre>
<p>Note: I think you could also be more precise with the
apply-templates XPath if you would like:
<code>calling-page/system-page/system-data-structure/chooseFacultyInfo/content/system-data-structure/facultyInfo</code>.</p>
<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/313613902014-01-29T19:01:57Z2014-02-26T17:51:19ZFormatting a DD block with current page assigned<div><p>Yes, that worked. Thanks so much. I had tried everything except
two forward slashes. in the select statement. I'm rather new to
XSL.</p></div>david.moseleytag:help-archives.hannonhill.com,2010-02-09:Comment/313613902014-01-29T19:16:58Z2014-01-29T19:16:58ZFormatting a DD block with current page assigned<div><p>Not a problem at all, David. Tracking things like that down can
definitely be tedious, I recall running into the same situation
quite a bit when I started out.</p>
<p>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.</p>
<p>Have a great day!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/313613902014-01-29T21:12:00Z2014-02-26T17:51:19ZFormatting a DD block with current page assigned<div><p>Thanks, Ryan.</p>
<p>David Moseley l Multimedia Technologist<br>
Faculty Center for Teaching with Technology l Center for IT
Excellence</p>
<p><a href=
"mailto:David.Moseley@tamuc.edu">David.Moseley@tamuc.edu</a></p>
<p>P.O. Box 3011 Commerce, Tx 75429-3011<br>
Tel. 903.468.8792 l Fax 903.886.5991 l <a href=
"http://www.tamuc.edu">www.tamuc.edu</a> <a href=
"http://www.tamuc.edu/">http://www.tamuc.edu/</a></p>
<p>Texas A&M University-Commerce</p></div>david.moseley