[Home] [By Thread] [By Date] [Recent Entries]
Thank you Michael. I think the problem is a little more complicated to me
and I will try to explain it.
The XML looks like this: <ele1> <step1><table></table></step1> <graphic>URL for graphic</graphic> <table>This is actually the CALS table model </table> </ele1> Now, I wanted to template match all elements except graphic and so under ele1 i said <xsl:apply-templates select=*(not[self::graphic])/> which worked just fine. The next thing I wanted to do was to check if the following sibling of graphic was table, and if it was table, I wanted to display the table just below the graphic. The "table" element can appear anywhere in the XML, but only if it appears after <graphic> I want it to display below graphic. This <table> element follows the CALS table model. So under <graphic> template I said <xsl:if test="following-sibling::table"><xsl:apply-templates select="table" mode="test"/></xsl:if> But since the CALS table has other elements like tgroup, row, entry which have all templates, when I say <xsl:template match "table" mode="test"> this does not force <table> below <graphic>. How do I match <table> element which is in CALS format? I even tried adding mode to all other elements under <table> like this: <xsl:template match="tgroup" mode="test"> Can anyone help me out here? Thank you. From: "Michael Kay" <mike@xxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: following-sibling is not working Date: Tue, 17 Oct 2006 22:20:19 +0100 _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/
|

Cart



