xsl-list
[Top] [All Lists]

create a xsl rule

2003-03-20 05:35:01
Hello, I have a little trouble.

Here is the xml file :

<etm><graphic></graphic></etm>

<etm><para>blabla</para><etm> (a)
<etm><para>blabla</para><etm> (a)
<etm><para>blabla</para><etm> (a)

<etm><table></table></etm>

<etm><para>blabla</para><etm> (b)
<etm><para>blabla</para><etm> (b)
<etm><para>blabla</para><etm> (b)



In my XSL :


1/ I have a rule that match graphic and get the para (a) below using a generate-id.
<xsl:template match="etm[graphic]">
... ->there I use the generate-id
</xsl:template>

2/ My "para" rule is :
<xsl:template match="para">
</xsl:template>
obviously, this rule is to not display the para a second time. I can 't change it. Other rule would be influenced.

QUESTION : Where I'm stuck is that the para beside the table are not displayed, so I want to write a new "para" rule that match :
the first element above the para (b) that is not a graphic (so the table here).
Is it possible ?


Lionel


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>