Subject: Re: [xsl] Condition Based Count of Sections From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 13 Apr 2007 12:44:50 +0200 |
J. S. Rawat wrote:
<sect2 count="2" level="1.1.1"> <ti>SECT2: SECTION TITLE</ti> <p>Paragraph 1: PC DATA IS HERE</p> <p>Paragraph 2: PC DATA IS HERE</p> </sect2> ...
It is towards the direction but
1. <sect2> should not count because its parent <sect1> does not have any <p>
?? You could do something like: <xsl:if test="not(self::sect2 and parent::sect1/p)" > ...
around your xsl:attribute statements.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Condition Based Count of , Abel Braaksma | Thread | Re: [xsl] Condition Based Count of , J. S. Rawat |
Re: [xsl] Condition Based Count of , Abel Braaksma | Date | [xsl] Friday challenge: XSLT thats , Andrew Welch |
Month |