[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

create a xsl rule

Subject: create a xsl rule
From: Lionel Crine <crine@xxxxxxxxxxxx>
Date: Thu, 20 Mar 2003 13:35:01 +0100
xsl rule
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.