<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:asp="remove">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="session_name"/>
<xsl:template match="ServiceName">
<table border="0" cellpadding="0" cellspacing="0" width="700px" >
<tr>
<td>
<div id="content_area">
<div class="ControlHeading">
<table border="0" cellpadding="0" cellspacing="0" width="700px">
<tr>
<td>
<div id="request_heading" style="text-align:left;">
<!--<xsl:value-of select="@name"/>-->
</div>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" class="service_contentTable" style="text-align:left;">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5px">
</td>
</tr>
<xsl:for-each select="//Field">
<tr>
<td class="labelHeading">
<xsl:choose>
<xsl:when test="contains(@label, '\n')">
<xsl:value-of select="substring-before(@label, '\n')"/><br/><xsl:value-of select="substring-after(@label, '\n')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@label"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td style="width:5px">
</td>
<td >
<xsl:if test="@type = 'TextBox'">
<xsl:value-of select="@value"/>
</xsl:if>
<xsl:if test="@type = 'CheckBoxList'">
<xsl:for-each select="Listitems/Listitem">
<xsl:if test="@selected = 'True'">
<xsl:value-of select="@value"/>
<xsl:value-of select="','"/>
</xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="@type = 'DropDownList'">
<xsl:for-each select="Listitems/Listitem">
<xsl:if test="@selected = 'True'">
<xsl:value-of select="@value"/>
<xsl:value-of select="','"/>
</xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="@type = 'ListBox'">
<xsl:for-each select="Listitems/Listitem">
<xsl:if test="@selected = 'True'">
<xsl:value-of select="@value"/>
<xsl:value-of select="','"/>
</xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="@type = 'RadioButtonList'">
<xsl:for-each select="Listitems/Listitem">
<xsl:if test="@selected = 'True'">
<xsl:value-of select="@value"/>
<xsl:value-of select="','"/>
</xsl:if>
</xsl:for-each>
</xsl:if>
</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment