Author: [email protected]
Date: Thu Jun 25 12:17:22 2009
New Revision: 3101

Modified:
   trunk/src/xsltStylesheets/architect2html.xslt

Log:
Fix sorting of columns (now done numerically in order to get 2 before 12)

Modified: trunk/src/xsltStylesheets/architect2html.xslt
==============================================================================
--- trunk/src/xsltStylesheets/architect2html.xslt       (original)
+++ trunk/src/xsltStylesheets/architect2html.xslt       Thu Jun 25 12:17:22 2009
@@ -30,19 +30,19 @@
         padding:1em;
       }
       .tableNameHeading h1 {
-       display: inline;
+          display: inline;
         font-family: Segoe UI, Arial, sans-serif;
         font-size:125%;
         font-weight:bold;
       }
-               
-         .tableNameHeading h2 {
-               display: inline;
+
+      .tableNameHeading h2 {
+        display: inline;
         font-family: Segoe UI, Arial, sans-serif;
         font-size:115%;
         font-weight:normal;
       }
-       
+
       .tableComment {
         background-color:#e4efff; margin-bottom:20px;
       }
@@ -147,7 +147,7 @@
     <xsl:sort select="@name"/>
     <xsl:variable name="table" select="@name"/>
     <xsl:variable name="table-id" select="@id"/>
-       <xsl:variable name="physicalName" select="@physicalName"/>
+    <xsl:variable name="physicalName" select="@physicalName"/>
     <div class="tableNameHeading">
       <h1>
         <xsl:value-of select="$table"/>
@@ -174,7 +174,7 @@
         </tr>

         <xsl:for-each select="folder//column">
-          <xsl:sort select="@id"/>
+          <xsl:sort select="substring(@id, 4)" data-type="number"/>
           <xsl:variable name="col-id" select="@id"/>
           <tr valign="top">
             <td class="tdTableDefinition"><xsl:value-of select="@name"/>
@@ -300,6 +300,9 @@
     <xsl:when test="$type-id = 4">
       <xsl:text>INTEGER</xsl:text>
     </xsl:when>
+    <xsl:when test="$type-id = -5">
+      <xsl:text>BIGINT</xsl:text>
+    </xsl:when>
     <xsl:when test="$type-id = 5">
       <xsl:text>SMALLINT</xsl:text>
     </xsl:when>
@@ -354,7 +357,7 @@
       </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
-       <xsl:value-of select="$text"/>
+    <xsl:value-of select="$text"/>
    </xsl:otherwise>
    </xsl:choose>
 </xsl:template>

Reply via email to