Previous | Next | Indexes
adultinternetusers > Tutorials > XSLT 2.0 Tutorial > Templates - basic usage (10/12) >

Template priorities

It may happen that for a single element in the source document there are several matching templates in the XSLT stylesheet. Attribute priority on the xsl:template element can be explicitly used to distinguish which one should be used based on numeric value of the attribute.


            <xsl:output  method="xml"

            <xsl:template  match="/">
                  <xsl:apply-templates  select="aaa"/>

            <xsl:template  match="aaa"
                        <xsl:apply-templates  select="*"/>

            <xsl:template  match="*"
                        <xsl:value-of  select="."/>

            <xsl:template  match="bbb"
                        <xsl:value-of  select="."/>

            <xsl:template  match="bbb[2]"
                        <xsl:value-of  select="."/>




Previous chapter: - - -
Next chapter: Sequences
Previous page: Selection of all child elements or all attributes of an element
Next page: Implicit priorities

Kevin Carr in Stanton

Natural Skin Care and European Soaps
Kevin Carr
City of Stanton

You can also get Organic Skin Care products from Bliss Bath Body and you must check out their Natural Body Lotions and bath soaps

Now if you are looking for the best deals on surf clothing from Quiksilver and Roxy then you have to check these amazing deals here:

Hey, check out this Organic Skin Care European Soaps along with Natural Lavender Body Lotion and shea butter

and we can get surf t shirts surfing shirt and And you must check out this website swim suit swimming suit and swim trunks