<?xml version="1.0" encoding="utf-8"?>
<!-- This stylesheet was automatically generated by atts.xsl. -->

<axsl:stylesheet xmlns:axsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atts="http://www.nist.gov/atts" version="1.0">
  
  <!-- Template rule for element 'e' -->
  <axsl:template match="e">
    <axsl:copy>
      
      <!-- If attribute 'a1' does not exist,
           create it and assign the default value. -->
      <axsl:if test="not(@*[name()='a1'])">
        <axsl:attribute name="a1">
          <axsl:value-of select="'hello'"/>
        </axsl:attribute>
      </axsl:if>
    
      <!-- If attribute 'a2' does not exist,
           create it and assign the default value. -->
      <axsl:if test="not(@*[name()='a2'])">
        <axsl:attribute name="a2">
          <axsl:value-of select="'world'"/>
        </axsl:attribute>
      </axsl:if>
    
      <axsl:apply-templates select="*|@*|comment()|processing-instruction()|text()"/>
    </axsl:copy>
  </axsl:template>

  <!-- This default template rule performs the identity 
       transformation. -->
  <axsl:template match="*|@*|comment()|processing-instruction()|text()">
    <axsl:copy>
      <axsl:apply-templates select="*|@*|comment()|processing-instruction()|text()"/>
    </axsl:copy>
  </axsl:template>

</axsl:stylesheet>
