Can't see anything wrong with it.
Are you sure that the match="graphic" template is being fired? - there's
nothing in it that would leave any evidence one way or the other.
Michael Kay
http:
-----Original Message-----
From: rfd ewrew [mailto:xmlquestions101(_at_)hotmail(_dot_)com]
Sent: 17 October 2006 21:41
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] following-sibling is not working
Hi:
My XML looks like this:
<ele1>
<graphic>URL for graphic</graphic>
<table>The complete table </table>
</ele1>
In XSLT, to check if the next sibling is a table , under
template match for graphic I used this code;
<xsl:template match="graphic">
<xsl:if test="following-sibling::table"> <xsl:call-template
name="test"/> </xsl:if> </xsl:template>
<xsl:template name="test">
<fo:block>Test</fo:block>
</xsl:template>
But somehow, it is notcoming to the template test at all. Is
there anything wrong with this code?
_________________________________________________________________
Get today's hot entertainment gossip
http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--