|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: finding next element after
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








