Instruction constructs

Some of the instructions described above have a very specific internal structure, including references to elements not described above.

Apply Templates element

The Apply Templates element has the following content model:

<!ELEMENT xsl:apply-templates
                          (xsl:sort|xsl:with-param)*>

Note that the With Parameter element is discussed later (see Call template).

The Sort element is defined as follows:

<!ELEMENT xsl:sort EMPTY >

The attributes are as follows:

<!ATTLIST xsl:sort
           select       %expr;               "no"
           lang         %avt;                #IMPLIED
           data-type    %avt;                "text"
           order        %avt;                "ascending"
           case-order   %avt;                #IMPLIED >

With all entities replaced, the true model is as follows:

 <!ATTLIST xsl:sort select CDATA "no" lang CDATA #IMPLIED data-type CDATA "text" ...

Get XSL companion, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.