6.8.5 Cases where XSLTC Does Not Report Errors

In some cases, for example, when the content of an element or attribute is invalid or when the function argument is invalid, XSLTC may not report errors. The following table lists and describes the cases where XSLTC does not report errors.

Table 6-17 Notes on XSLTC (cases where XSLTC does not report errors)

No.Notes
1A stylesheet element other than the xsl:sort and xsl:with-param elements is specified as a child element of the xsl:apply-templates element.
2An empty character string is specified for the select attribute of the xsl:apply-templates element.
3Element content other than text is specified for the xsl:comment element.
4A value that consists of two or more characters is specified for the following attributes of the xsl:decimal-format element:
  • decimal-separator
  • grouping-separator
  • minus-sign
  • percent
  • per-mille
  • zero-digit
  • pattern-separator
5An element name qualified with a prefix is specified for the name attribute of the xsl:element or xsl:attribute element, and an empty character string is specified for the namespace attribute.
6xsl:sort is specified as a child element for an element other than the first element of the xsl:for-each element.
7Element content is specified for the xsl:import element.
8The xsl:import element is not the first element of the top-level element, or the xsl:import or xsl:include element is not the top-level element.
9An XPath expression that includes the key function is specified for the use attribute of the xsl:key element.
10An xsl:message element is specified as a child element of the xsl:stylesheet element.
11A value other than yes or no is specified for the terminate attribute of the xsl:message element.
12There is no namespace declaration corresponding to the prefix specified for the stylesheet-prefix or result-prefix attribute of the xsl:namespace-alias element.
13The stylesheet-prefix or result-prefix attribute of the xsl:namespace-alias element is not specified.
14Element content is specified for the xsl:namespace-alias element.
15A character string that does not match the Number rule for the grouping-size attribute of the xsl:number element is specified.
16An invalid value is specified for the lang and level attributes of the xsl:number element.
17An invalid value is specified for the letter-value attribute of the xsl:number element.
18A variable reference whose value is an empty character string is specified for the grouping-separator attribute of the xsl:number element.
19An invalid value is specified for the version attribute of the xsl:output element.
20An invalid value is specified for the indent attribute of the xsl:output element.
21An invalid value is specified for the standalone attribute of the xsl:output element.
22An invalid value is specified for the omit-xml-declaration attribute of the xsl:output element.
23An empty character string is specified for the select attribute of the xsl:param element.
24An invalid value is specified for the data-type, order, or case-order attribute of the xsl:sort element.
25The data-type, order, or case-order attribute of the xsl:sort element is a variable reference whose value is an empty character string.
26A value specified in uppercase for the data-type, order, or case-order attribute of the xsl:sort element is handled as specified in lowercase.
27Element content is specified for the xsl:strip-space, xsl:preserve-space, xsl:apply-imports element, and so on which cannot have any element content according to the specifications.
28An invalid value is specified for the version attribute of the xsl:stylesheet element.
29The namespace URI corresponding to the prefix specified for the exclude-result-prefixes attribute of the xsl:stylesheet element is not valid for the elements that have this attribute.
30The xsl:stylesheet element is specified in the xsl:stylesheet element.
31An empty character string is specified in the match attribute and in the mode attribute of the xsl:template element.
32Neither the name attribute nor the match attribute is specified for the xsl:template element.
33An empty character string is specified for the mode attribute of the xsl:template or xsl:apply-templates element.
34An empty character string is specified for the priority attribute of the xsl:template element.
35A literal result element appears before the first xsl:template element.
36The xsl:template element has a mode attribute but does not have a match attribute.
37Multiple xsl:with-param elements have the name attribute with the same value.
38A value other than yes or no is specified for the disable-output-escaping attribute of the xsl:text element.
39A value other than yes or no is specified for the disable-output-escaping attribute of the xsl:value-of element.
40An empty character string is specified for the select attribute of the xsl:variable element.
41Both the select attribute and the text content exist in the xsl:variable or xsl:param element.
42An empty character string is specified for the select attribute of the xsl:with-param element.
43The number of arguments of a following function call is invalid:
  • number function
  • boolean function
  • lang function
  • concat function
44The second argument of the document function is an empty character string.
45An empty character string is specified for the third argument of the format-number function.
46If a key name that does not exist is specified for the first argument of the key function.
47If the number of arguments of the unparsed-entity-uri function is invalid.