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: multilanguage support easily or including xml data dynamically




> What does this <xsl:apply-templates...> really do? I read some 
> doc about it, but I still can't grasp the concept of it. Isn't it's 
> purpose to select things, such as <xsl:for-each>?

If you haven't understood xsl:apply-templates then you haven't understood
XSLT: it's rather fundamental.

It selects the set of nodes identified by the XPath expression in the select
attribute, and for each of these nodes, it looks for the "best match"
xsl:template rule to apply to that node. The "best match" is a template rule
whose match pattern matches the node, and if there are several, the one that
has the highest precedence/priority.

If there is no select attribute, it selects the children of the current
node.

Mike Kay


 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]