PHP Classes

File: templates/rpc/rpc.tpl

Recommend this page to a friend!
  Classes of Michael Collado   Phritz MVC framework   templates/rpc/rpc.tpl   Download  
File: templates/rpc/rpc.tpl
Role: Auxiliary data
Content type: text/plain
Description: Template file for XML-RPC output
Class: Phritz MVC framework
Browser device independent MVC framework
Author: By
Last change:
Date: 16 years ago
Size: 928 bytes


Class file image Download
<?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl=""> <xsl:output method="xml" encoding="iso-8859-1"/> <xsl:template match="/"> <methodResponse> <xsl:choose> <xsl:when test="/ROOT/FAULT = 1"> <fault> <value> <struct> <member> <name>faultcode</name> <value><int><xsl:value-of select="/ROOT/ERROR/CODE" /></int></value> </member> <member> <name>faultstring</name> <value><string><xsl:value-of select="/ROOT/ERROR/MESSAGE" /></string></value> </member> </struct> </value> </fault> </xsl:when> <xsl:otherwise> <params> <xsl:for-each select="/ROOT/RESPONSE/*"> <param> <xsl:copy-of select="." /> </param> </xsl:for-each> </params> </xsl:otherwise> </xsl:choose> </methodResponse> </xsl:template> </xsl:stylesheet>