[Home] [By Thread] [By Date] [Recent Entries]
Hi Nate,
At 01:18 PM 10/2/2002, you wrote: I got it, but want to make sure that I am not doing anything too funky here, as this is my first real foray into using axises. ... Thoughts? Is there an easier/better way to accomplish this? How about: <xsl:when test="parent::Link">
<xsl:for-each select="../../following-sibling::Caption">
<!-- this might better be
../../following-sibling::*[1][self::Caption]
if you want to constrain it to the immediately following sibling;
in any case if there's no Caption nothing happens, like your test
-->
<Caption align="bottom">
<xsl:value-of select="."/>
<!-- but you might rather apply templates here -->
</Caption>
</xsl:for-each>
</xsl:when>Don't hesitate to post with questions. Cheers, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



