<xsl:stylesheet
	version="1.0" 
	xmlns:es="http://www.novell.com/nxsl/ecmascript"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	extension-element-prefixes="es"
	exclude-result-prefixes="es"
	>

	<!-- This is for testing the stylesheet outside of DirXML so things are pretty to look at -->
<xsl:strip-space elements="*"/>
<xsl:preserve-space elements="association add-association remove-association value component password check-password"/>
<xsl:output indent="yes" method="xml"/>

<!-- define ecmascript functions -->
<es:script>
function uppercase(input)
{
	return String(input).toUpperCase();
}
</es:script>

<!-- identity transformation template -->
<xsl:template match="node()|@*">
   <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
   </xsl:copy>
</xsl:template>

<!--  template that splits the splitme attribute values into multiple values -->
<xsl:template match="*[@attr-name='uppercaseme']//value/text()">
	<xsl:value-of select="es:uppercase(.)"/>
</xsl:template>

</xsl:stylesheet>
