XML technologies / XSLT / Reference: XSLT 1.0 & 2.0 elements / Attribute value templates in instructions

(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 6.)

In XSLT 2.0, a total of eleven instructions allow the attributes listed in the right-hand table column to use so-called attribute value templates (AVTs):

XSLT instruction

AVTs allowed for attributes

xsl:analyze-string

regex, flags

xsl:attribute

name, namespace, separator

xsl:element

name, namespace

xsl:for-each-group

collation

xsl:message

terminate

xsl:namespace

name

xsl:number

format, lang, letter-value, ordinal, grouping-separator, grouping-size

xsl:processing-instruction

name

xsl:result-document

format, href, validation, method, byte-order-mark, cdata-section-elements, doctype-public, doctype-system, encoding, escape-uri-attributes, include-content-type, indent, media-type, normalization-form, omit-xml-declaration, standalone, undeclare-prefixes, output-version

xsl:sort

lang, data-type, order, case-order, collation, stable

xsl:value-of

separator

Table: attribute value templates allowed in XSLT 2.0 instructions.

This table is larger than its XSLT 1.0 counterpart mainly because of newly added instructions and new attributes on existing instructions. In individual cases, however, AVTs are allowed for attributes for which they were prohibited in XSLT 1.0, such as the terminate attribute of xsl:message. The new collation attribute, added to some instructions, can always be interpreted as an AVT, except on xsl:key.

   

  

back to top