Replace tab with 2 spaces for .xsl file indent
authorZhiqiang Zhang <zhiqiang.zhang@intel.com>
Thu, 28 Aug 2014 05:57:11 +0000 (13:57 +0800)
committerZhiqiang Zhang <zhiqiang.zhang@intel.com>
Thu, 28 Aug 2014 05:59:56 +0000 (13:59 +0800)
xsd/testcase.xsl
xsd/testresult.xsl

index 648a2b4084cb959255488f1944ddf44baa6fb877..fb32685f51242eb3d474b3928876543fe453b892 100644 (file)
@@ -4,8 +4,8 @@
   <xsl:template match="/">
     <html>
       <STYLE type="text/css">
-                               @import "tests.css";
-                       </STYLE>
+        @import "tests.css";
+      </STYLE>
       <head>
         <script type="text/javascript" src="jquery.min.js"/>
       </head>
@@ -31,8 +31,8 @@
               </tr>
               <tr>
                 <td>
-                                                                       Total
-                                                               </td>
+                  Total
+                </td>
                 <td>
                   <xsl:value-of select="count(test_definition/suite/set//testcase)"/>
                 </td>
@@ -48,8 +48,8 @@
                   <td>
                     <a>
                       <xsl:attribute name="href">
-                                                                                      #<xsl:value-of select="@name"/>
-                                                                                   </xsl:attribute>
+                        #<xsl:value-of select="@name"/>
+                      </xsl:attribute>
                       <xsl:value-of select="@name"/>
                     </a>
                   </td>
                 <a href="#contents">Back to Contents</a>
               </div>
               <div id="suite_title">
-                                                               Test Suite:
-                                                               <xsl:value-of select="@name"/>
-                                                               <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-                                                       </div>
+                Test Suite:
+                <xsl:value-of select="@name"/>
+                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
+              </div>
               <table>
                 <tr>
                   <th>Case_ID</th>
                   <xsl:sort select="@name"/>
                   <tr>
                     <td colspan="7">
-                                                                                       Test Set:
-                                                                                       <xsl:value-of select="@name"/>
-                                                                               </td>
+                      Test Set:
+                      <xsl:value-of select="@name"/>
+                    </td>
                   </tr>
                   <xsl:for-each select=".//testcase">
                     <!-- xsl:sort select="@id" /> -->
                       </td>
                       <td>
                         <p>
-                                                                                                       Pre_condition:
-                                                                                                       <xsl:value-of select=".//description/pre_condition"/>
-                                                                                               </p>
+                          Pre_condition:
+                          <xsl:value-of select=".//description/pre_condition"/>
+                        </p>
                         <p>
-                                                                                                       Post_condition:
-                                                                                                       <xsl:value-of select=".//description/post_condition"/>
-                                                                                               </p>
+                          Post_condition:
+                          <xsl:value-of select=".//description/post_condition"/>
+                        </p>
                         <p>
-                                                                                                       Test Script Entry:
-                                                                                                       <xsl:value-of select=".//description/test_script_entry"/>
-                                                                                               </p>
+                          Test Script Entry:
+                          <xsl:value-of select=".//description/test_script_entry"/>
+                        </p>
                         <p>
-                                                                                                       Steps:
-                                                                                                       <p/>
-                                                                                                       <xsl:for-each select=".//description/steps/step"><xsl:sort select="@order"/>
-                                                                                                               Step
-                                                                                                               <xsl:value-of select="@order"/>
-                                                                                                               :
-                                                                                                               <xsl:value-of select="./step_desc"/>
-                                                                                                               ;
-                                                                                                               <p/>
-                                                                                                               Expected Result:
-                                                                                                               <xsl:value-of select="./expected"/>
-                                                                                                               <p/>
-                                                                                                       </xsl:for-each>
-                                                                                               </p>
+                          Steps:
+                          <p/>
+                          <xsl:for-each select=".//description/steps/step"><xsl:sort select="@order"/>
+                            Step
+                            <xsl:value-of select="@order"/>
+                            :
+                            <xsl:value-of select="./step_desc"/>
+                            ;
+                            <p/>
+                            Expected Result:
+                            <xsl:value-of select="./expected"/>
+                            <p/>
+                          </xsl:for-each>
+                        </p>
                       </td>
                       <td>
                         <xsl:for-each select=".//specs/spec"><b>[Spec_Assertion]:</b><br/>
-                                                                                                       [Category]:
-                                                                                                       <xsl:value-of select="./spec_assertion/@category"/>
-                                                                                                       <br/>
-                                                                                                       [Section]:
-                                                                                                       <xsl:value-of select="./spec_assertion/@section"/>
-                                                                                                       <br/>
-                                                                                                       [Specification]:
-                                                                                                       <xsl:value-of select="./spec_assertion/@specification"/>
-                                                                                                       <br/>
-                                                                                                       [Interface]:
-                                                                                                       <xsl:value-of select="./spec_assertion/@interface"/>
-                                                                                                       <br/>
-                                                                                                       <xsl:choose><xsl:when test="./spec_assertion/@element_name">
-                                                                                                                       [<xsl:value-of select="./spec_assertion/@element_type"/>]:
-                                                                                                                       <xsl:value-of select="./spec_assertion/@element_name"/>
-                                                                                                                       <br/>
-                                                                                                               </xsl:when></xsl:choose>
-
-                                                                                                       [URL]:
-                                                                                                       <xsl:value-of select="./spec_url"/>
-                                                                                                       <br/>
-                                                                                                       [Statement]:
-                                                                                                       <xsl:value-of select="./spec_statement"/>
-                                                                                                       <br/>
-                                                                                               </xsl:for-each>
+                          [Category]:
+                          <xsl:value-of select="./spec_assertion/@category"/>
+                          <br/>
+                          [Section]:
+                          <xsl:value-of select="./spec_assertion/@section"/>
+                          <br/>
+                          [Specification]:
+                          <xsl:value-of select="./spec_assertion/@specification"/>
+                          <br/>
+                          [Interface]:
+                          <xsl:value-of select="./spec_assertion/@interface"/>
+                          <br/>
+                          <xsl:choose><xsl:when test="./spec_assertion/@element_name">
+                              [<xsl:value-of select="./spec_assertion/@element_type"/>]:
+                              <xsl:value-of select="./spec_assertion/@element_name"/>
+                              <br/>
+                            </xsl:when></xsl:choose>
+                          [URL]:
+                          <xsl:value-of select="./spec_url"/>
+                          <br/>
+                          [Statement]:
+                          <xsl:value-of select="./spec_statement"/>
+                          <br/>
+                        </xsl:for-each>
                       </td>
                     </tr>
                   </xsl:for-each>
         </div>
         <script type="text/javascript" src="application.js"/>
         <script language="javascript" type="text/javascript">
-                                       $(document).ready(function(){
-                                       goTopEx();
-                                       });
-                               </script>
+          $(document).ready(function(){
+            goTopEx();
+          });
+        </script>
       </body>
     </html>
   </xsl:template>
index 51747a724be4391ad6c603ceb3e00cb87030d9f1..c5199c077d6abd1af7ef6c50ffb7e8b2ad74bb86 100644 (file)
@@ -4,8 +4,8 @@
   <xsl:template match="/">
     <html>
       <STYLE type="text/css">
-                               @import "tests.css";
-                       </STYLE>
+        @import "tests.css";
+      </STYLE>
       <head>
         <script type="text/javascript" src="jquery.min.js"/>
       </head>
                   <xsl:choose>
                     <xsl:when test="test_definition/environment/@device_name">
                       <xsl:if test="test_definition/environment/@device_name = ''">
-                                                                                               N/A
-                                                                                       </xsl:if>
+                        N/A
+                      </xsl:if>
                       <xsl:value-of select="test_definition/environment/@device_name"/>
                     </xsl:when>
                     <xsl:otherwise>
-                                                                                       N/A
-                                                                               </xsl:otherwise>
+                      N/A
+                    </xsl:otherwise>
                   </xsl:choose>
                 </td>
               </tr>
                   <xsl:choose>
                     <xsl:when test="test_definition/environment/@device_model">
                       <xsl:if test="test_definition/environment/@device_model = ''">
-                                                                                               N/A
-                                                                                       </xsl:if>
+                        N/A
+                      </xsl:if>
                       <xsl:value-of select="test_definition/environment/@device_model"/>
                     </xsl:when>
                     <xsl:otherwise>
-                                                                                       N/A
-                                                                               </xsl:otherwise>
+                      N/A
+                    </xsl:otherwise>
                   </xsl:choose>
                 </td>
               </tr>
                   <xsl:choose>
                     <xsl:when test="test_definition/environment/@os_version">
                       <xsl:if test="test_definition/environment/@os_version = ''">
-                                                                                               N/A
-                                                                                       </xsl:if>
+                        N/A
+                      </xsl:if>
                       <xsl:value-of select="test_definition/environment/@os_version"/>
                     </xsl:when>
                     <xsl:otherwise>
-                                                                                       N/A
-                                                                               </xsl:otherwise>
+                      N/A
+                    </xsl:otherwise>
                   </xsl:choose>
                 </td>
               </tr>
                   <xsl:choose>
                     <xsl:when test="test_definition/environment/@device_id">
                       <xsl:if test="test_definition/environment/@device_id = ''">
-                                                                                               N/A
-                                                                                       </xsl:if>
+                        N/A
+                      </xsl:if>
                       <xsl:value-of select="test_definition/environment/@device_id"/>
                     </xsl:when>
                     <xsl:otherwise>
-                                                                                       N/A
-                                                                               </xsl:otherwise>
+                      N/A
+                    </xsl:otherwise>
                   </xsl:choose>
                 </td>
               </tr>
                   <xsl:choose>
                     <xsl:when test="test_definition/environment/@firmware_version">
                       <xsl:if test="test_definition/environment/@firmware_version = ''">
-                                                                                               N/A
-                                                                                       </xsl:if>
+                        N/A
+                      </xsl:if>
                       <xsl:value-of select="test_definition/environment/@firmware_version"/>
                     </xsl:when>
                     <xsl:otherwise>
-                                                                                       N/A
-                                                                               </xsl:otherwise>
+                      N/A
+                    </xsl:otherwise>
                   </xsl:choose>
                 </td>
               </tr>
                   <xsl:choose>
                     <xsl:when test="test_definition/environment/@build_id">
                       <xsl:if test="test_definition/environment/@build_id = ''">
-                                                                                               N/A
-                                                                                       </xsl:if>
+                        N/A
+                      </xsl:if>
                       <xsl:value-of select="test_definition/environment/@build_id"/>
                     </xsl:when>
                     <xsl:otherwise>
-                                                                                       N/A
-                                                                               </xsl:otherwise>
+                      N/A
+                    </xsl:otherwise>
                   </xsl:choose>
                 </td>
               </tr>
                   <xsl:choose>
                     <xsl:when test="test_definition/environment/@screen_size">
                       <xsl:if test="test_definition/environment/@screen_size = ''">
-                                                                                               N/A
-                                                                                       </xsl:if>
+                        N/A
+                      </xsl:if>
                       <xsl:value-of select="test_definition/environment/@screen_size"/>
                     </xsl:when>
                     <xsl:otherwise>
-                                                                                       N/A
-                                                                               </xsl:otherwise>
+                      N/A
+                    </xsl:otherwise>
                   </xsl:choose>
                 </td>
               </tr>
                   <xsl:choose>
                     <xsl:when test="test_definition/environment/@resolution">
                       <xsl:if test="test_definition/environment/@resolution = ''">
-                                                                                               N/A
-                                                                                       </xsl:if>
+                        N/A
+                      </xsl:if>
                       <xsl:value-of select="test_definition/environment/@resolution"/>
                     </xsl:when>
                     <xsl:otherwise>
-                                                                                       N/A
-                                                                               </xsl:otherwise>
+                      N/A
+                    </xsl:otherwise>
                   </xsl:choose>
                 </td>
               </tr>
                   <xsl:choose>
                     <xsl:when test="test_definition/environment/@host">
                       <xsl:if test="test_definition/environment/@host = ''">
-                                                                                               N/A
-                                                                                       </xsl:if>
+                        N/A
+                      </xsl:if>
                       <xsl:value-of select="test_definition/environment/@host"/>
                     </xsl:when>
                     <xsl:otherwise>
-                                                                                       N/A
-                                                                               </xsl:otherwise>
+                      N/A
+                    </xsl:otherwise>
                   </xsl:choose>
                 </td>
               </tr>
                   <xsl:choose>
                     <xsl:when test="test_definition/environment/@cts_version">
                       <xsl:if test="test_definition/environment/@cts_version = ''">
-                                                                                               N/A
-                                                                                       </xsl:if>
+                        N/A
+                      </xsl:if>
                       <xsl:value-of select="test_definition/environment/@cts_version"/>
                     </xsl:when>
                     <xsl:otherwise>
-                                                                                       N/A
-                                                                               </xsl:otherwise>
+                      N/A
+                    </xsl:otherwise>
                   </xsl:choose>
                 </td>
               </tr>
                 <td>Others</td>
                 <td>
                   <xsl:if test="test_definition/environment/other = ''">
-                                                                               N/A
-                                                                       </xsl:if>
+                    N/A
+                  </xsl:if>
                   <xsl:call-template name="br-replace">
                     <xsl:with-param name="word" select="test_definition/environment/other"/>
                   </xsl:call-template>
                   <td>
                     <a>
                       <xsl:attribute name="href">
-                                                                                      #<xsl:value-of select="@name"/>
-                                                                                   </xsl:attribute>
+                        #<xsl:value-of select="@name"/>
+                      </xsl:attribute>
                       <xsl:value-of select="@name"/>
                     </a>
                   </td>
                 <tr>
                   <td class="title">
                     <h1 align="center">
-                                                                                       Test Failures (
-                                                                                       <xsl:value-of select="count(test_definition/suite/set//testcase[@result = 'FAIL'])"/>
-                                                                                       )
-                                                                               </h1>
+                      Test Failures (
+                        <xsl:value-of select="count(test_definition/suite/set//testcase[@result = 'FAIL'])"/>
+                      )
+                    </h1>
                   </td>
                 </tr>
               </table>
                 <a href="#contents">Back to Contents</a>
               </div>
               <div id="suite_title">
-                                                               Test Suite:
-                                                               <xsl:value-of select="@name"/>
-                                                               <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-                                                       </div>
+                Test Suite:
+                <xsl:value-of select="@name"/>
+                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
+              </div>
               <table>
                 <tr>
                   <th>Case_ID</th>
                   <xsl:sort select="@name"/>
                   <tr>
                     <td colspan="4">
-                                                                                       Test Set:
-                                                                                       <xsl:value-of select="@name"/>
-                                                                               </td>
+                      Test Set:
+                      <xsl:value-of select="@name"/>
+                    </td>
                   </tr>
                   <xsl:for-each select=".//testcase">
                     <xsl:sort select="@id"/>
                             <td>
                               <xsl:value-of select=".//result_info/stdout"/>
                               <xsl:if test=".//result_info/stdout = ''">
-                                                                                                                               N/A
-                                                                                                                       </xsl:if>
+                                N/A
+                              </xsl:if>
                             </td>
                           </tr>
                         </xsl:if>
                 <a href="#contents">Back to Contents</a>
               </div>
               <div id="suite_title">
-                                                               Test Suite:
-                                                               <xsl:value-of select="@name"/>
-                                                               <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-                                                       </div>
+                Test Suite:
+                <xsl:value-of select="@name"/>
+                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
+              </div>
               <table>
                 <tr>
                   <th>Case_ID</th>
                   <xsl:sort select="@name"/>
                   <tr>
                     <td colspan="4">
-                                                                                       Test Set:
-                                                                                       <xsl:value-of select="@name"/>
-                                                                               </td>
+                      Test Set:
+                      <xsl:value-of select="@name"/>
+                    </td>
                   </tr>
                   <xsl:for-each select=".//testcase">
                     <xsl:sort select="@id"/>
                           </xsl:if>
                           <xsl:if test="@result = 'BLOCK' ">
                             <td>
-                                                                                                                       BLOCK
-                                                                                                               </td>
+                              BLOCK
+                            </td>
                           </xsl:if>
                           <xsl:if test="@result != 'BLOCK' and @result != 'FAIL' and @result != 'PASS' ">
                             <td>
-                                                                                                                       Not Run
-                                                                                                               </td>
+                              Not Run
+                            </td>
                           </xsl:if>
                         </xsl:when>
                         <xsl:otherwise>
                           <td>
-
-                                                                                                       </td>
+                          </td>
                         </xsl:otherwise>
                       </xsl:choose>
                       <td>
                         <xsl:value-of select=".//result_info/stdout"/>
                         <xsl:if test=".//result_info/stdout = ''">
-                                                                                                       N/A
-                                                                                               </xsl:if>
+                          N/A
+                        </xsl:if>
                       </td>
                     </tr>
                   </xsl:for-each>
         </div>
         <script type="text/javascript" src="application.js"/>
         <script language="javascript" type="text/javascript">
-                                       $(document).ready(function(){
-                                       goTopEx();
-                                       });
-                               </script>
+          $(document).ready(function(){
+            goTopEx();
+          });
+        </script>
       </body>
     </html>
   </xsl:template>
     <xsl:param name="word"/>
     <xsl:variable name="cr">
       <xsl:text>
-</xsl:text>
+      </xsl:text>
     </xsl:variable>
     <xsl:choose>
       <xsl:when test="contains($word,$cr)">