<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="iso-8859-1" omit-xml-declaration="yes"/>
<xsl:template match="/">
	<xsl:choose>
		<xsl:when test="/ROOT/FAULT = 1">
			<faultcode><xsl:value-of select="/ROOT/ERROR/CODE" /></faultcode>
			<faultstring><xsl:value-of select="/ROOT/ERROR/MESSAGE" /></faultstring>
		</xsl:when>
		<xsl:otherwise>
			<xsl:element name="{/ROOT/OUTPUT_MESSAGE}" namespace="{$PHRITZ_URL}">
			
			<xsl:for-each select="/ROOT/RESPONSE/*">
				<xsl:copy-of select="." />
			</xsl:for-each>
			
			</xsl:element>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>
</xsl:stylesheet> 
  |