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
<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">
    <result>
      <xsl:apply-templates/>
    </result>
  </xsl:template>
  <xsl:template match="child::data">
    <xsl:choose>
      <xsl:when test="attribute::role eq 'test'">This is correct</xsl:when>
      <xsl:when test="attribute::role eq 'test'">This is not correct</xsl:when>
      <xsl:otherwise>This is something else</xsl:otherwise>
    </xsl:choose>
  </xsl:template>
</xsl:stylesheet>