Advertisement
| Hall of Fame |
|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235: 236: 237: 238: 239: 240: 241: 242: 243: 244: 245: 246: 247: 248: 249: 250: 251: 252: 253: 254: 255: 256: 257: 258: 259: 260: 261: 262: 263: 264: 265: 266: 267: 268: 269: 270: 271: 272: 273: 274: 275: 276: 277: 278: 279: 280: 281: 282: 283: 284: 285: 286: 287: 288: 289: 290: 291: 292: 293: 294: 295: 296: 297: 298: 299: 300: 301: 302: 303: 304: 305: 306: 307: 308: 309: 310: 311: 312: 313: 314: 315: 316: 317: 318: 319: 320: 321: 322: 323: 324: 325: 326: 327: 328: 329: 330: 331: 332: 333: 334: 335: 336: 337: 338: 339: 340: 341: 342: 343: 344: 345: 346: 347: 348: 349: 350: 351: 352: 353: 354: 355: 356: 357: 358: 359: 360: 361: 362: 363: 364: 365: 366: 367: 368: 369: 370: 371: 372: 373: 374: 375: 376: 377: 378: 379: 380: 381: 382: 383: 384: 385: 386: 387: 388: 389: 390: 391: 392: 393: 394: 395: 396: 397: 398: 399: 400: 401: 402: 403: 404: 405: 406: 407: 408: 409: 410: 411: 412: 413: 414: 415: 416: 417: 418: 419: 420: 421: 422: 423: 424: 425: 426: 427: 428: 429: 430: 431: 432: 433: 434: 435: 436: 437: 438: 439: 440: 441: 442: 443: 444: 445: 446: 447: 448: 449: 450: 451: 452: 453: 454: 455: 456: 457: 458: 459: 460: 461: 462: 463: 464: 465: 466: 467: 468: 469: 470: 471: 472: 473: 474: 475: 476: 477: 478: 479: 480: 481: 482: 483: 484: 485: 486: 487: 488: 489: 490: 491: 492: 493: 494: 495: 496: 497: 498: 499: 500: 501: 502: 503: 504: 505: 506: 507: 508: 509: 510: 511: 512: 513: 514: 515: 516: 517: 518: 519: 520: 521: 522: 523: 524: 525: 526: 527: 528: 529: 530: 531: 532: 533: 534: 535: 536: 537: 538: 539: 540: 541: 542: 543: |
<xsl:stylesheet version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.Sharepoint.WebControls">
<xsl:output method="html" indent="no" />
<xsl:param name="PreviousLinkText">Previous</xsl:param>
<xsl:param name="NextLinkText">Next</xsl:param>
<xsl:param name="EditViewText">Edit View</xsl:param>
<xsl:param name="AscendingText">Ascending</xsl:param>
<xsl:param name="DescendingText">Descending</xsl:param>
<xsl:param name="RetrieveDataText">Retrieve Data</xsl:param>
<xsl:param name="ActionsText">Actions</xsl:param>
<xsl:param name="FilterNameText">Filter name</xsl:param>
<xsl:param name="OperatorText">Operator</xsl:param>
<xsl:param name="AddText">Add</xsl:param>
<xsl:param name="CurrentLCID">1033</xsl:param>
<xsl:param name="IsRTL">
</xsl:param>
<xsl:param name="dvt_apos">'</xsl:param>
<xsl:param name="dvt_adhocmode">sort</xsl:param>
<xsl:param name="ClickThroughUrl" />
<xsl:param name="dvt_url" />
<xsl:param name="jsMenuApplication" />
<xsl:param name="jsMenuEntity" />
<xsl:param name="jsMenuLoadingMessage" />
<xsl:param name="dvt_1_automode">0</xsl:param>
<xsl:param name="filterParam" />
<xsl:param name="dvt_firstrow">1</xsl:param>
<xsl:param name="dvt_nextpagedata" />
<xsl:param name="IsMenuVisible" />
<xsl:param name="IsEditViewVisible" />
<xsl:param name="dvt_partguid" />
<xsl:param name="ColumnKey">Kunnr</xsl:param>
<xsl:param name="dvt_1_form_selectkey" />
<xsl:param name="dvt_sortdir">ascending</xsl:param>
<xsl:param name="dvt_sortfield" />
<xsl:param name="dvt_emptytext">
</xsl:param>
<xsl:param name="dvt_filterfields" />
<xsl:param name="ColName_0">
</xsl:param>
<xsl:param name="ColName_1">
</xsl:param>
<xsl:param name="ColName_2">
</xsl:param>
<xsl:param name="ColName_3">
</xsl:param>
<xsl:template name="dvt.headerfield">
<xsl:param name="fieldname" />
<xsl:param name="fieldtitle" />
<xsl:param name="displayname" />
<xsl:param name="fieldtype">0</xsl:param>
<xsl:variable name="sortfield">
<xsl:choose>
<xsl:when test="substring($fieldname, 1, 1) = '@'">
<xsl:value-of select="substring($fieldname, 2)" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$fieldname" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="linkdir">
<xsl:choose>
<xsl:when test="$dvt_sortfield = $sortfield and $dvt_sortdir = 'ascending'">descending</xsl:when>
<xsl:otherwise>ascending</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="sortText">
<xsl:choose>
<xsl:when test="$linkdir='descending'">' + 'descending' + '</xsl:when>
<xsl:otherwise>' + 'ascending' + '</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="separator" select="' '" />
<xsl:variable name="connector" select="';'" />
<table CtxNum="1" cellspacing="0" class="ms-unselectedtitle" onmouseover="OnMouseOverAdHocFilter(this, '{concat($displayname,$separator,$fieldname, $separator,$fieldtype, $connector, $CurrentLCID, $separator, $dvt_partguid)}')">
<tr>
<td width="100%" class="ms-vb" nowrap="">
<a>
<xsl:attribute name="href">
javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_sortfield={',$sortfield,'};dvt_sortdir={',$sortText,'}'))" />;
</xsl:attribute>
<xsl:value-of select="$fieldtitle" />
<xsl:if test="$dvt_sortfield = $sortfield">
<xsl:choose>
<xsl:when test="$dvt_sortdir = 'ascending'">
<img border="0" alt="{$AscendingText}" src="{ddwrt:FieldSortImageUrl('Desc')}" />
</xsl:when>
<xsl:when test="$dvt_sortdir = 'descending'">
<img border="0" alt="{$DescendingText}" src="{ddwrt:FieldSortImageUrl('Asc')}" />
</xsl:when>
</xsl:choose>
</xsl:if>
</a>
<xsl:if test="contains($dvt_filterfields, concat($fieldname, ';' ))">
<img src="/_layouts/images/filter.gif" border="0" alt="" />
</xsl:if>
</td>
<td>
<img src="/_layouts/images/blank.gif" width="13" style="visibility: hidden" alt="" />
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="/">
<xsl:call-template name="dvt_1" />
</xsl:template>
<xsl:template name="dvt_1">
<xsl:variable name="dvt_StyleName">Table</xsl:variable>
<xsl:variable name="Rows" select="/dsQueryResponse/NewDataSet/Row" />
<xsl:variable name="dvt_RowCount" select="count($Rows)" />
<xsl:variable name="RowLimit" select="20" />
<xsl:variable name="FirstRow" select="$dvt_firstrow" />
<xsl:variable name="LastRow">
<xsl:choose>
<xsl:when test="($FirstRow + $RowLimit - 1) > $dvt_RowCount">
<xsl:value-of select="$dvt_RowCount" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$FirstRow + $RowLimit - 1" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="dvt_1.commandheader">
<xsl:with-param name="FirstRow" select="$FirstRow" />
<xsl:with-param name="LastRow" select="$LastRow" />
<xsl:with-param name="RowLimit" select="$RowLimit" />
<xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
</xsl:call-template>
<table id="BdwpRows" border="0" width="100%" cellpadding="2" cellspacing="0">
<tr valign="top">
<th class="ms-vh" width="1" />
<th class="ms-vh" align="left">
<xsl:call-template name="dvt.headerfield" ddwrt:atomic="1">
<xsl:with-param name="fieldname">@PFD_ID</xsl:with-param>
<xsl:with-param name="fieldtitle">
<xsl:value-of select="$ColName_0" />
</xsl:with-param>
<xsl:with-param name="displayname">
<xsl:value-of select="$ColName_0" />
</xsl:with-param>
<xsl:with-param name="fieldtype">text</xsl:with-param>
</xsl:call-template>
</th>
<th class="ms-vh" align="left">
<xsl:call-template name="dvt.headerfield" ddwrt:atomic="1">
<xsl:with-param name="fieldname">@Occupancy</xsl:with-param>
<xsl:with-param name="fieldtitle">
<xsl:value-of select="$ColName_1" />
</xsl:with-param>
<xsl:with-param name="displayname">
<xsl:value-of select="$ColName_1" />
</xsl:with-param>
<xsl:with-param name="fieldtype">text</xsl:with-param>
</xsl:call-template>
</th>
<th class="ms-vh" align="left">
<xsl:call-template name="dvt.headerfield" ddwrt:atomic="1">
<xsl:with-param name="fieldname">@Address</xsl:with-param>
<xsl:with-param name="fieldtitle">
<xsl:value-of select="$ColName_2" />
</xsl:with-param>
<xsl:with-param name="displayname">
<xsl:value-of select="$ColName_2" />
</xsl:with-param>
<xsl:with-param name="fieldtype">text</xsl:with-param>
</xsl:call-template>
</th>
<th class="ms-vh" align="left">
<xsl:call-template name="dvt.headerfield" ddwrt:atomic="1">
<xsl:with-param name="fieldname">@PreFireDrawingName</xsl:with-param>
<xsl:with-param name="fieldtitle">
<xsl:value-of select="$ColName_3" />
</xsl:with-param>
<xsl:with-param name="displayname">
<xsl:value-of select="$ColName_3" />
</xsl:with-param>
<xsl:with-param name="fieldtype">text</xsl:with-param>
</xsl:call-template>
</th>
</tr>
<xsl:call-template name="dvt_1.body">
<xsl:with-param name="Rows" select="$Rows" />
<xsl:with-param name="FirstRow" select="$dvt_firstrow" />
<xsl:with-param name="LastRow" select="$LastRow" />
</xsl:call-template>
</table>
</xsl:template>
<xsl:template name="dvt_1.body">
<xsl:param name="Rows" />
<xsl:param name="FirstRow" />
<xsl:param name="LastRow" />
<xsl:for-each select="$Rows">
<xsl:if test="position() >= $FirstRow and position() <= $LastRow">
<xsl:call-template name="dvt_1.rowview" />
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="dvt_1.rowview">
<tr>
<td class="ms-vb" width="1">
<xsl:choose>
<xsl:when test="$dvt_1_automode = '1'">
<xsl:call-template name="dvt_1.automode">
<xsl:with-param name="KeyField">
</xsl:with-param>
<xsl:with-param name="KeyValue" select="@*[name()=$ColumnKey]" />
<xsl:with-param name="Mode">select</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<span ddwrt:amkeyfield="" ddwrt:amkeyvalue="''" ddwrt:ammode="select" />
</xsl:otherwise>
</xsl:choose>
</td>
<td class="ms-vb">
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="$dvt_1_form_selectkey = @*[name()=$ColumnKey]">color:blue</xsl:when>
<xsl:otherwise />
</xsl:choose>
</xsl:attribute>
<xsl:variable name="fieldValue">
<xsl:call-template name="LFtoBR">
<xsl:with-param name="input">
<xsl:value-of select="@PFD_ID" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:copy-of select="$fieldValue" />
</td>
<td class="ms-vb">
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="$dvt_1_form_selectkey = @*[name()=$ColumnKey]">color:blue</xsl:when>
<xsl:otherwise />
</xsl:choose>
</xsl:attribute>
<xsl:variable name="fieldValue">
<xsl:call-template name="LFtoBR">
<xsl:with-param name="input">
<xsl:value-of select="@Occupancy" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:copy-of select="$fieldValue" />
</td>
<td class="ms-vb">
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="$dvt_1_form_selectkey = @*[name()=$ColumnKey]">color:blue</xsl:when>
<xsl:otherwise />
</xsl:choose>
</xsl:attribute>
<xsl:variable name="fieldValue">
<xsl:call-template name="LFtoBR">
<xsl:with-param name="input">
<xsl:value-of select="@Address" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:copy-of select="$fieldValue" />
</td>
<td class="ms-vb">
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="$dvt_1_form_selectkey = @*[name()=$ColumnKey]">color:blue</xsl:when>
<xsl:otherwise />
</xsl:choose>
</xsl:attribute>
<xsl:variable name="fieldValue">
<xsl:call-template name="LFtoBR">
<xsl:with-param name="input">
<xsl:value-of select="@PreFireDrawingName" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:copy-of select="$fieldValue" />
</td>
</tr>
</xsl:template>
<xsl:template name="dvt_1.navigation">
<xsl:param name="FirstRow" />
<xsl:param name="LastRow" />
<xsl:param name="RowLimit" />
<xsl:param name="dvt_RowCount" />
<xsl:variable name="PrevRow">
<xsl:choose>
<xsl:when test="$FirstRow - $RowLimit < 1">1</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$FirstRow - $RowLimit" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="NextRow">
<xsl:choose>
<xsl:when test="$LastRow >= $dvt_RowCount">
<xsl:value-of select="$FirstRow" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$LastRow + 1" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<asp:Literal id="PagerControl" runat="server">
<xsl:choose>
<xsl:when test="$dvt_RowCount = 0">
<xsl:value-of select="$dvt_emptytext" />
</xsl:when>
<xsl:when test="$FirstRow = 1 and $LastRow = $dvt_RowCount">
</xsl:when>
<xsl:otherwise>
<xsl:if test="$FirstRow != 1">
<a>
<xsl:attribute name="href">
javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$PrevRow,'}'))" />;
</xsl:attribute>
<img src="{ddwrt:PagingImageUrl('Previous')}" border="0" alt="{$PreviousLinkText}" />
</a>
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&nbsp;</xsl:text>
</xsl:if>
<xsl:value-of select="$FirstRow" /> - <xsl:value-of select="$LastRow" /><xsl:if test="$LastRow != $dvt_RowCount">
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&nbsp;</xsl:text>
<a>
<xsl:attribute name="href">
javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$NextRow,'}'))" />;
</xsl:attribute>
<img src="{ddwrt:PagingImageUrl('Next')}" border="0" alt="{$NextLinkText}" />
</a>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&nbsp;</xsl:text>
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&nbsp;</xsl:text>
<xsl:if test="$IsEditViewVisible">
<a href="{$dvt_url}">
<xsl:value-of select="$EditViewText" />
</a>
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&nbsp;</xsl:text>
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&nbsp;</xsl:text>
</xsl:if>
</asp:Literal>
</xsl:template>
<xsl:template name="dvt_1.commandheader">
<xsl:param name="FirstRow" />
<xsl:param name="LastRow" />
<xsl:param name="RowLimit" />
<xsl:param name="dvt_RowCount" />
<div>
<xsl:call-template name="dvt_1.navigation">
<xsl:with-param name="FirstRow" select="$FirstRow" />
<xsl:with-param name="LastRow" select="$LastRow" />
<xsl:with-param name="RowLimit" select="$RowLimit" />
<xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
</xsl:call-template>
<asp:PlaceHolder id="ActionBarTable" runat="server">
<table class="ms-menutoolbar" cellpadding="2" cellspacing="0" border="0" width="100%">
<tr>
<td class="ms-toolbar" style="padding-left:3px;text-align:left" nowrap="true">
<xsl:value-of select="$ActionsText" />
</td>
<td class="ms-toolbar" style="padding-right:3px;text-align:right" nowrap="true">
<xsl:value-of select="$EditViewText" />
</td>
</tr>
</table>
</asp:PlaceHolder>
<asp:PlaceHolder id="SearchTable" runat="server">
<table width="100%" style="background-color:#efefd6">
<tr class="ms-vb">
<td>
<select>
<option>
<xsl:value-of select="$FilterNameText" />
</option>
</select>
</td>
<td>
<select>
<option>
<xsl:value-of select="$OperatorText" />
</option>
</select>
</td>
<td width="100%" nowrap="true">
<input class="ms-input" style="width:100%" />
</td>
<td valign="middle">
<a href="#">
<xsl:value-of select="$AddText" />
</a>
</td>
</tr>
</table>
<table width="100%" style="background-color:#efefd6">
<tr>
<td style="width:16pt;" valign="middle">
<xsl:choose>
<xsl:when test="$IsRTL">
<img src="/_layouts/images/icongo01RTL.gif" border="0" />
</xsl:when>
<xsl:otherwise>
<img src="/_layouts/images/icongo01.gif" border="0" />
</xsl:otherwise>
</xsl:choose>
</td>
<td class="ms-vb" valign="middle">
<a href="#">
<xsl:value-of select="$RetrieveDataText" />
</a>
</td>
</tr>
</table>
</asp:PlaceHolder>
</div>
</xsl:template>
<xsl:template name="dvt_1.automode">
<xsl:param name="KeyField" />
<xsl:param name="KeyValue" />
<xsl:param name="Mode" />
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<xsl:choose>
<xsl:when test="$Mode = 'edit'">
<td class="ms-vb" />
<td class="ms-vb" />
<td class="ms-vb" />
</xsl:when>
<xsl:when test="$Mode = 'insert'">
<td class="ms-vb" />
<td class="ms-vb" />
<td class="ms-vb" />
</xsl:when>
<xsl:otherwise>
<td class="ms-vb" />
<td class="ms-vb" />
<td class="ms-vb" />
<td class="ms-vb" />
<td class="ms-vb">
<a href="#">
<xsl:attribute name="onclick">
<xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_1_form_selectkey={',$KeyValue,'}'))" />; return false;
</xsl:attribute>
<xsl:choose>
<xsl:when test="$dvt_1_form_selectkey = @*[name()=$ColumnKey]">
<img border="0" style="cursor: hand" src="/_layouts/images/rbsel.gif" />
</xsl:when>
<xsl:otherwise>
<img border="0" style="cursor: hand" src="/_layouts/images/rbunsel.gif" />
</xsl:otherwise>
</xsl:choose>
</a>
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
</table>
</xsl:template>
<xsl:template name="formatString">
<xsl:param name="stringvalue" />
<xsl:param name="separator" />
<xsl:variable name="curStr" select="substring-after($stringvalue, $separator)" />
<xsl:choose>
<xsl:when test="contains($curStr, $separator)">
<xsl:value-of select="substring-before($stringvalue, $separator)" />
<xsl:value-of select="ddwrt:UrlEncode(@*[name()=substring-before($curStr, $separator)])" />
<xsl:call-template name="formatString">
<xsl:with-param name="stringvalue" select="substring-after($curStr, $separator)" />
<xsl:with-param name="separator" select="$separator" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$stringvalue" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="OpenActionsMenu">
<xsl:param name="method" />
<xsl:param name="id" />
<xsl:param name="menuText" />
<xsl:value-of select="$method" />
<xsl:text>('</xsl:text>
<xsl:value-of select="$jsMenuLoadingMessage" />
<xsl:text>','</xsl:text>
<xsl:value-of select="ddwrt:EcmaScriptEncode($menuText)" />
<xsl:text>',false,'</xsl:text>
<xsl:value-of select="$jsMenuApplication" />
<xsl:text>','</xsl:text>
<xsl:value-of select="$jsMenuEntity" />
<xsl:text>','</xsl:text>
<xsl:value-of select="ddwrt:EcmaScriptEncode($id)" />
<xsl:text>');</xsl:text>
</xsl:template>
<xsl:template name="_trimLF">
<xsl:param name="input" />
<xsl:choose>
<xsl:when test="starts-with($input, '
')">
<xsl:call-template name="_trimLF">
<xsl:with-param name="input" select="substring($input, 2)" />
</xsl:call-template>
</xsl:when>
<xsl:when test="substring($input, string-length($input), 1) = '
'">
<xsl:call-template name="_trimLF">
<xsl:with-param name="input" select="substring($input, 1, string-length($input)-1)" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$input" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="_LFtoBRloop">
<xsl:param name="input" />
<xsl:variable name="beforeText" select="substring-before($input, '
')" />
<xsl:choose>
<xsl:when test="string-length($beforeText) = 0 and substring($input, 1, 1) != '
'">
<xsl:value-of select="$input" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$beforeText" />
<br />
<xsl:call-template name="_LFtoBRloop">
<xsl:with-param name="input" select="substring($input, string-length($beforeText)+2)" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="LFtoBR">
<xsl:param name="input" />
<xsl:choose>
<xsl:when test="substring-before($input, '
') = ''">
<xsl:value-of select="$input" />
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="_LFtoBRloop">
<xsl:with-param name="input">
<xsl:call-template name="_trimLF">
<xsl:with-param name="input" select="translate($input, '
', '')" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
|