i've a condition where the section element should be having both a num attribute and level can be any apart from level 2. like below.
<section level="sect2" num="1.">
<title>Flowchart—HKIAC Mediation</title>
</section>
<section level="sect3">
<title>Flowchart—HKIAC Mediation</title>
</section>
<section level="sect2">
<title>Flowchart—HKIAC Mediation</title>
</section>
and when i use the below xslt it is counting only the first xml with number attribute and leaving second and third. but i want to count both first and third leaving second.
i've used the below statement
<xsl:number count='section[@num]'/>
but i want something similar to below
<xsl:number count='section[@num] and section[@level!='sect2']'/>
Thanks