[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Number of Recursive XSL Templates exceeded --> XML - P

Subject: Number of Recursive XSL Templates exceeded --> XML - Part 6
From: Sundararaman S A <sundararaman.sa@xxxxxxxxx>
Date: Thu, 9 Dec 2004 13:57:09 +0530
xml cdata recursive
*********************************************************************
XSL FILE - PART 5
********************************************************************

	
	<xsl:template name="resultDisplayTemplatehorizontal">
		<xsl:param name="readMode"/>
		<xsl:param name="url1"/>
		<xsl:param name="stylesheet"/>
		<xsl:param name="casesensitive"/>
		<xsl:param name="searchandclear"/>
		<xsl:param name="horizontaldisplay"/>
		<xsl:param name="xslFile"/>
		<xsl:param name="menu"/>
		<xsl:param name="extrainfo"/>
		<xsl:param name="csvprocessflow"/>
		<xsl:param name="RecordsNotFound"/>
		<xsl:param name="objpermission"/>
		<xsl:param name="currentpage"/>		
		<xsl:param name="parent"/>
		<xsl:param name="configName"/>
		<xsl:param name="searchid"/>
		<xsl:param name="searchconfigid"/>
				
		<xsl:variable name="currentdate" select="//sdmsearch/@currentdate"/>
		<xsl:variable name="orderbylist" select="//orderbylist"/>
		<xsl:variable name="modifiedby"
select="//Response/Header/workflowresponse/userid"/>
		<xsl:variable name="copyImageEnable">
			<xsl:call-template name="menutemplate">
				<xsl:with-param name="menuvalue" select="$menu"/>
				<xsl:with-param name="menuname" select="$COPYINSERT"/>
			</xsl:call-template>
		</xsl:variable>
		<xsl:variable name="deleteImageEnable">
			<xsl:call-template name="menutemplate">
				<xsl:with-param name="menuvalue" select="$menu"/>
				<xsl:with-param name="menuname" select="$DELETE"/>
			</xsl:call-template>
		</xsl:variable>
		
		<xsl:variable name="tempflag">
			<xsl:choose>
				<xsl:when test="string($copyImageEnable)='true' or
string($deleteImageEnable)='true' or (string($objpermission)='4' and
(string($copyImageEnable)='true' or
string($deleteImageEnable)='true'))">
					<xsl:value-of select="'true'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'false'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>

		
		<xsl:if test="not(not(//search/SearchResult/sdmsearchresult))">
			<xsl:call-template name="displayHeader">
				<xsl:with-param name="readMode" select="$readMode"/>
				<xsl:with-param name="url1" select="$url1"/>
				<xsl:with-param name="stylesheet" select="$stylesheet"/>
				<xsl:with-param name="casesensitive" select="$casesensitive"/>
				<xsl:with-param name="searchandclear" select="$searchandclear"/>
				<xsl:with-param name="horizontaldisplay" select="$horizontaldisplay"/>
				<xsl:with-param name="xslFile" select="$xslFile"/>
				<xsl:with-param name="menu" select="$menu"/>
				<xsl:with-param name="extrainfo" select="$extrainfo"/>
				<xsl:with-param name="csvprocessflow" select="$csvprocessflow"/>
				<xsl:with-param name="tempflag" select="$tempflag"/>
				<xsl:with-param name="currentpage" select="$currentpage"/>
				<xsl:with-param name="configName" select="$configName"/>
				<xsl:with-param name="parent" select="$parent"/>
				<xsl:with-param name="searchid" select="$searchid"/>
				<xsl:with-param name="searchconfigid" select="$searchconfigid"/>
				<xsl:with-param name="orderbylist" select="$orderbylist"/>
			</xsl:call-template>
		</xsl:if>
		<xsl:variable name="pKey"
select="name(//search/SearchResult/sdmsearchresult[1]//*[@id])"/>
		<xsl:variable name="objectName">
			<xsl:for-each select="//search/SearchResult/sdmsearchresult[1]//*[@id]">
				<xsl:value-of select="name(..)"/>
			</xsl:for-each>
		</xsl:variable>
		<input type="hidden" name="pKey" value="{$pKey}"/>
		<input type="hidden" name="objectName" value="{$objectName}"/>
		<input type="hidden" name="type" value="{$objectName}"/>			
		
		<xsl:for-each select="//search/SearchResult/sdmsearchresult">
								<xsl:text disable-output-escaping="yes"><![CDATA[<tr
class="alternateRow1">]]></xsl:text>

		<xsl:for-each select=".//*[@hide]">
		<xsl:sort select="@displayposition" data-type="number"/>
		<xsl:if test="@domain">
				<xsl:variable name="objectname" select="name(..)"/>
				<xsl:variable name="primarykey_value" select="../*[string(@id)!='']/@id"/>
				<xsl:variable name="object"
select="concat($objectname,'[',$primarykey_value,'].')"/>
					<xsl:variable name="columnName" select="name(.)"/>
					<!-- Lov calculation starts here -->
					<xsl:variable name="lovs">
						<xsl:if test="string(@domain)!=''">
							<xsl:for-each select="//search/SearchHeader//*">
				<xsl:if test="($columnName = name(.)) and ($objectname = name(..))">
									<xsl:value-of select="@domain"/>
								</xsl:if>
							</xsl:for-each>
						</xsl:if>
					</xsl:variable>
					<xsl:variable name="separator">
						<xsl:value-of select="','"/>
					</xsl:variable>
					<xsl:variable name="separator2">
						<xsl:value-of select="'|'"/>
					</xsl:variable>
					<xsl:variable name="separator3">
						<xsl:value-of select="'|'"/>
					</xsl:variable>
					<xsl:variable name="lovsDomain">
						<xsl:call-template name="findDomain">
							<xsl:with-param name="lovs" select="$lovs"/>
							<xsl:with-param name="separator" select="$separator"/>
							<xsl:with-param name="separator2" select="$separator2"/>
							<xsl:with-param name="separator3" select="$separator3"/>
						</xsl:call-template>
					</xsl:variable>
					<xsl:variable name="lovsValue">
						<xsl:call-template name="findValue">
							<xsl:with-param name="lovs" select="$lovs"/>
							<xsl:with-param name="separator" select="$separator"/>
							<xsl:with-param name="separator2" select="$separator2"/>
							<xsl:with-param name="separator3" select="$separator3"/>
						</xsl:call-template>
					</xsl:variable>
					<!-- Lov calculation ends here -->
					<xsl:variable name="fieldname"
select="normalize-space(concat($object,name(.)))"/>
					<xsl:variable name="fieldvalue" select="normalize-space(text())"/>
					<xsl:variable name="sizeofinputtext">
						<xsl:choose>
							<xsl:when test="string(@linkimage)!=''">
								<xsl:value-of select="@linkimage"/>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="'10'"/>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:variable>
					
					<xsl:choose>
						<xsl:when test="string(@hide)='1'">
						
							<xsl:if test="position()=1">
								<xsl:if test="string($readMode) != '1'">
									<xsl:if test="string($tempflag)='true'">
										<td align="left">
											<input type="checkbox" name="id"
value="{$primarykey_value}" style="width:13px;height:13px;"/>
										</td>
									</xsl:if>
								</xsl:if>
							</xsl:if>
							<input type="hidden" name="{$fieldname}" value="{$fieldvalue}"/>
						</xsl:when>
						<xsl:when test="@pageview='1' or string($readMode) = '1'">
							<xsl:if test="position()=1">
								<xsl:if test="string($readMode) != '1'">
									<xsl:if test="string($tempflag)='true'">
										<td align="left">
											<input type="checkbox" name="id"
value="{$primarykey_value}" style="width:13px;height:13px;"/>
										</td>
									</xsl:if>
								</xsl:if>
							</xsl:if>

							<td>
								<xsl:choose>
									<xsl:when test="@domain!=''">
										<xsl:variable name="valuetemp">
											<!--									<xsl:call-template name="selectedValue">
											<xsl:with-param name="domain" select="$lovsValue"/>
											<xsl:with-param name="desc" select="$lovsDomain"/>
											<xsl:with-param name="disabled" select="'disabled'"/>
											<xsl:with-param name="funcname" select="'return true'"/>
											<xsl:with-param name="value" select="$fieldvalue"/>
											<xsl:with-param name="name" select="$fieldname"/>
											<xsl:with-param name="displayselectedvalue" select="$fieldvalue"/>
										</xsl:call-template>-->
										</xsl:variable>
										<xsl:call-template name="selectedValue">
											<xsl:with-param name="domain" select="$lovsValue"/>
											<xsl:with-param name="desc" select="$lovsDomain"/>
											<xsl:with-param name="disabled" select="'disabled'"/>
											<xsl:with-param name="funcname" select="'return true'"/>
											<xsl:with-param name="value" select="$fieldvalue"/>
											<xsl:with-param name="name" select="$fieldname"/>
											<xsl:with-param name="displayselectedvalue" select="$fieldvalue"/>
										</xsl:call-template>
										<input type="hidden" name="{$fieldname}" value="{$valuetemp}"/>
									</xsl:when>
									<xsl:otherwise>
										<input type="hidden" name="{$fieldname}" value="{$fieldvalue}"/>
										<xsl:value-of select="$fieldvalue"/>
									</xsl:otherwise>
								</xsl:choose>
							</td>
						</xsl:when>
						<xsl:when test="@domain!=''">
						
							<xsl:if test="position()=1">
								<xsl:if test="string($tempflag)='true'">
									<td align="left">
										<input type="checkbox" name="id" value="{$primarykey_value}"
style="width:13px;height:13px;"/>
									</td>
								</xsl:if>
							</xsl:if>
							<td>
								<xsl:call-template name="selectbox2">
									<xsl:with-param name="domain" select="$lovsValue"/>
									<xsl:with-param name="desc" select="$lovsDomain"/>
									<xsl:with-param name="funcname" select="'return true'"/>
									<xsl:with-param name="value" select="$fieldvalue"/>
									<xsl:with-param name="name" select="$fieldname"/>
									<xsl:with-param name="displayselectedvalue" select="$fieldvalue"/>
									<xsl:with-param name="primarykey_value" select="$primarykey_value"/>
									<xsl:with-param name="currentdate" select="$currentdate"/>
									<xsl:with-param name="modifiedby" select="$modifiedby"/>
									<xsl:with-param name="objectname" select="$objectname"/>
								</xsl:call-template>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:if test="position()=1">
								<xsl:if test="string($tempflag)='true'">
									<td align="left">
										<input type="checkbox" name="id" value="{$primarykey_value}"
style="width:13px;height:13px;"/>
									</td>
								</xsl:if>
							</xsl:if>
							<td>
							<xsl:variable name="formatString">
								<xsl:choose>
									<xsl:when test="contains(@format,':')">
										<xsl:value-of select="substring-before(@format,':')"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="@format"/>									
									</xsl:otherwise>
								</xsl:choose>
							</xsl:variable>
								<xsl:choose>
									<xsl:when test="string(@format)!=''">
										<input type="text" size="{$sizeofinputtext}"
name="{$fieldname}" value="{$fieldvalue}"/>
										<xsl:text disable-output-escaping="yes"><![CDATA[<a
href="]]></xsl:text>
										<xsl:text
disable-output-escaping="yes"><![CDATA[javascript:openDateWindow(document.resultDisplayTemplateForm[]]></xsl:text>
										<xsl:text disable-output-escaping="yes"><![CDATA[']]></xsl:text>
										<xsl:value-of select="$fieldname"/>
										<xsl:text disable-output-escaping="yes"><![CDATA['],'',']]></xsl:text>
										<xsl:value-of select="$formatString"/>
										<xsl:text
disable-output-escaping="yes"><![CDATA[','','true','',']]></xsl:text>
										<xsl:value-of select="$primarykey_value"/>
										<xsl:text disable-output-escaping="yes"><![CDATA[',']]></xsl:text>
										<xsl:value-of select="$currentdate"/>
										<xsl:text disable-output-escaping="yes"><![CDATA[',']]></xsl:text>
										<xsl:value-of select="$modifiedby"/>
										<xsl:text disable-output-escaping="yes"><![CDATA[',']]></xsl:text>
										<xsl:value-of select="$objectname"/>
										<xsl:text disable-output-escaping="yes"><![CDATA[','1']]></xsl:text>
										<xsl:text disable-output-escaping="yes"><![CDATA[);">]]></xsl:text>
										<img src="{$DMT_IMAGES}/calendar.gif" alt="Calendar" border="0"/>
										<xsl:text disable-output-escaping="yes"><![CDATA[</a>]]></xsl:text>
									</xsl:when>
									<xsl:otherwise>
										<xsl:choose>
											<xsl:when test="string(@id)!=''">
												<xsl:value-of select="$fieldvalue"/>
												<input type="hidden" name="{$fieldname}" value="{$fieldvalue}"/>
											</xsl:when>
											<xsl:otherwise>
												<input type="text" name="{$fieldname}"
value="{$fieldvalue}" size="{$sizeofinputtext}"
onchange="javascript:validate('{$primarykey_value}','{$currentdate}','{$modifiedby}','{$objectname}')"/>
											</xsl:otherwise>
										</xsl:choose>
									</xsl:otherwise>
								</xsl:choose>
							</td>
						</xsl:otherwise>
					</xsl:choose>
</xsl:if>				
</xsl:for-each>					


<xsl:variable name="primarykey_value">
<xsl:for-each select=".//*[@hide][position()=1]">
<xsl:value-of select="../*[string(@id)!='']/@id"/>
</xsl:for-each>
</xsl:variable>
				<xsl:variable name="editImageEnable">
					<xsl:call-template name="menutemplate">
						<xsl:with-param name="menuvalue" select="$menu"/>
						<xsl:with-param name="menuname" select="$EDIT"/>
					</xsl:call-template>
				</xsl:variable>
										<xsl:variable name="newURL">
											<xsl:call-template name="AnchorSubmitTemplate">
												<xsl:with-param name="URL"
select="concat($action,'?action=startprocess&amp;process=dmtgetsearchfilterandresultwithconfigname&amp;sessionId=',$session,'&amp;stylesheet=',$stylesheet,'&amp;configName=',@returnchildname,'&amp;style=',$xslFile,'&amp;readMode=0&amp;parent=',$url1,'&amp;casesensitive=',$casesensitive,'&amp;menu=',$menu,'&amp;extrainfo=',$extrainfo,'&amp;csvprocessflow=',$csvprocessflow,'&amp;searchandclear=',$searchandclear,'&amp;horizontaldisplay=',$horizontaldisplay)"/>
												<xsl:with-param name="frames" select="$FRAMES"/>
											</xsl:call-template>
										</xsl:variable>
				<xsl:variable name="newURL">
					<xsl:call-template name="AnchorSubmitTemplate">
						<xsl:with-param name="URL"
select="concat($action,'?action=restore&amp;sessionId=',$session,'&amp;type=menumgmt&amp;id=',$primarykey_value,'&amp;style=dmt/docs/xsl/daasrestore.xsl&amp;stylesheet=',$stylesheet,'&amp;configName=',@returnchildname,'&amp;readMode=0&amp;parent=',$url1,'&amp;casesensitive=',$casesensitive,'&amp;menu=',$menu,'&amp;extrainfo=',$extrainfo,'&amp;csvprocessflow=',$csvprocessflow,'&amp;searchandclear=',$searchandclear,'&amp;horizontaldisplay=',$horizontaldisplay)"/>
						<xsl:with-param name="frames" select="$FRAMES"/>
					</xsl:call-template>
				</xsl:variable>
				<xsl:if test="string($editImageEnable)='true'">
					<xsl:if test="string($readMode)='0'">
						<td align="center">
							<a href="{$newURL}">
								<img border="0" src="images/dmt/edit.gif" alt="Edit"
style="cursor:hand"/>
							</a>
						</td>
					</xsl:if>
				</xsl:if>



				<xsl:text disable-output-escaping="yes"><![CDATA[</tr>]]></xsl:text>

		</xsl:for-each>
		<xsl:if test="$RecordsNotFound">
			<font color="red" size="2">
				<xsl:value-of select="$RECORDSNOTFOUND"/>
			</font>
		</xsl:if>
	</xsl:template>
	<xsl:template name="displayHeader">
		<xsl:param name="readMode"/>
		<xsl:param name="url1"/>
		<xsl:param name="stylesheet"/>
		<xsl:param name="casesensitive"/>
		<xsl:param name="searchandclear"/>
		<xsl:param name="horizontaldisplay"/>
		<xsl:param name="xslFile"/>
		<xsl:param name="menu"/>
		<xsl:param name="extrainfo"/>
		<xsl:param name="csvprocessflow"/>
		<xsl:param name="tempflag"/>
		<xsl:param name="currentpage"/>
		<xsl:param name="configName"/>
		<xsl:param name="parent"/>
		<xsl:param name="searchid"/>
		<xsl:param name="searchconfigid"/>
		<xsl:param name="orderbylist"/>

		<tr class="contentHeaderRow">
			<xsl:if test="string($readMode)!='1'">
				<xsl:if test="string($tempflag)='true'">
					<td align="left" class="contentHeaderRow">
						<input type="checkbox" name="topcheckbox" value=""
onclick="javascript:selectAllCheckBoxes()"
style="width:13px;height:13px;"/>
					</td>
				</xsl:if>
			</xsl:if>

			<xsl:for-each
select="//search/SearchResult/sdmsearchresult[position()=1]//*[@hide]">
				<xsl:sort select="@displayposition" data-type="number"/>
		<xsl:value-of select="$orderbylist"/>
		<xsl:variable name="sortOrd">
			<xsl:call-template name="findTheOrdering">
				<xsl:with-param name="sortCol" select="@searchinfoconfigid"/>
				<xsl:with-param name="orderbylist" select="$orderbylist"/>
			</xsl:call-template>
		</xsl:variable>
		<xsl:variable name="sortUrl">				
		<xsl:call-template name="AnchorSubmitTemplate">
		<xsl:with-param name="URL"
select="concat($action,'?action=startprocess&amp;process=dmtsort&amp;sortCol=',@searchinfoconfigid,'&amp;sortOrd=',$sortOrd,'&amp;searchid=',$searchid,'&amp;sessionId=',$session,'&amp;readMode=',$readMode,'&amp;page1=',$currentpage,'&amp;parent=',$parent,'&amp;xslFile=',$xslFile,'&amp;menu=',$menu,'&amp;extrainfo=',$extrainfo,'&amp;csvprocessflow=',$csvprocessflow,'&amp;configName=',$configName,'&amp;horizontaldisplay=',$horizontaldisplay,'&amp;casesensitive=',$casesensitive,'&amp;searchandclear=',$searchandclear,'&amp;stylesheet=',$stylesheet,'&amp;style=',$xslFile,'&amp;filter=true&amp;header=true')"/>
			<xsl:with-param name="frames" select="$FRAMES"/>
		</xsl:call-template>
	</xsl:variable>	
				<xsl:if test="@hide">
				<xsl:choose>
					<xsl:when test="string(@returnchildname) != '' and
not(string($readMode)='1')">
						<xsl:if test="@hide!='1'">
							<th class="contentHeaderRow" align="left">
								<table id="GenericDataFull" width="20%">
									<tr class="contentHeaderRow">
										<xsl:variable name="newURL">
											<xsl:call-template name="AnchorSubmitTemplate">
												<xsl:with-param name="URL"
select="concat($action,'?action=startprocess&amp;process=dmtgetsearchfilterandresultwithconfigname&amp;sessionId=',$session,'&amp;stylesheet=',$stylesheet,'&amp;configName=',@returnchildname,'&amp;style=',$xslFile,'&amp;readMode=0&amp;parent=',$url1,'&amp;casesensitive=',$casesensitive,'&amp;menu=',$menu,'&amp;extrainfo=',$extrainfo,'&amp;csvprocessflow=',$csvprocessflow,'&amp;searchandclear=',$searchandclear,'&amp;horizontaldisplay=',$horizontaldisplay)"/>
												<xsl:with-param name="frames" select="$FRAMES"/>
											</xsl:call-template>
										</xsl:variable>
										<th class="contentHeaderRow" align="left">
											<a href="{$newURL}">
												<img src="{$DMT_IMAGES}/addParent.gif" alt="Add Parent" border="0"/>
											</a>
										</th>
										<th class="contentHeaderRow" align="left">
											<a href="{$sortUrl}"
onclick="javascript:DisableLinks('{@displayname}');">
											<b>
												<xsl:value-of select="normalize-space(@displayname)"/>
											</b>
											</a>
										</th>
									</tr>
								</table>
							</th>
						</xsl:if>
					</xsl:when>
					<xsl:otherwise>
						<xsl:if test="@hide!='1'">
							<th class="contentHeaderRow" align="left">
							<a href="{$sortUrl}"
onclick="javascript:DisableLinks('{@displayname}');">
								<xsl:value-of select="normalize-space(@displayname)"/>
							</a>
							</th>
						</xsl:if>
					</xsl:otherwise>
				</xsl:choose>
				</xsl:if>
			</xsl:for-each>
			<xsl:variable name="editImageEnable">
				<xsl:call-template name="menutemplate">
					<xsl:with-param name="menuvalue" select="$menu"/>
					<xsl:with-param name="menuname" select="$EDIT"/>
				</xsl:call-template>
			</xsl:variable>
		<xsl:if test="string($editImageEnable)='true'">
			<xsl:if test="string($readMode)!='1'">
				<xsl:if test="string($tempflag)='true'">
					<td align="left" class="contentHeaderRow">
						Edit
					</td>
				</xsl:if>
			</xsl:if>
		</xsl:if>
		</tr>
	</xsl:template>

	
	<xsl:template name="resultDisplayTemplate">
		<xsl:param name="sessionId"/>
		<xsl:param name="searchid"/>
		<xsl:param name="searchconfigid"/>
		<xsl:param name="configName"/>
		<xsl:param name="readMode"/>
		<xsl:param name="currentpage"/>
		<xsl:param name="horizontaldisplay"/>
		<xsl:param name="searchandclear"/>
		<xsl:param name="casesensitive"/>
		<xsl:param name="stylesheet"/>
		<xsl:param name="objectType"/>
		<xsl:param name="parent"/>
		<xsl:param name="noOfRows"/>
		<xsl:param name="xslFile"/>
		<xsl:param name="menu"/>
		<xsl:param name="RecordsNotFound"/>
		<xsl:param name="objpermission"/>
		<xsl:param name="extrainfo"/>
		<xsl:param name="csvprocessflow"/>

				<xsl:variable name="temp">
<xsl:value-of select="concat('style-',$xslFile,'^action-startprocess^process-dmtconfigname_lastpage^readMode-',$readMode,'^lastpage-',$currentpage,'^menu-',$menu,'^extrainfo-',$extrainfo,'^csvprocessflow-',$csvprocessflow,'^noOfRows-',$noOfRows,'^','configName-',$configName,'^','horizontaldisplay-',$horizontaldisplay,'^','casesensitive-',$casesensitive,'^','stylesheet-',$stylesheet,'^','searchandclear-',$searchandclear,'^filter-true^update-true^')"/>
		</xsl:variable>
		<xsl:variable name="separator" select="'|'"/>
		<xsl:variable name="separatorexclaim" select="'!'"/>
		<xsl:variable name="url1" select="concat($separator,$temp)"/>
		<xsl:variable name="url1" select="concat($url1,$separatorexclaim)"/>
		<xsl:variable name="url1" select="concat($parent,$url1)"/>



		<form action="{$action}" method="post" name="resultDisplayTemplateForm">
			<input type="hidden" name="action" value="startprocess"/>
			<input type="hidden" name="header" value="true"/>
<!--			<input type="hidden" name="multiple"/>-->
			<input type="hidden" name="save" value="true"/>
			<input type="hidden" name="process" value="dmtupdatesave"/>
			<input type="hidden" name="sessionId" value="{$sessionId}"/>
			<input type="hidden" name="search" value="{$searchid}"/>
			<input type="hidden" name="searchconfigid" value="{$searchconfigid}"/>
			<input type="hidden" name="configName" value="{$configName}"/>
			<input type="hidden" name="readMode" value="{$readMode}"/>
			<input type="hidden" name="horizontaldisplay" value="{$horizontaldisplay}"/>
			<input type="hidden" name="page" value="{$currentpage}"/>
			<input type="hidden" name="currentpage" value="{$currentpage}"/>
			<input type="hidden" name="filter" value="true"/>
			<input type="hidden" name="searchandclear" value="{$searchandclear}"/>
			<input type="hidden" name="casesensitive" value="{$casesensitive}"/>
			<input type="hidden" name="parent" value="{$parent}"/>
			<input type="hidden" name="xslFile" value="{$xslFile}"/>
			<input type="hidden" name="stylesheet" value="{$stylesheet}"/>
			<input type="hidden" name="style" value="{$xslFile}"/>
			<input type="hidden" name="exec" value="1"/>
			<input type="hidden" name="menu" value="{$menu}"/>
			<input type="hidden" name="extrainfo" value="{$extrainfo}"/>
			<input type="hidden" name="csvprocessflow" value="{$csvprocessflow}"/>
			<input type="hidden" name="noOfRows" value="{$noOfRows}"/>
			<input type="hidden" name="objectType" value="{$objectType}"/>

			
			<xsl:choose>
				<xsl:when test="string($horizontaldisplay)='1'">
					<xsl:call-template name="resultDisplayTemplatehorizontal">
						<xsl:with-param name="readMode" select="$readMode"/>
						<xsl:with-param name="url1" select="$url1"/>
						<xsl:with-param name="stylesheet" select="$stylesheet"/>
						<xsl:with-param name="casesensitive" select="$casesensitive"/>
						<xsl:with-param name="searchandclear" select="$searchandclear"/>
						<xsl:with-param name="horizontaldisplay" select="$horizontaldisplay"/>
						<xsl:with-param name="xslFile" select="$xslFile"/>
						<xsl:with-param name="menu" select="$menu"/>
						<xsl:with-param name="extrainfo" select="$extrainfo"/>
						<xsl:with-param name="csvprocessflow" select="$csvprocessflow"/>
						<xsl:with-param name="currentpage" select="$currentpage"/>
						<xsl:with-param name="RecordsNotFound" select="$RecordsNotFound"/>
						<xsl:with-param name="objpermission" select="$objpermission"/>
						<xsl:with-param name="parent" select="$parent"/>
						<xsl:with-param name="configName" select="$configName"/>
						<xsl:with-param name="searchid" select="$searchid"/>
						<xsl:with-param name="searchconfigid" select="$searchconfigid"/>
					</xsl:call-template>
				</xsl:when>
				<xsl:otherwise>
					<xsl:call-template name="resultDisplayTemplateVertical">
						<xsl:with-param name="readMode" select="$readMode"/>
						<xsl:with-param name="url1" select="$url1"/>
						<xsl:with-param name="stylesheet" select="$stylesheet"/>
						<xsl:with-param name="casesensitive" select="$casesensitive"/>
						<xsl:with-param name="searchandclear" select="$searchandclear"/>
						<xsl:with-param name="horizontaldisplay" select="$horizontaldisplay"/>
						<xsl:with-param name="xslFile" select="$xslFile"/>
						<xsl:with-param name="menu" select="$menu"/>
						<xsl:with-param name="extrainfo" select="$extrainfo"/>
						<xsl:with-param name="csvprocessflow" select="$csvprocessflow"/>
						<xsl:with-param name="currentpage" select="$currentpage"/>
						<xsl:with-param name="RecordsNotFound" select="$RecordsNotFound"/>
						<xsl:with-param name="objpermission" select="$objpermission"/>
						<xsl:with-param name="parent" select="$parent"/>
						<xsl:with-param name="configName" select="$configName"/>
						<xsl:with-param name="searchid" select="$searchid"/>
						<xsl:with-param name="searchconfigid" select="$searchconfigid"/>
					</xsl:call-template>
				</xsl:otherwise>
			</xsl:choose>
		</form>

		
	</xsl:template>
	
<!--	<xsl:template name="findTheOrdering">
	<xsl:param name="sortCol"/>
	<xsl:param name="orderbylist"/>
		<xsl:variable name="tempsort1">
			<xsl:value-of select="substring-after($orderbylist,$sortCol)"/>
		</xsl:variable>
		<xsl:variable name="tempsort2">
			<xsl:value-of select="substring-after($tempsort1,'.')"/>
		</xsl:variable>
		<xsl:variable name="tempsort3">
			<xsl:value-of select="substring-before($tempsort2,',')"/>
		</xsl:variable>
		<xsl:if test="string($tempsort3) =''">
			<xsl:if test="string($tempsort2)='desc' or string($tempsort2) =''">
				<xsl:value-of select="'asc'"/>
			</xsl:if>
			<xsl:if test="string($tempsort2)='asc'">
				<xsl:value-of select="'desc'"/>
			</xsl:if>
		</xsl:if>
		<xsl:if test="string($tempsort2) !='' and string($tempsort3) !=''">
			<xsl:if test="string($tempsort3)='desc' or string($tempsort3) =''">
				<xsl:value-of select="'asc'"/>
			</xsl:if>
			<xsl:if test="string($tempsort3)='asc'">
				<xsl:value-of select="'desc'"/>
			</xsl:if>
		</xsl:if>
	</xsl:template>
-->

	<xsl:template name="summa"/>
	
	<xsl:template name="findTheOrdering">
	<xsl:param name="sortCol"/>
	<xsl:param name="orderbylist"/>
		<xsl:variable name="temp">
<!--			<xsl:call-template name="summa"/>-->
<!--			<xsl:call-template name="findThePrevOrdering">
			<xsl:with-param name="sortCol" select="$sortCol"/>
			<xsl:with-param name="orderbylist" select="$orderbylist"/>
			</xsl:call-template>-->
		</xsl:variable>
		<xsl:choose>
			<xsl:when test="string($temp)='asc'">
				<xsl:value-of select="'desc'"/>
			</xsl:when>
			<xsl:when test="string($temp)='desc'">
				<xsl:value-of select="'asc'"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="'asc'"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.