operator
true
if the current entity has the specified properties.
Replacing is
with isnt
reverses the result. entity is (entity category | entity category set)
entity is
tests whether the active entity of the currently-active parse has the specified properties.
A single property can be provided, or many properties can be combined, separated by |
or &
.
Replacing is
with isnt
will reverse these results.
The allowable properties are
#capacity
, #charset
, #document
, #dtd
, #schema
, and #syntax
,
default-entity
,
general
and parameter
,
internal
and external
,
cdata-entity
, ndata-entity
, sdata-entity
, and subdoc-entity
, and
public
, system
, and in-library
.
The properties can be combined by joining them with either |
or &
to yield an expression testing several properties at once.
For example, to test that an entity is an external entity with a public identifier, use
do when entity is (external & public) ; ...
Similarly, to test that an entity is either a CDATA entity or an SDATA entity, use
do when entity is (cdata-entity | sdata-entity) ; ...