XSLT unparsed-entity-uri() function
Definition and usage
The unparsed-entity-uri() function returns the URI of the unparsed entity. The entity name must match the parameter passed. If the entity is defined, the URI string of the unparsed entity is returned. Otherwise, an empty string is returned.
If the DTD contains the following declaration:
<!ENTITY pic SYSTEM "http://www.codew3c.com/picture.jpg" NDATA JPEG>
This expression:
unparsed-entity-uri('pic')
Will return the URI of the file "picture.jpg".
Syntax
string unparsed-entity-uri(string)
Parameter
Parameter | Description |
---|---|
string | Required. Specify the name of the unparsed entity. The entity must be defined in the same document as the context node. |