f:xpointer-idref
f:xpointer-idref — Parses an XPointer for a same-document ID reference.
Function:
{http://docbook.org/ns/docbook/functions}xpointer-idref#1
Defined in:
modules/xlink.xsl
Used in:
modules/xlink.xsl
Synopsis
f:xpointer-idref( | $xpointer ) as xs:string? |
Description
In DocBook, there are generally two ways to refer to other
elements in the current document by ID: using the linkend
(or linkends
) attribute or using the xlink:href
attribute.
The f:xpointer-idref()
function returns the
ID portion of an XPointer that is a reference to another ID in the
current document.
In other words:
f:xpointer-idref('#foo')
isfoo
,f:xpointer-idref('id(foo)')
isfoo
,- and
f:xpointer-idref('http://example.org/#foo')
is the empty sequence.