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
5.77Mb 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

The Crack In Space by Dick, Philip K.
Finding June by Shannen Crane Camp
Finding Ashlynn by Zoe Lynne
The Hill by Ray Rigby
Regeneration by Pat Barker
33 The Return of Bowie Bravo by Christine Rimmer
Chosen by Denise Grover Swank
Player's Ultimatum by Koko Brown
A Hint of Rapture by Miriam Minger