Sunday, April 25, 2010

additonal email data

<?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>

additional info xslt

<?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="requestorpassword"/>
<xsl:param name="array"/>
<xsl:param name="strBreak"/>

<xsl:param name="strCurrentDate"/>

<xsl:template match="ITRAC/ServiceName">
<table border="0" cellpadding="0" cellspacing="0" width="710px" >
<tr>
<td>
<div id="content_area_Popup">
<div class="ControlHeading">
<table border="0" cellpadding="0" cellspacing="0" width="710px">
<tr>
<td>
<div id="ModalPopuprequest_heading">
<xsl:value-of select="@name"/>
</div>
</td>
</tr>
<tr>
<td>
<div id="ModalPopuprequest_Directive">
Please provide the detail request information below:
</div>
</td>
</tr>
<tr>
<td>
<div id="ServicePopupInner" >
<table border="0" cellpadding="0" cellspacing="0" class="service_contentTable" >
<tr>
<td>
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td height="5px">
</td>
</tr>
<xsl:for-each select="//Field">
<tr>
<xsl:if test="@id!='footername'">
<xsl:if test="@type = 'LabelHeadcol1'">
<td colspan="3">
<asp:Label runat="server" text="{@headtext1}" CssClass="labelHeading" />
</td>
</xsl:if>
<xsl:if test="@type = 'LabelHeadcol1'">
<td colspan="3">
<asp:Label runat="server" text="{@headtext2}" CssClass="labelHeading" />
</td>
</xsl:if>
<xsl:if test="@type = 'LabelHeadcol2'">
<td style="width:10px"></td>
<td colspan="3">
<asp:Label runat="server" text="{@headtext1}" CssClass="labelHeading" />
</td>
</xsl:if>
</xsl:if>
</tr>
<tr>
<xsl:if test="@id!='footername'">
<td style ="width:10px; padding:3px 3px 3px 3px;" >

<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='false' and @checkboxType='Checkbox'">
<asp:CheckBox id="{@checkboxid}" runat="server" />
</xsl:if>
</td>
<td>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='false' and @checkboxType='Checkboxindent1'">
<asp:CheckBox id="{@checkboxid}" runat="server" />
</xsl:if>
</td>
<td class="labelText" valign="middle" style ="padding-left:5px">
<xsl:variable name="strNew"></xsl:variable>
<xsl:choose>
<xsl:when test="contains(@label, '\n')">
<xsl:value-of select="substring-before(@label, '\n')"/>
<br/>
<p class="SubTextInPopUp"><xsl:value-of select="substring-after(@label, '\n')"/></p>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@label"/>
</xsl:otherwise>
</xsl:choose>
<asp:Label runat="server" text="{$strNew}"/>
</td>
<td style="width:5px">
</td>
<td valign="top" style ="padding:3px 3px 3px 3px;" >
<xsl:if test="@type = 'Label' and @SecondColumn='true'">
<asp:Label id ="{@id}" runat="server" text="{@label}" Font-Bold="true" />
</xsl:if>
<xsl:if test="@type = 'TextArea'">
<asp:TextBox id="{@id}" runat="server" text="" CssClass="inputboxpopup" height="100px" TextMode="MultiLine" />
</xsl:if>
<xsl:if test="@type = 'Date'">
<asp:TextBox id="{@id}" runat="server" CssClass="date-pick" />
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='false'">
<asp:TextBox id="{@id}" runat="server" text="" CssClass="inputboxpopup"/>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestoremail'">
<asp:TextBox id="{@id}" runat="server" text="{$requestoremail}" CssClass="inputboxpopup"/>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestorlocation'">
<asp:TextBox id="{@id}" runat="server" text="{$requestorlocation}" CssClass="inputboxpopup"/>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestorregion'">
<asp:TextBox id="{@id}" runat="server" text=" " CssClass="inputboxpopup"/>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestoroffice'">
<asp:TextBox id="{@id}" runat="server" text=" " CssClass="inputboxpopup"/>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestordivision'">
<asp:TextBox id="{@id}" runat="server" text=" " CssClass="inputboxpopup"/>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestorpassword'">
<asp:TextBox id="{@id}" runat="server" text="{$requestorpassword}" CssClass="inputboxpopup" readonly="false" />
</xsl:if>
<xsl:if test="@type = 'TextBoxText' and @IsActiveDirectory='true'">
<asp:TextBox id="{@id}" runat="server" Text="{@text}" CssClass="inputboxpopup" />
</xsl:if>
<xsl:if test="@type = 'CheckBoxList'">
<asp:CheckBoxList id="{@id}" runat="server" RepeatDirection="Vertical" RepeatLayout="Table" RepeatColumns="{@RepeatColumns}">
<xsl:for-each select="Listitems/Listitem">
<asp:ListItem value="{@value}" text="{@text}" Selected="{@selected}" CellSpacing="10px" style="padding:0 35px 8px 1px; vertical-align:top; margin: 0; float:left;"></asp:ListItem>
</xsl:for-each>
</asp:CheckBoxList>
</xsl:if>
<xsl:if test="@type = 'DropDownList' and @IsActiveDirectory='false'">
<asp:DropDownList id="{@id}" runat="server" style="width:209px;">
<xsl:for-each select="Listitems/Listitem">
<asp:ListItem value="{@value}" text="{@text}" Selected="{@selected}" ></asp:ListItem>
</xsl:for-each>
</asp:DropDownList>
</xsl:if>
<xsl:if test="@type = 'ListBox'">
<asp:ListBox id="{@id}" runat="server" SelectionMode="Multiple" style="width:209px;">
<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="Vertical" RepeatLayout="Table" RepeatColumns="{@RepeatColumns}">
<xsl:for-each select="Listitems/Listitem">
<asp:ListItem value="{@value}" text="{@text}" Selected="{@selected}" style="padding:0 35px 8px 1px; vertical-align:top; margin: 0; float:left;" ></asp:ListItem>
</xsl:for-each>
</asp:RadioButtonList>
</xsl:if>

<div style="padding-left:20px;">
<xsl:if test="@type = 'RadioButtonListIndent2'">
<asp:RadioButtonList id="{@id}" runat="server" RepeatDirection="Vertical" RepeatLayout="Table" RepeatColumns="{@RepeatColumns}">
<xsl:for-each select="Listitems/Listitem">
<asp:ListItem value="{@value}" text="{@text}" Selected="{@selected}" style="padding:0 35px 8px 1px; vertical-align:top; margin: 0; float:left;" ></asp:ListItem>
</xsl:for-each>
</asp:RadioButtonList>
</xsl:if>
</div>
</td>
</xsl:if>
<xsl:if test="@type = 'label' and @id='footername'">
<td class="labelHeading" colspan="6" align="left" style="padding-left:60px;">
<asp:Label runat="server" text="{@label}"/>
</td>
</xsl:if>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</xsl:template>
<xsl:template name="break">
<xsl:param name="text" select="."/>
<xsl:choose>
<xsl:when test="contains($text, ' ')">
<xsl:value-of select="substring-before($text, ' ')"/>
<br/>
<xsl:call-template name="break">
<xsl:with-param name="label" select="substring-after($text, ' ')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

</xsl:stylesheet>

additional info plain data

<p>

<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">

<xsl:for-each select="//Field">

<xsl:text>
</xsl:text><xsl:value-of select="@label"/><xsl:text> </xsl:text>


<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>



</xsl:template>
</xsl:stylesheet>
</p>

audit report.xslt

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:output method="xml" indent="yes"/>

<xsl:template match="/">
<xsl:apply-templates select="Data"/>

</xsl:template>

<xsl:template match="Data">

<xsl:processing-instruction name="mso-application">progid="Excel.Sheet"</xsl:processing-instruction>

<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"

xmlns:o="urn:schemas-microsoft-com:office:office"

xmlns:x="urn:schemas-microsoft-com:office:excel"

xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"

xmlns:html="http://www.w3.org/TR/REC-html40">
<Styles>
<Style ss:ID="s24">
<Interior ss:Color="#083eb8" ss:Pattern="Solid"/>
<Alignment ss:Horizontal="Left" ss:Vertical="Center" ss:WrapText="1"/>
<Borders>
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
</Borders>
<Font ss:Bold="1" ss:Color="#ffffff"/>

</Style>
</Styles>

<Worksheet ss:Name="Audit Report Data" >
<Table x:FullColumns="1" x:FullRows="1">
<Column ss:Width="250.25"/>
<Column ss:Width="100"/>
<Column ss:Width="150.5"/>
<Column ss:Width="113.25"/>
<Column ss:Width="110.25"/>
<!--<Row >
<xsl:for-each select="//Fiscal[last()]//FiscalData">

<Cell ss:StyleID="s24">
<Data ss:Type="String">
<xsl:value-of select="@Title"/>
</Data>
</Cell>
</xsl:for-each>
</Row>-->
<xsl:for-each select="Fiscal">
<Row>
<xsl:for-each select="FiscalData">

<Cell >
<Data ss:Type="String">
<xsl:value-of select="text()" />
</Data>
</Cell>
</xsl:for-each>
</Row>
</xsl:for-each>

</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">

<Print>

<ValidPrinterInfo/>

<HorizontalResolution>600</HorizontalResolution>

<VerticalResolution>600</VerticalResolution>

</Print>

<Selected/>

<Panes>

<Pane>

<Number>3</Number>

<ActiveRow>12</ActiveRow>

<ActiveCol>1</ActiveCol>

</Pane>

</Panes>

<ProtectObjects>False</ProtectObjects>

<ProtectScenarios>False</ProtectScenarios>

</WorksheetOptions>

</Worksheet>
</Workbook>
</xsl:template>
</xsl:stylesheet>

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>

Wednesday, April 21, 2010

XSL

<?xml:namespace prefix = xsl /><xsl:stylesheet version="1.0" xsl="http://www.w3.org/1999/XSL/Transform" asp="remove">
<xsl:output version="1.0" indent="yes" encoding="UTF-8" method="xml"></xsl:output>
<xsl:param name="session_name"></xsl:param>
<xsl:template match="ServiceName">
<table cellspacing="0" cellpadding="0" width="700" border="0">
<tbody><tr>
<td>
<div id="content_area">
<div class="ControlHeading">
<table cellspacing="0" cellpadding="0" width="700" border="0">
<tbody><tr>
<td>
<div id="request_heading" style="TEXT-ALIGN: left">
<!--<xsl:value-of select="@name">-->
</div>
</td>
</tr>
<tr>
<td>
<table class="service_contentTable" style="TEXT-ALIGN: left" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td>
<table cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td height="5">
</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')"></xsl:value-of>
<xsl:value-of select="substring-after(@label, '\n')"></xsl:value-of>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@label"></xsl:value-of>
</xsl:otherwise>
</xsl:choose>
</td>
<td style="WIDTH: 5px">
</td>
<td>
<xsl:if test="@type = 'TextBox'">

<xsl:value-of select="@value"></xsl:value-of>
</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>
<xsl:value-of select="','"></xsl:value-of>
</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>
<xsl:value-of select="','"></xsl:value-of>
</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>
<xsl:value-of select="','"></xsl:value-of>
</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>
<xsl:value-of select="','"></xsl:value-of>
</xsl:if>
</xsl:for-each>
</xsl:if>

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

-----------------------


<xsl:stylesheet version="1.0" xsl="http://www.w3.org/1999/XSL/Transform" asp="remove">
<xsl:output version="1.0" indent="yes" encoding="UTF-8" method="xml"></xsl:output>
<xsl:param name="requestoremail"></xsl:param>
<xsl:param name="requestorlocation"></xsl:param>
<xsl:param name="requestorpassword"></xsl:param>
<xsl:param name="array"></xsl:param>
<xsl:param name="strBreak"></xsl:param>

<xsl:param name="strCurrentDate"></xsl:param>

<xsl:template match="ITRAC/ServiceName">
<table cellspacing="0" cellpadding="0" width="710" border="0">
<tbody><tr>
<td>
<div id="content_area_Popup">
<div class="ControlHeading">
<table cellspacing="0" cellpadding="0" width="710" border="0">
<tbody><tr>
<td>
<div id="ModalPopuprequest_heading">
<xsl:value-of select="@name"></xsl:value-of>
</div>
</td>
</tr>
<tr>
<td>
<div id="ModalPopuprequest_Directive">
Please provide the detail request information below:
</div>
</td>
</tr>
<tr>
<td>
<div id="ServicePopupInner">
<table class="service_contentTable" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td>
<table cellspacing="0" cellpadding="2" border="0">
<tbody><tr>
<td height="5">
</td>
</tr>
<xsl:for-each select="//Field">
<tr>
<xsl:if test="@id!='footername'">
<xsl:if test="@type = 'LabelHeadcol1'">
<td colspan="3">
<?xml:namespace prefix = asp /><asp:label text="{@headtext1}" runat="server" cssclass="labelHeading"></asp:label>
</td>
</xsl:if>
<xsl:if test="@type = 'LabelHeadcol1'">
<td colspan="3">
<asp:label text="{@headtext2}" runat="server" cssclass="labelHeading"></asp:label>
</td>
</xsl:if>
<xsl:if test="@type = 'LabelHeadcol2'">
<td style="WIDTH: 10px"></td>
<td colspan="3">
<asp:label text="{@headtext1}" runat="server" cssclass="labelHeading"></asp:label>
</td>
</xsl:if>
</xsl:if>
</tr>
<tr>
<xsl:if test="@id!='footername'">
<td style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; WIDTH: 10px; PADDING-TOP: 3px">

<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='false' and @checkboxType='Checkbox'">
<asp:checkbox id="{@checkboxid}" runat="server"></asp:checkbox>
</xsl:if>
</td>
<td>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='false' and @checkboxType='Checkboxindent1'">
<asp:checkbox id="{@checkboxid}" runat="server"></asp:checkbox>
</xsl:if>
</td>
<td class="labelText" style="PADDING-LEFT: 5px" valign="center">
<xsl:variable name="strNew"></xsl:variable>
<xsl:choose>
<xsl:when test="contains(@label, '\n')">
<xsl:value-of select="substring-before(@label, '\n')"></xsl:value-of>


<p class="SubTextInPopUp"><xsl:value-of select="substring-after(@label, '\n')"></xsl:value-of></p>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@label"></xsl:value-of>
</xsl:otherwise>
</xsl:choose>
<asp:label text="{$strNew}" runat="server"></asp:label>
</td>
<td style="WIDTH: 5px">
</td>
<td style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" valign="top">
<xsl:if test="@type = 'Label' and @SecondColumn='true'">
<asp:label id="{@id}" text="{@label}" runat="server" bold="true"></asp:label>
</xsl:if>
<xsl:if test="@type = 'TextArea'">
<asp:textbox id="{@id}" text="" runat="server" height="100px" cssclass="inputboxpopup" textmode="MultiLine"></asp:textbox>
</xsl:if>
<xsl:if test="@type = 'Date'">
<asp:textbox id="{@id}" text="{$strCurrentDate}" runat="server" cssclass="date-pick"></asp:textbox>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='false'">
<asp:textbox id="{@id}" text="" runat="server" cssclass="inputboxpopup"></asp:textbox>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestoremail'">
<asp:textbox id="{@id}" text="{$requestoremail}" runat="server" cssclass="inputboxpopup"></asp:textbox>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestorlocation'">
<asp:textbox id="{@id}" text="{$requestorlocation}" runat="server" cssclass="inputboxpopup"></asp:textbox>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestorregion'">
<asp:textbox id="{@id}" text=" " runat="server" cssclass="inputboxpopup"></asp:textbox>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestoroffice'">
<asp:textbox id="{@id}" text=" " runat="server" cssclass="inputboxpopup"></asp:textbox>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestordivision'">
<asp:textbox id="{@id}" text=" " runat="server" cssclass="inputboxpopup"></asp:textbox>
</xsl:if>
<xsl:if test="@type = 'TextBox' and @IsActiveDirectory='true' and @id='requestorpassword'">
<asp:textbox id="{@id}" text="{$requestorpassword}" runat="server" readonly="false" cssclass="inputboxpopup"></asp:textbox>
</xsl:if>
<xsl:if test="@type = 'TextBoxText' and @IsActiveDirectory='true'">
<asp:textbox id="{@id}" text="{@text}" runat="server" cssclass="inputboxpopup"></asp:textbox>
</xsl:if>
<xsl:if test="@type = 'CheckBoxList'">
<asp:checkboxlist id="{@id}" runat="server" repeatdirection="Vertical" repeatlayout="Table" repeatcolumns="{@RepeatColumns}">
<xsl:for-each select="Listitems/Listitem">
<asp:listitem style="PADDING-RIGHT: 35px; PADDING-LEFT: 1px; FLOAT: left; PADDING-BOTTOM: 8px; MARGIN: 0px; VERTICAL-ALIGN: top; PADDING-TOP: 0px" text="{@text}" value="{@value}" selected="{@selected}" cellspacing="10px"></asp:listitem>
</xsl:for-each>
</asp:checkboxlist>
</xsl:if>
<xsl:if test="@type = 'DropDownList' and @IsActiveDirectory='false'">
<asp:dropdownlist id="{@id}" style="WIDTH: 209px" runat="server">
<xsl:for-each select="Listitems/Listitem">
<asp:listitem text="{@text}" value="{@value}" selected="{@selected}"></asp:listitem>
</xsl:for-each>
</asp:dropdownlist>
</xsl:if>
<xsl:if test="@type = 'ListBox'">
<asp:listbox id="{@id}" style="WIDTH: 209px" runat="server" selectionmode="Multiple">
<xsl:for-each select="Listitems/Listitem">
<asp:listitem text="{@text}" value="{@value}" selected="{@selected}"></asp:listitem>
</xsl:for-each>
</asp:listbox>
</xsl:if>

<xsl:if test="@type = 'RadioButtonList'">
<asp:radiobuttonlist id="{@id}" runat="server" repeatdirection="Vertical" repeatlayout="Table" repeatcolumns="{@RepeatColumns}">
<xsl:for-each select="Listitems/Listitem">
<asp:listitem style="PADDING-RIGHT: 35px; PADDING-LEFT: 1px; FLOAT: left; PADDING-BOTTOM: 8px; MARGIN: 0px; VERTICAL-ALIGN: top; PADDING-TOP: 0px" text="{@text}" value="{@value}" selected="{@selected}"></asp:listitem>
</xsl:for-each>
</asp:radiobuttonlist>
</xsl:if>

<div style="PADDING-LEFT: 20px">
<xsl:if test="@type = 'RadioButtonListIndent2'">
<asp:radiobuttonlist id="{@id}" runat="server" repeatdirection="Vertical" repeatlayout="Table" repeatcolumns="{@RepeatColumns}">
<xsl:for-each select="Listitems/Listitem">
<asp:listitem style="PADDING-RIGHT: 35px; PADDING-LEFT: 1px; FLOAT: left; PADDING-BOTTOM: 8px; MARGIN: 0px; VERTICAL-ALIGN: top; PADDING-TOP: 0px" text="{@text}" value="{@value}" selected="{@selected}"></asp:listitem>
</xsl:for-each>
</asp:radiobuttonlist>
</xsl:if>
</div>
</td>
</xsl:if>
<xsl:if test="@type = 'label' and @id='footername'">
<td class="labelHeading" style="PADDING-LEFT: 60px" align="left" colspan="6">
<asp:label text="{@label}" runat="server"></asp:label>
</td>
</xsl:if>
</tr>
</xsl:for-each>
</tbody></table>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
</div>
</div>
</td>
</tr>
</tbody></table>
</xsl:template>
<xsl:template name="break">
<xsl:param name="text" select="."></xsl:param>
<xsl:choose>
<xsl:when test="contains($text, ' ')">
<xsl:value-of select="substring-before($text, ' ')"></xsl:value-of>


<xsl:call-template name="break">
<xsl:with-param name="label" select="substring-after($text, ' ')"></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text"></xsl:value-of>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

</xsl:stylesheet>

----------------

xsl v

<?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>