[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Diagram of XPath axes

Subject: Re: [xsl] Diagram of XPath axes
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Fri, 25 May 2012 00:45:08 +0200

On 2012-05-25 00:11, Wendell Piez wrote:

A rare slip from Gerrit? who surely means

select="//*[. &lt;&lt; current()]"

Yes, of course. Thanks, Wendell, for the correction, and for 'rare'.

For the sake of completeness:


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" >
<xsl:output method="text" />
<xsl:template match="c">
<xsl:value-of select="preceding::*/name()" />
<xsl:value-of select="//*[. &lt;&lt; current()]/name()" />
<xsl:message>ancestor | preceding
<xsl:value-of select="(ancestor::* | preceding::*)/name()" />


      doc a b
ancestor | preceding
      doc a b

Current Thread