fn:unparsed-entity-public-id

Returns the public ID of an unparsed entity, given its name.

unparsed-entity-public-id($entity-name as xs:string) ➔ xs:anyURI

Arguments

 

$entity-name

xs:string

The name of the unparsed entity

Result

xs:anyURI

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XSLT 3.0 Specification

XSLT 4.0 Specification

Saxon availability

Available in XSLT 2.0 and later versions. Available in all Saxon editions. Available for all platforms.

Notes on the Saxon implementation

Available with all versions of SaxonJ and SaxonC. With SaxonCS, implemented since Saxon 13.0, but works only on documents that wrap a DOM XmlDocument tree.

The XmlDocument implementation used in SaxonCS does not follow the rule that when two entity declarations have the same name, only the first is retained; instead, it appears to retain neither.

See also:

fn:unparsed-entity-uri()

saxon:unparsed-entities()