All pastes #419889 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-01 18:30 UTC
rendered paste body
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="collection">
<xsl:sort select="attribute::last"/>
<collection>
<xsl:apply-templates/>
</collection>
</xsl:template>
 
<xsl:template match="title">
	<title><xsl:value-of select="."/></title>
</xsl:template>

<xsl:template match="name">
	<xsl:template match="first">
	<first><xsl:value-of select="."/></first>
	<xsl:template match="last">	
	<last><xsl:value-of select="."/></last>
</xsl:template>

<xsl:template match="ph">
	<telephone><xsl:value-of select="."/></telephone>
</xsl:template>

</xsl:stylesheet>