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

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
8.04Mb size Format: txt, pdf, ePub
Property
Value and Meaning
saxon:indent-spaces
An integer, determines the level of indentation when
indent=“yes”
.
saxon:character-representation
Indicates how non-ASCII characters should be represented. For
method=“xml”
, this only affects characters outside the chosen encoding, and the values are
hex
and
decimal
. For HTML, two values are allowed; for example,
entity;hex
, which indicates that non-ASCII characters within the encoding should use named entities if possible; those outside the encoding should use hex character references.

Extension Attributes

Extension attributes are attributes in the Saxon namespace that can be added to XSLT instructions. Processors other than Saxon will ignore these attributes. The table below gives examples.

Attribute
Value and Meaning
saxon:memo-function
When
saxon:memo-function=“yes”
is present on an

element, Saxon remembers the result of evaluating the function, and uses the saved result if the function is called again with the same arguments.
saxon:explain
When
saxon:explain=“yes”
is present on an

or

element, Saxon outputs an XML representation of the compiled code showing what optimizations it has applied. (The same output is available for the entire stylesheet using the
-explain
option on the command line.)
saxon:read-once
This option is used to signal to Saxon that a document read using the
document()
function will only be used once; this acts as a hint that streamed execution can be used, avoiding the need to build the tree representation of the document in memory.

Other books

Whom Dog Hath Joined by Neil S. Plakcy
Luke Jensen, Bounty Hunter by William W. Johnstone
Why We Left Islam by Susan Crimp
The Language of Dying by Sarah Pinborough
Friendships hurt by Julia Averbeck