XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition (774 page)

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
7Mb size Format: txt, pdf, ePub

XTSE0500

An
xsl:template
element must have either a
match
attribute or a
name
attribute or both; if it has no
match
attribute, then
mode
and
priority
must be absent

This is stricter than XSLT 1.0, where the
mode
and
priority
were ignored if there was no
match
attribute.

XTSE0530

The
priority
attribute of
xsl:template
must be a valid
xs:decimal.

You can set
priority
to
2.6
or
-100
, but not to
1e6
or
3.1.5
.

XTSE0550

The
mode
attribute of
xsl:template
is empty, contains duplicates, contains an invalid name, or contains
#all
as well as other names

You can specify a list of valid modes, including
#default
. If the attribute is present, it must not be empty, and if you specify
#all
, then there must be no other mode-names present.

XTSE0580

Two parameters of a template or function have the same name

XTSE0620

An
xsl:variable
,
xsl:param
,
or
xsl:with-param
element with a
select
attribute is not empty

You can provide a value using the
select
attribute or in a contained sequence constructor, but not both.

XTSE0630

Stylesheet contains two global variables with the same name

You can have two variables with the same name provided that they have different import precedence. Consider changing
xsl:include
to
xsl:import
.

XTSE0650

The named template called by an
xsl:call-template
instruction has not been defined

The QName appearing in the
name
attribute of
xsl:call-template
must match the
name
attribute of some
xsl:template
declaration in the stylesheet.

XTSE0660

Stylesheet contains two named templates with the same name

You can have two templates with the same name provided that they have different import precedence. Consider changing
xsl:include
to
xsl:import
.

XTSE0670

Two
xsl:with-param
elements within the same instruction have the same name

You can't supply two values for the same parameter. This rule applies even if one is a tunnel parameter and the other is not.

XTSE0680

An
xsl:call-template
instruction supplies a non-tunnel parameter that is not declared in the template being called

This is a new rule in XSLT 2.0 (in 1.0, the extra parameter was simply ignored).

XTSE0690

An
xsl:call-template
instruction supplies no value for a parameter declared with
required=“yes”.

XTSE0710

An
[xsl:]use-attribute-sets
attribute is not a list of valid QNames, or contains a QName that doesn't match the name of any attribute set

XTSE0720

An attribute set directly or indirectly references itself via
use-attribute-sets.

For example, attribute set A has
use-attribute-sets=“B”
, and attribute set B has
use-attribute-sets=A
.

Other books

Elemental Hunger by Johnson, Elana
Midwife in the Family Way by Fiona McArthur
Lovers & Haters by Calvin Slater
Inside Out by John Ramsey Miller
A History of Korea by Professor Kyung Moon Hwang
Rage to Adore by Cara Lake