[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSL Counters list order?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|