home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / IPDSINTL.DLL_1033 / HTML / INSPECTORALLFIELDS.XSL < prev    next >
Extensible Markup Language  |  2010-03-29  |  29KB  |  553 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!-- _lcid="1033" _version="" -->
  3. <!-- _LocalBinding -->
  4.  
  5. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:my="http://schemas.microsoft.com/office/infopath/2006/inspec" version="1.0">
  6.     <xsl:output encoding="UTF-8" method="xml"/>
  7.  
  8.     <xsl:template match="/">
  9.         <table width="100%"><tr><td><div height="100%" width="100%">
  10.             <xsl:variable name="numberOfCalculations" select="count(my:Inspector/my:Calculation)"/>
  11.             <xsl:variable name="numberOfValidations" select="count(my:Inspector/my:DataValidation)"/>
  12.             <xsl:variable name="numberOfBusinessLogic" select="count(my:Inspector/my:BusinessLogic)"/>
  13.             <xsl:variable name="numberOfRules" select="count(my:Inspector/my:Rule)"/>
  14.  
  15.             <div class="overallFrameHeading">
  16.                 <table><tr><td width="18px" valign="top" style="padding-top:3px">
  17.                 <xsl:call-template name="OutputPlusMinus">
  18.                     <xsl:with-param name="label">ValidationOverall</xsl:with-param>
  19.                 </xsl:call-template></td>
  20.                 <td valign="top"><span class="overallFramePrimaryTitle"><!-- _locID_text="InspectorOverallValidation" _locComment="{StringCategory=TXT}The Rule on this field that ensures that the entered data is valid" -->Validation</span>
  21.                     <xsl:if test="/my:Inspector/@DataValidationsErrored='true'">
  22.                         <span class="errorProcessing"><!-- _locID_text="InspectorOverallProcessingError1" _locComment="{StringCategory=TXT}There was an error processing these constructs" --> - Processing error</span>
  23.                     </xsl:if>
  24.                 </td></tr></table>
  25.             </div>
  26.             <div></div>
  27.             <div class="indentBar" id="ValidationOverall">
  28.                 <table width="100%">
  29.                     <xsl:if test="$numberOfValidations=0">
  30.                         <tr>
  31.                             <td class="overallFrameIndentBar" />
  32.                             <td class="overallFrameBar" />
  33.                             <td class="overallFrameBackground">
  34.                                 <div class="indent"><span class="none"><!-- _locID_text="InspectorOverallNone1" _locComment="{StringCategory=TXT}There is no Rule associated with this node." -->None</span></div>
  35.                             </td>
  36.                         </tr>
  37.                     </xsl:if>
  38.                     <xsl:if test="not($numberOfValidations=0)">
  39.                         <xsl:apply-templates select="my:Inspector/my:DataValidation">
  40.                             <xsl:sort select="/my:Inspector/my:Field[my:Source/*=current()/@ID]/@ShortName"/>
  41.                         </xsl:apply-templates>
  42.                     </xsl:if>
  43.                 </table>
  44.             </div>
  45.             
  46.             <div class="overallFrameHeading">
  47.                 <table><tr><td width="18px" valign="top" style="padding-top:3px">
  48.                 <xsl:call-template name="OutputPlusMinus">
  49.                     <xsl:with-param name="label">CalcsOverall</xsl:with-param>
  50.                 </xsl:call-template>
  51.                 </td>
  52.                 <td valign="top"><span class="overallFramePrimaryTitle"><!-- _locID_text="InspectorOverallDefault" _locComment="{StringCategory=TXT}The default value for the field" -->Calculated Default Values</span>
  53.                     <xsl:if test="/my:Inspector/@CalculationsErrored='true'">
  54.                         <span class="errorProcessing"><!-- _locID_text="InspectorOverallProcessingError2" _locComment="{StringCategory=TXT}There was an error processing these constructs" --> - Processing error</span>
  55.                     </xsl:if>
  56.                 </td></tr></table>
  57.             </div>
  58.             <div></div>
  59.             <div class="indentBar" id="CalcsOverall">
  60.                 <table width="100%">
  61.                     <tr>
  62.                         <td class="overallFrameIndentBar" />
  63.                         <td class="overallFrameBar" />
  64.                         <td class="overallFrameBackground">
  65.                             <xsl:if test="$numberOfCalculations=0">
  66.                                 <div class="indent"><span class="none"><!-- _locID_text="InspectorOverallNone2" _locComment="{StringCategory=TXT}There is no Rule associated with this node." -->None</span></div>
  67.                             </xsl:if>
  68.                             <xsl:if test="not($numberOfCalculations=0)">
  69.                                 <xsl:apply-templates select="my:Inspector/my:Calculation">
  70.                                     <xsl:sort select="/my:Inspector/my:Field[@ID=current()/@Target]/@ShortName"/>
  71.                                 </xsl:apply-templates>
  72.                             </xsl:if>
  73.                         </td>
  74.                     </tr>
  75.                 </table>
  76.             </div>
  77.  
  78.             <div class="overallFrameHeading">
  79.                 <table><tr><td width="18px" valign="top" style="padding-top:3px">
  80.                 <xsl:call-template name="OutputPlusMinus">
  81.                     <xsl:with-param name="label">RulesOverall</xsl:with-param>
  82.                 </xsl:call-template></td>
  83.                 <td valign="top"><span class="overallFramePrimaryTitle"><!-- _locID_text="InspectorOverallRules" _locComment="{StringCategory=TXT}The Rule that is triggered on this field (eg. sets a field value, displays a message, etc)" -->Actions</span>
  84.                     <xsl:if test="/my:Inspector/@RulesErrored='true'">
  85.                         <span class="errorProcessing"><!-- _locID_text="InspectorOverallProcessingError3" _locComment="{StringCategory=TXT}There was an error processing these constructs" --> - Processing error</span>
  86.                     </xsl:if>
  87.                 </td></tr></table>
  88.             </div>
  89.             <div></div>
  90.             <div class="indentBar" id="RulesOverall">
  91.                 <table width="100%">
  92.                     <xsl:if test="$numberOfRules=0">
  93.                         <tr>
  94.                             <td class="overallFrameIndentBar" />
  95.                             <td class="overallFrameBar" />
  96.                             <td class="overallFrameBackground">
  97.                                 <div class="indent"><span class="none"><!-- _locID_text="InspectorOverallNone3" _locComment="{StringCategory=TXT}There is no Rule associated with this node." -->None</span></div>
  98.                             </td>
  99.                         </tr>
  100.                     </xsl:if>
  101.                     <xsl:if test="not($numberOfRules=0)">
  102.                         <xsl:apply-templates select="my:Inspector/my:Rule">
  103.                             <xsl:sort select="/my:Inspector/*[my:Source/*=current()/@ID]/@Group"/>
  104.                             <xsl:sort select="/my:Inspector/*[my:Source/*=current()/@ID]/@ShortName"/>
  105.                         </xsl:apply-templates>
  106.                     </xsl:if>
  107.                 </table>
  108.             </div>
  109.             
  110.             <div class="overallFrameHeading">
  111.                 <table><tr><td width="18px" valign="top" style="padding-top:3px">
  112.                     <xsl:call-template name="OutputPlusMinus">
  113.                         <xsl:with-param name="label">BusinessOverall</xsl:with-param>
  114.                     </xsl:call-template>
  115.                 </td>
  116.                 <td valign="top">
  117.                     <span class="overallFramePrimaryTitle"><!-- _locID_text="InspectorOverallLogic" _locComment="{StringCategory=TXT}The user-written functionality (C# / VB / Jscript)" -->Programming</span>
  118.                     <xsl:if test="/my:Inspector/@BusinessLogicErrored='true'">
  119.                         <span class="errorProcessing"><!-- _locID_text="InspectorOverallProcessingError4" _locComment="{StringCategory=TXT}There was an error processing these constructs" --> - Processing error</span>
  120.                     </xsl:if>
  121.                     <xsl:if test="/my:Inspector/@LogicNeedConversion='true'">
  122.                         <span class="errorProcessing"><!-- _locID_text="InspectorOverallVersionMigrationRequired" _locComment="{StringCategory=TXT}This Rule requires migration to a newer version" --> - Version migration required</span>
  123.                     </xsl:if>
  124.                 </td></tr></table>
  125.             </div>
  126.             <div></div>
  127.             <div class="indentBar" id="BusinessOverall">
  128.                 <table width="100%">
  129.                     <tr>
  130.                         <td class="overallFrameIndentBar" />
  131.                         <td class="overallFrameBar" />
  132.                         <td class="overallFrameBackground">
  133.                             <xsl:if test="$numberOfBusinessLogic=0">
  134.                                 <div class="indent"><span class="none"><!-- _locID_text="InspectorOverallNone4" _locComment="{StringCategory=TXT}There is no Rule associated with this node." -->None</span></div>
  135.                             </xsl:if>
  136.                             <xsl:if test="not($numberOfBusinessLogic=0)">
  137.                                 <xsl:apply-templates select="my:Inspector/my:BusinessLogic">
  138.                                     <xsl:sort select="/my:Inspector/*[my:Source/*=current()/@ID]/@Group"/>
  139.                                     <xsl:sort select="/my:Inspector/*[my:Source/*=current()/@ID]/@ShortName"/>
  140.                                 </xsl:apply-templates>
  141.                             </xsl:if>
  142.                         </td>
  143.                     </tr>
  144.                 </table>
  145.             </div>
  146.         </div></td></tr></table>
  147.     </xsl:template>
  148.  
  149.     <xsl:template name="EscapeWhiteSpace">
  150.         <xsl:param name="TextWithWhiteSpace"></xsl:param>
  151.         <xsl:choose>
  152.             <!-- we're checking for double space as well as tab-->
  153.             <xsl:when test="contains($TextWithWhiteSpace, '  ') or contains($TextWithWhiteSpace, '    ')">
  154.                 <xsl:variable name="thisValue" select="translate($TextWithWhiteSpace, ' ', ' ')" />
  155.                 <xsl:value-of select="translate($thisValue, '    ', ' ')" />
  156.             </xsl:when>
  157.             <xsl:otherwise>
  158.                 <xsl:value-of select="$TextWithWhiteSpace" />
  159.             </xsl:otherwise>
  160.         </xsl:choose>
  161.     </xsl:template>
  162.  
  163.     <xsl:template match="my:InvalidField" mode="ComplexExpression">
  164.         <span class="actionError"><!-- _locID_text="InspectorOverallInvalidField" _locComment="{StringCategory=TXT}The field is invalid." -->Invalid Field</span>
  165.     </xsl:template>
  166.  
  167.     <xsl:template name="UnknownField">
  168.         <span class="normalText" title="This field cannot be identified by the Rule Inspector. Certain XPath expressions cause this error, although they might work when filling out the form. Preview the form to verify that the rule works as expected."><!-- _locID@title="InspectorUnknownFieldTitle"  _locComment="{StringCategory=TXT}This field could not be determined by the Rule Inspector when designing the form template. When designing, certain XPaths cannot be resolved although they may work when filling out the form. Preview the form to verify that the field works as expected." --><!-- _locID_text="InspectorUnknownField" _locComment="{StringCategory=TXT}We couldn't find the node that this maps to." -->[Not Found]</span>
  169.     </xsl:template>
  170.  
  171.     <xsl:template name="Filtered">
  172.         <span class="normalText"><!-- _locID_text="InspectorFieldFiltered" _locComment="{StringCategory=TXT}There is a filter applied on this node." -->[Filtered]</span>
  173.     </xsl:template>
  174.  
  175.     <xsl:template match="my:ID" mode="ComplexExpression">
  176.         <xsl:call-template name="PrintFieldLink">
  177.             <xsl:with-param name="Primary">
  178.                 <xsl:value-of select="'false'"/>
  179.             </xsl:with-param>
  180.             <xsl:with-param name="ComplexID">
  181.                 <xsl:value-of select="."/>
  182.             </xsl:with-param>
  183.             <xsl:with-param name="Filtered">
  184.                 <xsl:value-of select="@Filtered"/>
  185.             </xsl:with-param>
  186.         </xsl:call-template>
  187.     </xsl:template>
  188.  
  189.     <xsl:template name="PrintFieldLink">
  190.         <xsl:param name="Primary"/>
  191.         <xsl:param name="ComplexID"></xsl:param>
  192.         <xsl:param name="Filtered" select="'false'"/>
  193.         <xsl:variable name="linkClass">
  194.             <xsl:choose>
  195.                 <xsl:when test="$Primary = 'true'">linkPrimary</xsl:when>
  196.                 <xsl:otherwise>linkSecondary</xsl:otherwise>
  197.             </xsl:choose>
  198.         </xsl:variable>
  199.         <xsl:variable name="ComplexFullName" select="/my:Inspector/my:Field[@ID=$ComplexID]/@Name"/>
  200.         <span class="$linkClass">
  201.             <xsl:choose>
  202.                 <xsl:when test="$ComplexID='0'">
  203.                     <xsl:call-template name="UnknownField"/>
  204.                 </xsl:when>
  205.                 <xsl:otherwise>
  206.                     <a href="" onClick="ShowField('{$ComplexID}', event); return false;" title="{$ComplexFullName}"><xsl:value-of select="/my:Inspector/my:Field[@ID=$ComplexID]/@ShortName"/></a>
  207.                     <xsl:if test="$Filtered='true'">
  208.                         <xsl:call-template name="Filtered"/>
  209.                     </xsl:if>
  210.                 </xsl:otherwise>
  211.             </xsl:choose>
  212.         </span>
  213.     </xsl:template>
  214.  
  215.     <xsl:template name="PrintFieldLinkOfSourceID">
  216.         <xsl:param name="SourceID"></xsl:param>
  217.         <xsl:param name="Filtered" select="'false'"/>
  218.         <xsl:call-template name="PrintFieldLink">
  219.             <xsl:with-param name="Primary">
  220.                 <xsl:value-of select="'true'"/>
  221.             </xsl:with-param>
  222.             <xsl:with-param name="ComplexID"><xsl:value-of select="/my:Inspector/my:Field[my:Source/*=$SourceID]/@ID"/></xsl:with-param>
  223.             <xsl:with-param name="Filtered">
  224.                 <xsl:value-of select="$Filtered"/>
  225.             </xsl:with-param>
  226.         </xsl:call-template>
  227.     </xsl:template>
  228.  
  229.     <xsl:template name="PrintButtonLinkPrimary">
  230.         <xsl:param name="ComplexID"></xsl:param>
  231.         <xsl:variable name="ComplexFullName" select="/my:Inspector/my:Button[@ID=$ComplexID]/@ID"/>
  232.         <span class="linkPrimary">
  233.             <xsl:if test="$ComplexFullName">
  234.                 <a href="" onClick="ShowField('{$ComplexID}', event); return false;" title="{$ComplexFullName}"><!-- _locID_text="InspectorOverallButtonLinkPrimary" _locComment="{StringCategory=TXT}A button on the form" -->Button <xsl:value-of select="/my:Inspector/my:Button[@ID=$ComplexID]/@ID" /></a>
  235.             </xsl:if>
  236.         </span>
  237.     </xsl:template>
  238.  
  239.     <xsl:template name="PrintButtonLinkOfSourceID">
  240.         <xsl:param name="SourceID"></xsl:param>
  241.         <xsl:call-template name="PrintButtonLinkPrimary">
  242.             <xsl:with-param name="ComplexID"><xsl:value-of select="/my:Inspector/my:Button[my:Source/*=$SourceID]/@ID"/></xsl:with-param>
  243.         </xsl:call-template>
  244.     </xsl:template>
  245.  
  246.     <xsl:template name="PrintDocumentLink">
  247.         <xsl:param name="SourceID"></xsl:param>
  248.         <xsl:if test="count(/my:Inspector/my:XDocument[my:Source/*=$SourceID]) != 0">
  249.             <span class="linkPrimary">
  250.                 <a href="" onClick="ShowField('XDocument', event); return false;" title="Document">
  251.                     <!-- _locID_text="InspectorOverallDocumentLinkPrimary" _locComment="{StringCategory=TXT}" -->Document<xsl:if test="@DocumentRuleType='1'">
  252.                         <xsl:text> </xsl:text><!-- _locID_text="InspectorOverallDocumentLinkPrimaryOnLoad" _locComment="{StringCategory=TXT}The Rule will be executed when the document loads" -->On Load</xsl:if><xsl:if test="@DocumentRuleType='2'">
  253.                         <xsl:text> </xsl:text><!-- _locID_text="InspectorOverallDocumentLinkPrimaryOnSubmit" _locComment="{StringCategory=TXT}The Rule will be executed when the document loads" -->On Submit</xsl:if></a>
  254.             </span>
  255.         </xsl:if>
  256.     </xsl:template>
  257.  
  258.     <xsl:template name="PrintFieldLinkOfTargetID">
  259.         <xsl:param name="SourceID"></xsl:param>
  260.         <xsl:call-template name="PrintFieldLink">
  261.             <xsl:with-param name="Primary">
  262.                 <xsl:value-of select="'true'"/>
  263.             </xsl:with-param>
  264.             <xsl:with-param name="ComplexID"><xsl:value-of select="/my:Inspector/my:Field[my:Target/*=$SourceID]/@ID"/></xsl:with-param>
  265.         </xsl:call-template>
  266.     </xsl:template>
  267.  
  268.     <xsl:template match="my:Expression" mode="ComplexExpression">
  269.         <span class="normalText">
  270.             <xsl:call-template name="EscapeWhiteSpace">
  271.                 <xsl:with-param name="TextWithWhiteSpace" select="."/>
  272.             </xsl:call-template>
  273.         </span>
  274.     </xsl:template>
  275.  
  276.     <xsl:template name="PrintComplexExpression">
  277.         <xsl:apply-templates select="*" mode="ComplexExpression"/>
  278.     </xsl:template>
  279.  
  280.     <xsl:template name="OutputPlusMinus">
  281.         <xsl:param name="label"></xsl:param>
  282.         <span class="expandCollapse"><a href="#" onClick="HideShow('{$label}', event)"><img border="0" id="{$label}Minus" src="InspectorMinus.PNG"/><img border="0" id="{$label}Plus" onLoad='Hide("{$label}Plus")' src="InspectorPlus.PNG"/></a></span>
  283.     </xsl:template>
  284.  
  285.     <xsl:template name="PrintConditionsRules">
  286.         <xsl:variable name="NumConditions" select="count(my:RuleCondition)"/>
  287.         <xsl:variable name="RuleID" select="@ID" />
  288.  
  289.         <span class="overallFrameTertiaryTitle"> <!-- _locID_text="InspectorOverallRuleConditions" _locComment="{StringCategory=TXT}The tests on the rule (for ex. if (. < 5)) for this rule to execute" -->Conditions</span>
  290.         <xsl:if test="$NumConditions=0">
  291.             <div class="indent">
  292.                 <span class="none"><!-- _locID_text="InspectorOverallNone5" _locComment="{StringCategory=TXT}There is no Rule associated with this node." -->None</span>
  293.             </div>
  294.         </xsl:if>
  295.         <xsl:if test="not($NumConditions=0)">
  296.             <div class="indent">
  297.                 <xsl:apply-templates select="my:RuleCondition/*" mode="ProcessCondition"/><br/>
  298.             </div>
  299.         </xsl:if>
  300.     </xsl:template>
  301.  
  302.     <xsl:template name="PrintActionsRules">
  303.         <xsl:variable name="NumActions" select="count(my:RuleAction)"/>
  304.         <xsl:variable name="RuleID" select="@ID" />
  305.  
  306.         <span class="overallFrameTertiaryTitle"> <!-- _locID_text="InspectorOverallRuleActions" _locComment="{StringCategory=TXT}The resulting actions of this rule (set a value, display a message, etc)" -->Actions</span>
  307.         <xsl:if test="$NumActions=0">
  308.             <div class="indent">
  309.                 <span class="none"><!-- _locID_text="InspectorOverallNone6" _locComment="{StringCategory=TXT}There is no rule associated with this node." -->None</span>
  310.             </div>
  311.         </xsl:if>
  312.         <xsl:if test="not($NumActions=0)">
  313.             <div class="indent">
  314.                 <xsl:apply-templates select="my:RuleAction"/>
  315.             </div>
  316.         </xsl:if>
  317.     </xsl:template>
  318.  
  319.     <xsl:template match="my:Rule">
  320.         <xsl:param name="type"></xsl:param>
  321.         <xsl:variable name="RuleID" select="@ID"/>
  322.         <tr>
  323.             <td class="overallFrameIndentBar" />
  324.             <td class="overallFrameBar" />
  325.             <td class="overallFrameBackground">
  326.                 <table><tr><td width="18px" valign="top" style="padding-top:3px">
  327.                     <xsl:call-template name="OutputPlusMinus">
  328.                         <xsl:with-param name="label"><xsl:value-of select="@ID"/><xsl:value-of select="$type"/>Overall</xsl:with-param>
  329.                     </xsl:call-template> 
  330.                 </td>
  331.                 <td valign="top">
  332.                     <xsl:call-template name="PrintDocumentLink">
  333.                         <xsl:with-param name="SourceID"><xsl:value-of select="@ID"/></xsl:with-param>
  334.                     </xsl:call-template>
  335.                     <xsl:call-template name="PrintButtonLinkOfSourceID">
  336.                         <xsl:with-param name="SourceID"><xsl:value-of select="@ID"/></xsl:with-param>
  337.                     </xsl:call-template>
  338.                     <xsl:call-template name="PrintFieldLinkOfSourceID">
  339.                         <xsl:with-param name="SourceID"><xsl:value-of select="@ID"/></xsl:with-param>
  340.                     </xsl:call-template><span class="normalText">: </span>
  341.                     <span class="ruleName">
  342.                         <xsl:call-template name="EscapeWhiteSpace">
  343.                             <xsl:with-param name="TextWithWhiteSpace" select="@Name"/>
  344.                         </xsl:call-template>
  345.                     </span>
  346.                     <xsl:if test="count(my:RuleCondition)=0">
  347.                         <span class="normalText"><xsl:text>  </xsl:text> <!-- _locID_text="InspectorOverallRuleAlwaysExecutes" _locComment="{StringCategory=TXT}States that the rule always executes" -->- Always Executes</span>
  348.                         <xsl:if test="@RuleEnabled='false'">
  349.                             <span class="normalText"><xsl:text><!-- _locID_text="InspectorOverallRuleComma" _locComment="{StringCategory=TXT}Separator" -->, </xsl:text></span>
  350.                         </xsl:if>
  351.                     </xsl:if>
  352.                     <xsl:if test="@RuleEnabled='false'">
  353.                         <span class="ruleDisabled"><xsl:text>  </xsl:text> <!-- _locID_text="InspectorOverallRuleDisabled" _locComment="{StringCategory=TXT}States that the rule is disabled and not used" -->DISABLED </span>
  354.                     </xsl:if>
  355.                 </td></tr></table>
  356.                 <div></div>
  357.                 <div class="indent" id="{$RuleID}{$type}Overall">
  358.                     <xsl:call-template name="PrintConditionsRules"/>
  359.                     <xsl:call-template name="PrintActionsRules"/>
  360.                 </div>
  361.             </td>
  362.         </tr>
  363.     </xsl:template>
  364.     
  365.     <xsl:template match="my:Condition" mode="ProcessCondition">
  366.         <xsl:call-template name="PrintComplexExpression"/>
  367.     </xsl:template>
  368.     <xsl:template match="my:and" mode="ProcessCondition">
  369.         <span class="connectorText"><xsl:text> </xsl:text><!-- _locID_text="InspectorOverallConditionAnd" _locComment="{StringCategory=TXT}Logical connector" -->and </span><br/>
  370.     </xsl:template>
  371.     <xsl:template match="my:or" mode="ProcessCondition">
  372.         <span class="connectorText"><xsl:text> </xsl:text><!-- _locID_text="InspectorOverallConditionOr" _locComment="{StringCategory=TXT}Logical connector" -->or </span><br/>
  373.     </xsl:template>
  374.  
  375.     <xsl:template match="my:RuleAction">
  376.         <xsl:choose>
  377.             <xsl:when test="@RuleActionType='1'">
  378.                 <span class="actionType"><!-- _locID_text="InspectorOverallRuleAction1" _locComment="{StringCategory=TXT}" -->Show a dialog box message: </span>
  379.                 <span class="normalText">
  380.                     <xsl:call-template name="EscapeWhiteSpace">
  381.                         <xsl:with-param name="TextWithWhiteSpace" select="@RuleActionString"/>
  382.                     </xsl:call-template>
  383.                 </span><br/>
  384.             </xsl:when>
  385.             <xsl:when test="@RuleActionType='2'">
  386.                 <span class="actionType"><!-- _locID_text="InspectorOverallRuleAction2" _locComment="{StringCategory=TXT}Display a dialog box which is based on a calculated expression" -->Show a dialog box expression: </span><span class="normalText"><xsl:call-template name="PrintComplexExpression"/></span><br/>
  387.             </xsl:when>
  388.             <xsl:when test="@RuleActionType='3'">
  389.                 <span class="actionType"><!-- _locID_text="InspectorOverallRuleAction3" _locComment="{StringCategory=TXT}Change the current view of InfoPath" -->Switch views: </span><span class="normalText"><xsl:value-of select="@RuleActionString"/></span><br/>
  390.             </xsl:when>
  391.             <xsl:when test="@RuleActionType='4'">
  392.                 <span class="actionType"><!-- _locID_text="InspectorOverallRuleAction4" _locComment="{StringCategory=TXT}" -->Set a field's value: </span>
  393.                 <xsl:if test="@RuleActionTarget">
  394.                     <xsl:call-template name="PrintFieldLink">
  395.                         <xsl:with-param name="Primary">
  396.                             <xsl:value-of select="'false'"/>
  397.                         </xsl:with-param>
  398.                         <xsl:with-param name="ComplexID">
  399.                             <xsl:value-of select="@RuleActionTarget"/>
  400.                         </xsl:with-param>
  401.                     </xsl:call-template>
  402.                 </xsl:if>
  403.                 <xsl:if test="@RuleActionTargetShortName">
  404.                     <span class="normal" style="color:#FF6600; font-weight:bold;" title="No details for this field or group. See Help for more information."><!-- _locID@title="InspectorFieldAmbiguous"  _locComment="{StringCategory=TXT}We're not sure which node this field maps to." -->
  405.                         <xsl:value-of select="@RuleActionTargetShortName" />
  406.                     </span>
  407.                 </xsl:if>
  408.                 <span class="normalText">
  409.                  = </span>
  410.                 <xsl:call-template name="PrintComplexExpression"/><br/>
  411.             </xsl:when>
  412.             <xsl:when test="@RuleActionType='5'">
  413.                 <span class="actionType"><!-- _locID_text="InspectorOverallRuleAction5" _locComment="{StringCategory=TXT}" -->Query using a data connection: </span><span class="normalText"><xsl:value-of select="@RuleActionString"/></span><br/>
  414.             </xsl:when>
  415.             <xsl:when test="@RuleActionType='6'">
  416.                 <span class="actionType"><!-- _locID_text="InspectorOverallRuleAction6" _locComment="{StringCategory=TXT}" -->Submit using a data connection: </span><span class="normalText"><xsl:value-of select="@RuleActionString"/></span><br/>
  417.             </xsl:when>
  418.             <xsl:when test="@RuleActionType='7'">
  419.                 <span class="actionType"><!-- _locID_text="InspectorOverallRuleAction7" _locComment="{StringCategory=TXT}" -->Open a new form to fill out: </span><span class="normalText"><xsl:value-of select="@RuleActionString"/></span><br/>
  420.             </xsl:when>
  421.             <xsl:when test="@RuleActionType='8'">
  422.                 <span class="actionType"><!-- _locID_text="InspectorOverallRuleAction8" _locComment="{StringCategory=TXT}" -->Close the form</span><br/>
  423.             </xsl:when>
  424.             <xsl:when test="@RuleActionType='9'">
  425.                 <span class="actionType"><!-- _locID_text="InspectorOverallRuleAction9" _locComment="{StringCategory=TXT}" -->Send data to Web Part</span><br/>
  426.             </xsl:when>
  427.             <xsl:when test="@RuleActionType='10'">
  428.                 <span class="actionType"><!-- _locID_text="InspectorOverallRuleAction10" _locComment="{StringCategory=TXT}" -->Change REST URL: </span><span class="normalText"><xsl:value-of select="@RuleActionString"/></span><br/>
  429.             </xsl:when>
  430.             <xsl:when test="@RuleActionType='11'">
  431.                 <span class="actionType">
  432.                     <!-- _locID_text="InspectorOverallRuleAction11" _locComment="{StringCategory=TXT}" -->Sign a signature line:
  433.                 </span>
  434.                 <xsl:if test="@RuleActionTarget">
  435.                     <xsl:call-template name="PrintFieldLink">
  436.                         <xsl:with-param name="Primary">
  437.                             <xsl:value-of select="'false'"/>
  438.                         </xsl:with-param>
  439.                         <xsl:with-param name="ComplexID">
  440.                             <xsl:value-of select="@RuleActionTarget"/>
  441.                         </xsl:with-param>
  442.                     </xsl:call-template>
  443.                 </xsl:if>
  444.                 <xsl:if test="@RuleActionTargetShortName">
  445.                     <span class="normal" style="color:#FF6600; font-weight:bold;" title="The type of data to match the signature control.">
  446.                         <!-- _locID@title="InspectorFieldSignerMatchType"  _locComment="{StringCategory=TXT}It is one of the types - Name / Email / Unique ID." -->
  447.                         <xsl:value-of select="@RuleActionTargetShortName" />
  448.                     </span>
  449.                 </xsl:if>
  450.                 <span class="normalText">
  451.                     =
  452.                 </span>
  453.                 <xsl:call-template name="PrintComplexExpression"/>
  454.                 <br/>
  455.             </xsl:when>
  456.             <xsl:otherwise>
  457.                 <span class="actionError"><!-- _locID_text="InspectorOverallRuleActionError" _locComment="{StringCategory=TXT}" -->Internal error.</span><br/>
  458.             </xsl:otherwise>    
  459.         </xsl:choose>
  460.     </xsl:template>
  461.  
  462.     <xsl:template match="my:Calculation">
  463.         <xsl:param name="type"></xsl:param>
  464.         <span class="expandCollapse"><img src="InspectorNode.PNG"/></span>
  465.         <xsl:call-template name="PrintFieldLink">
  466.             <xsl:with-param name="Primary">
  467.                 <xsl:value-of select="'true'"/>
  468.             </xsl:with-param>
  469.             <xsl:with-param name="ComplexID">
  470.                 <xsl:value-of select="@Target"/>
  471.             </xsl:with-param>
  472.         </xsl:call-template><span class="normalText">: <xsl:call-template name="PrintComplexExpression"/></span><br/>
  473.     </xsl:template>
  474.  
  475.     <xsl:template match="my:DataValidation">
  476.         <xsl:param name="type"></xsl:param>
  477.         <tr>
  478.             <td class="overallFrameIndentBar" />
  479.             <td class="overallFrameBar" />
  480.             <td class="overallFrameBackground">
  481.                 <xsl:variable name="DataValID" select="@ID"/>
  482.                 <table><tr><td width="18px" valign="top" style="padding-top:3px">
  483.                     <xsl:call-template name="OutputPlusMinus">
  484.                         <xsl:with-param name="label"><xsl:value-of select="@ID"/><xsl:value-of select="$type"/>Overall</xsl:with-param>
  485.                     </xsl:call-template>
  486.                 </td>
  487.                 <td valign="top">
  488.                     <xsl:call-template name="PrintFieldLinkOfSourceID">
  489.                         <xsl:with-param name="SourceID"><xsl:value-of select="@ID"/></xsl:with-param>
  490.                     </xsl:call-template>
  491.                     <span class="normalText">
  492.                         : "<xsl:call-template name="EscapeWhiteSpace">
  493.                             <xsl:with-param name="TextWithWhiteSpace" select="@Caption"/>
  494.                         </xsl:call-template>"
  495.                         <xsl:if test="@ErrorType='modal'">
  496.                             <xsl:text>  </xsl:text><!-- _locID_text="InspectorOverallDataValidationDialog" _locComment="{StringCategory=TXT}This indicates that a message box / dialog will pop up" -->(Show Dialog)
  497.                         </xsl:if>
  498.                     </span>
  499.                 </td></tr></table>
  500.                 <div></div>
  501.                 <div class="indent" id="{$DataValID}{$type}Overall">
  502.                     <span class="overallFrameTertiaryTitle"> <!-- _locID_text="InspectorOverallDataValidationConditions" _locComment="{StringCategory=TXT}The conditions that are met for the data to be invalid (. > 5 or . < 0)" -->Conditions</span>
  503.                     <div class="indent">
  504.                         <xsl:apply-templates select="*" mode="ProcessCondition"/><br/>
  505.                     </div>
  506.                     <span class="overallFrameTertiaryTitle"> <!-- _locID_text="InspectorOverallDataValidationActions" _locComment="{StringCategory=TXT}The resulting actions if the conditions are met" -->Actions</span>
  507.                     <div class="indent">
  508.                         <span class="normalText">
  509.                             <xsl:if test="not(@ScreenTip='')">
  510.                                 <!-- _locID_text="InspectorOverallDataValidationScreenTip" _locComment="{StringCategory=TXT}This is the screen tip that appears when hovering the mouse over a field" -->ScreenTip: 
  511.                                 "<xsl:call-template name="EscapeWhiteSpace">
  512.                                     <xsl:with-param name="TextWithWhiteSpace" select="@ScreenTip"/>
  513.                                 </xsl:call-template>"<br/>
  514.                             </xsl:if>
  515.                             <xsl:if test="not(@Message='')">
  516.                                 <!-- _locID_text="InspectorOverallDataValidationMessage" _locComment="{StringCategory=TXT}This is the message that pops up in a dialog box" -->Message: 
  517.                                 "<xsl:call-template name="EscapeWhiteSpace">
  518.                                     <xsl:with-param name="TextWithWhiteSpace" select="@Message"/>
  519.                                 </xsl:call-template>"<br/>
  520.                             </xsl:if>
  521.                         </span>
  522.                     </div>
  523.                 </div>
  524.             </td>
  525.         </tr>
  526.     </xsl:template>
  527.     
  528.     <xsl:template match="my:BusinessLogic">
  529.         <table><tr><td width="18px" valign="top" style="padding-top:3px">
  530.             <span class="expandCollapse"><img src="InspectorNode.PNG"/></span>
  531.         </td>
  532.         <td valign="top">
  533.             <xsl:call-template name="PrintDocumentLink">
  534.                 <xsl:with-param name="SourceID"><xsl:value-of select="@ID"/></xsl:with-param>
  535.             </xsl:call-template>
  536.             <xsl:call-template name="PrintButtonLinkOfSourceID">
  537.                 <xsl:with-param name="SourceID"><xsl:value-of select="@ID"/></xsl:with-param>
  538.             </xsl:call-template>
  539.             <xsl:call-template name="PrintFieldLinkOfSourceID">
  540.                 <xsl:with-param name="SourceID"><xsl:value-of select="@ID"/></xsl:with-param>
  541.                 <xsl:with-param name="Filtered"><xsl:value-of select="@Filtered"/></xsl:with-param>
  542.             </xsl:call-template><span class="normalText">: 
  543.                 <xsl:if test="@LogicType=''">
  544.                     <!-- _locID_text="InspectorOverallScripting" _locComment="{StringCategory=TXT}This indicates that there is a script." -->Scripting
  545.                 </xsl:if>
  546.                 <xsl:if test="not(@LogicType='')">
  547.                     <xsl:value-of select="@LogicType"/>
  548.                 </xsl:if>
  549.                 - <xsl:value-of select="@LogicFunction"/></span><br/>
  550.         </td></tr></table>
  551.     </xsl:template>
  552.  
  553. </xsl:stylesheet>