Login   Register  
PHP Classes
elePHPant
Icontem

File: templates/soap/soap_content.tpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michael Collado  >  Phritz MVC framework  >  templates/soap/soap_content.tpl  >  Download  
File: templates/soap/soap_content.tpl
Role: Auxiliary data
Content type: text/plain
Description: Template file for SOAP output
Class: Phritz MVC framework
Browser device independent MVC framework
Author: By
Last change:
Date: 2006-09-21 09:28
Size: 734 bytes
 

Contents

Class file image Download
<?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>