Skip to content

XSLT unparsed-entity-uri() Function

How to retrieve the URI of an unparsed entity in XSLT using the unparsed-entity-uri() function, including syntax and parameter requirements.

XSLT unparsed-entity-uri() Function

The unparsed-entity-uri function returns the URI of an unparsed entity. The name of the entity must match the passed argument. If there is no such entity an empty string is returned.

If the DTD contains the following declaration <!ENTITY pic SYSTEM "http://www.example.com/picture.jpg" NDATA JPEG> the following expression unparsed-entity-uri('pic') will return the URI for the file "picture.jpg".

Syntax

string unparsed-entity-uri(string)

Input Parameters

Parameter Required/Optional Description
string Required Specifies the name of an unparsed entity
Navigation