[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Diagram of XPath axes

Subject: Re: Diagram of XPath axes
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Fri, 25 May 2012 00:45:08 +0200
Re:  Diagram of XPath axes
On 2012-05-25 00:11, Wendell Piez wrote:
Hi,

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:

<doc>
  <a/>
  <b>
    <c/>
  </b>
</doc>

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


b

preceding
      a
&lt;&lt;
      doc a b
ancestor | preceding
      doc a b

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.