Subject: XSL Counters list order? From: Tyler Baker <tyler@xxxxxxxxxxx> Date: Sat, 02 Jan 1999 23:15:44 -0500 |
In the latest XSL spec: "Counter values are inserted using xsl:counter and xsl:counters elements. The name of the counter is specified with the name attribute. xsl:counter first constructs a list of length one containing the value of the named counter from the nearest ancestor in the result tree that has a counter with the specified name; xsl:counters first constructs a list containing, for each ancestor in the result tree that has a counter with the specified name, the value of named counter from that ancestor. xsl:counter and xsl:counters then convert the list of numbers into a string using the attributes specified in Section 2.7.10.3: Number to String Conversion Attributes; when used with xsl:counter and xsl:counters the value of each of these attributes is interpreted as an attribute value template." Now what to do about xsl:counter is pretty clear. Just format the number of the first ancestor in the result tree. However, the order that the list of ancestors for xsl:counters is not clear to me. Should the order be from first ancestor found to last ancestor found or the other way around. My assumption is that the list should be first ancestor found, second ancestor found, etc. This is likely just something that was accidentally overlooked when writing the spec so if Jim could clarify this (since he is the horse with the mouth on this issue) or someone else who knows what to do here then that would be great... Thanx, Tyler XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [basic question] Getting the ne, James Clark | Thread | Re: XSL Counters list order?, James Clark |
Re: [basic question] Nevermind... g, Andrew Bunner | Date | [no subject], Flow Simulation |
Month |