saxon:entity-ref
The saxon:entity-ref
element is useful to generate entities such as
in HTML output. To do this, write: <saxon:entity-ref
name="nbsp"/>
Category: instruction
Content: none
Permitted parent elements:
any XSLT element whose content model is
sequence-constructor; any literal result element
Attributes
|
|
The name of the entity |
Details
Note that the preferred way to produce a non-breaking space character in the output is
simply to write  
or  
in the stylesheet. By
default, with HTML output, this will be serialized as
, though the
way it is serialized doesn't actually matter as far as the HTML browser is concerned.
The element saxon:entity-ref
is permitted only in contexts where
disable-output-escaping
would be permitted: that is, when writing to a
serialized output destination.