Subject: xsl:number: multi pattern to remote parent
From: "Victor Zamouline" <desafinado@xxxxxxxx>
Date: Thu, 22 Oct 1998 23:29:53 +0200
|
And, also, one more thing whose supposed behavior is not clear to me:
<root>
<a>
<b>
<c>
</c>
</b>
</a>
</root>
===
...
<xsl:template match="a/b/c">
<xsl:number level="multi" count="a|c"/>
</xsl:template>
...
In Jeremy's implementation, it will count <c>'s relative to the latest <b>,
not to the latest <a>.
If this corresponds to the specifications, then is there any method to count
<c>'s relative to <a>'s (i.e. counting how many <c>'s have happened since
the latest <a>, whatever might be the number of occasional <b>'s in
between?)
Thank you,
Merci, Jeremy,
Victor.
desafinado@xxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|