Name

[T] print-node-line-number — Display file name and line number of a node

Synopsis

<xsl:template name="print-node-line-number">
  <xsl:param name="node" select="." /></xsl:template>

This template displays the file name and the line number in that file that contains the given node. In addition the name of the given node is shown in parentheses (usually the element name). The output is suitable for diagnostics to the user.

(“filename” means the “filename” part of the URI of the containing entity.)

Parameters
node

The node to get to print the information for. Default is the context node.