Re: [xsl] The identity transform and attributes

Subject: Re: [xsl] The identity transform and attributes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 21 Jan 2008 22:39:46 GMT
all elements are
children of either another element, or the root node (correct?) it
makes sense that child:: is the default.

that is true in real documents (and in xslt 1) but xslt2 introduces
parentless element nodes, but to make these not quite so weird the
semantics of patterns are hanged so that in xslt2 match="foo" isn't
quite defaulting to child::foo but a (not directly available)
so that it matches foo even if it is the root of the tree.
ie if the tree startes with an element not /
as can be made by xsl:variable as="element()"


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

Current Thread