Library Template Reference

Norman Walsh

$Id: lib.xsl,v 1.4 2000/10/19 20:56:08 ndw Exp $

Introduction

This is technical reference documentation for the DocBook XSL Stylesheets; it documents (some of) the parameters, templates, and other elements of the stylesheets.

This is not intended to be “user” documentation. It is provided for developers writing customization layers for the stylesheets, and for anyone who's interested in “how it works”.

Although I am trying to be thorough, this documentation is known to be incomplete. Don't forget to read the source, too :-)

Table of Contents

xpointer.idref

xpointer.idref

Name

xpointer.idref — Extract IDREF from an XPointer

Synopsis

<xsl:template name="xpointer.idref">
<xsl:param name="xpointer">http://...</xsl:param>
  ...
</xsl:template>

The xpointer.idref template returns the ID portion of an XPointer which is a pointer to an ID within the current document, or the empty string if it is not.

In other words, xpointer.idref returns “foo” when passed either #foo or #xpointer(id('foo')), otherwise it returns the empty string.