This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "position in source tree" vs. "context position"


"DuCharme, Robert" wrote:

> this template rule
> 
>   <xsl:template match="li">
>     <xsl:number format="1. "/>
>     <xsl:apply-templates/>
>   </xsl:template>
> 
> turns the same input into this:
> 
>   1. first item
>   2. second item
>   3. third item

That's because the default for the count attribute on xsl:number (which
determines what is counted) is "the pattern that matches any node with
the same node type as the current node and, if the current node has an
expanded-name, with the same expanded-name as the current node".

James



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]