chadpath 0.3.3

XPath 1.0 / XSLT engine — a fork of xrust (Apache-2.0) with XPath positional-predicate correctness fixes and parser performance improvements. Used by chadselect.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
		version="3.0">
  <xsl:output indent="yes"/>

  <xsl:strip-space elements="*"/>

  <xsl:template match="child::Test">
    <xsl:copy>
      <xsl:apply-templates/>
      <xsl:copy-of select="child::level1/child::data"/>
    </xsl:copy>
  </xsl:template>
  <xsl:template match="child::*">
    <xsl:copy>
      <xsl:apply-templates/>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>