> starts with:
> > The xsl:apply-templates element causes navigation from the current
> > element, ...
> The current node can be of other node types than element,
> can't it? Though not general items.
Yes, it can be any kind of node.
This section of the Saxon documentation is intended to serve two purposes:
(a) as a quick reference / reminder of the instruction details, and (b) as a
place to put any Saxon-specific information about the implementation choices
made. It's not intended as a comprehensive language spec.
> The reason I spotted this was that I was looking for wiggle
> room on using apply-templates on things other than nodes.
> For example, with namespaces suitable for java.io.File objects:
> <xsl:apply-templates select="file:listFiles(.)"/>
> <xsl:template match="class:java.io.File()
> I realise that's totally bogus, but it'd be fun if it wasn't,
> wouldn't it?
It's possible to model filestore as an XML document in which the files and
directories are nodes, but you would have to go about this a different way.