Sunday, April 25, 2010

update additional info

<?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="requestoremail"/>
<xsl:param name="requestorlocation"/>
<xsl:param name="array"/>
<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 align="left">
<div id="request_heading">
<xsl:value-of select="@name"/>
</div>
</td>
</tr>
<tr>
<td align="left">
<table border="0" cellpadding="0" cellspacing="0" class="service_contentTable">
<tr>
<td>a
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5px">
</td>
</tr>
<xsl:for-each select="//Field">
<tr>
<td class="labelHeading">
<asp:Label runat="server" text="{@label}"/>
</td>
<td style="width:5px">
</td>
<td>
<!--<xsl:choose>
<xsl:when test="@type = 'TextBox' and @IsActiveDirectory='false'" >
<asp:TextBox id="{@id}" runat="server" text=" " CssClass="inputbox"/>
</xsl:when>
<xsl:when test="@type = 'TextBox' and @IsActiveDirectory='true'" >
<asp:TextBox id="{@id}" runat="server" text="{$requestoremail}" CssClass="inputbox"/>
</xsl:when>
</xsl:choose>-->
<xsl:if test="@type = 'TextBox'">
<asp:TextBox id="{@id}" runat="server" text="{@value}" CssClass="inputbox"/>
</xsl:if>

<xsl:if test="@type = 'CheckBoxList'">
<asp:CheckBoxList id="{@id}" runat="server" RepeatDirection="Horizontal">
<xsl:for-each select="Listitems/Listitem">
<asp:ListItem value="{@value}" text="{@text}" Selected="{@selected}"></asp:ListItem>
</xsl:for-each>
</asp:CheckBoxList>
</xsl:if>

<xsl:if test="@type = 'DropDownList'">
<asp:DropDownList id="{@id}" runat="server">
<xsl:for-each select="Listitems/Listitem">
<asp:ListItem value="{@value}" text="{@text}" Selected="{@selected}"></asp:ListItem>
</xsl:for-each>
</asp:DropDownList>
</xsl:if>
<!--<xsl:for-each select="$array">
Suman
</xsl:for-each>-->


<xsl:if test="@type = 'ListBox'">
<asp:ListBox id="{@id}" runat="server" SelectionMode="Multiple">
<xsl:for-each select="Listitems/Listitem">
<asp:ListItem value="{@value}" text="{@text}" Selected="{@selected}"></asp:ListItem>
</xsl:for-each>
</asp:ListBox>
</xsl:if>

<xsl:if test="@type = 'RadioButtonList'">
<asp:RadioButtonList id="{@id}" runat="server" RepeatDirection="Horizontal">
<xsl:for-each select="Listitems/Listitem">
<asp:ListItem value="{@value}" text="{@text}" Selected="{@selected}"></asp:ListItem>
</xsl:for-each>
</asp:RadioButtonList>
</xsl:if>

<!--<xsl:if test="@required = 'True'">
<asp:RequiredFieldValidator ErrorMessage=" Required Field" runat="server" ControlToValidate="{@id}" />
--
<!--<asp:RequiredFieldValidator ID="RequiredFieldValidator" runat="server" ErrorMessage="please enter the value" ControlToValidate="{@id}" Display="dynamic">
</asp:RequiredFieldValidator>-->
<!--
</xsl:if>-->

</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>

No comments: