Retrieving more information

Beside the possibility to browse the DOM tree and list some parts of it (as described in Navigation), XSH2 provides commands to obtain other information related to open documents as well as the XSH2 interpreter itself. These commands are listed bellow.

Related topics

apropos

search the documentation

canonical

serialize nodes as to canonical XML

count

calculate a expression and enumerate node-lists

doc-info

displays various information about a document

get

calculate a given expression and return the result.

documents

display a list of open documents

help

on-line documentation

lineno

print line-numbers corresponding to matching nodes

ls

list a given part of a document as XML

defs

list all user-defined subroutines

dtd

show document's DTD

locate

show a given node location (as a canonical XPath)

namespaces

List namespaces available in a context of a given nodes

settings

list current settings using XSH2 syntax

print

print stuff on standard or standard error output

enc

show document's original character encoding

pwd

show current context node location (as a canonical XPath)

validate

validate a document against a DTD, RelaxNG, or XSD schemas

variables

list global variables

version

show version information