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) child-or-self::foo 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()" David ________________________________________________________________________ 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] The identity transform an, Wendell Piez | Thread | Re: [xsl] The identity transform an, David Carlisle |
Re: [xsl] unparsed-text and analyze, G. Ken Holman | Date | Re: [xsl] The identity transform an, David Carlisle |
Month |