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
7.8Mb 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 Black Path by Asa Larsson
And Laughter Fell From the Sky by Jyotsna Sreenivasan
The School Bully by Fiona Wilde
The Perfect Kill by Robert B. Baer
With Wings I Soar by Norah Simone
Season Of Darkness by Maureen Jennings
The Uninnocent by Bradford Morrow
Flat Lake in Winter by Joseph T. Klempner
End of the Century by Chris Roberson
The Weight of Numbers by Simon Ings