Advertisement
Guest User

Untitled

a guest
Nov 8th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.78 KB | None | 0 0
  1.     <!--
  2. ====================================
  3. ====================================
  4.     TEMPLATE - Initiative TABLE + Misc
  5. ====================================
  6. ====================================-->
  7.     <xsl:template match="initiative">
  8.         <!-- BEGIN ini-base table -->
  9.         <fo:table table-layout="fixed">     <!--space-before="2pt"-->
  10.             <!-- 0.26 * $pagePrintableWidth - mm -->
  11.             <fo:table-column>
  12.                 <xsl:attribute name="column-width"><xsl:value-of select="0.49 * (0.26 * $pagePrintableWidth - 8)" />mm</xsl:attribute>
  13.             </fo:table-column>      <!--    1   -->
  14.             <fo:table-column column-width="2mm"/>       <!--    2   -->
  15.             <fo:table-column>
  16.                 <xsl:attribute name="column-width"><xsl:value-of select="0.17 * (0.26 * $pagePrintableWidth - 8)" />mm</xsl:attribute>
  17.             </fo:table-column>      <!--    3   -->
  18.             <fo:table-column column-width="2mm"/>       <!--    4   -->
  19.             <fo:table-column>
  20.                 <xsl:attribute name="column-width"><xsl:value-of select="0.17 * (0.26 * $pagePrintableWidth - 8)" />mm</xsl:attribute>
  21.             </fo:table-column>      <!--    5   -->
  22.             <fo:table-column column-width="2mm"/>       <!--    6   -->
  23.             <fo:table-column>
  24.                 <xsl:attribute name="column-width"><xsl:value-of select="0.17 * (0.26 * $pagePrintableWidth - 8)" />mm</xsl:attribute>
  25.             </fo:table-column>      <!--    7   -->
  26.             <fo:table-column column-width="4mm"/>       <!--    8   -->
  27.             <fo:table-column>
  28.                 <xsl:attribute name="column-width"><xsl:value-of select="0.08 * (0.71 * $pagePrintableWidth - 69)" />mm</xsl:attribute>
  29.             </fo:table-column>      <!--    9   -->
  30.             <!-- miss chance -->
  31.             <fo:table-column column-width="2mm"/>       <!--    10  -->
  32.             <!-- space -->
  33.             <fo:table-column>
  34.                 <xsl:attribute name="column-width"><xsl:value-of select="0.08 * (0.71 * $pagePrintableWidth - 69)" />mm</xsl:attribute>
  35.             </fo:table-column>      <!--    11  -->
  36.             <!-- arcane spell failure -->
  37.             <fo:table-column column-width="2mm"/>       <!--    12  -->
  38.             <!-- space -->
  39.             <fo:table-column>
  40.                 <xsl:attribute name="column-width"><xsl:value-of select="0.08 * (0.71 * $pagePrintableWidth - 69)" />mm</xsl:attribute>
  41.             </fo:table-column>      <!--    13  -->
  42.             <!-- armour check-->
  43.             <fo:table-column column-width="2mm"/>       <!--    14  -->
  44.             <!-- space -->
  45.             <fo:table-column>
  46.                 <xsl:attribute name="column-width"><xsl:value-of select="0.08 * (0.71 * $pagePrintableWidth - 69)" />mm</xsl:attribute>
  47.             </fo:table-column>      <!--    15  -->
  48.             <!-- SR -->
  49.             <fo:table-column column-width="2mm"/>       <!--    16  -->
  50.             <!-- space -->
  51.             <fo:table-column>
  52.                 <xsl:attribute name="column-width"><xsl:value-of select="0.08 * (0.71 * $pagePrintableWidth - 69)" />mm</xsl:attribute>
  53.             </fo:table-column>      <!--    17  -->
  54.             <!-- hero points -->
  55.             <fo:table-body>
  56.                 <fo:table-row height="2pt">
  57.                                             <xsl:message>Test</xsl:message>
  58.                     <fo:table-cell/>
  59.                 </fo:table-row>
  60.                 <fo:table-row>
  61.                                             <xsl:message>Test</xsl:message>
  62.                     <fo:table-cell>
  63.                         <xsl:call-template name="attrib">
  64.                             <xsl:with-param name="attribute" select="'initiative.title'"/>
  65.                         </xsl:call-template>
  66.                         <fo:block line-height="10pt" font-weight="bold" font-size="10pt" space-before="1pt">INITIATIVE</fo:block>
  67.                         <fo:block line-height="4pt" font-size="4pt">modifier</fo:block>
  68.                     </fo:table-cell>        <!--    1   -->
  69.                     <fo:table-cell/>        <!--    2   -->
  70.                     <fo:table-cell>
  71.                         <xsl:call-template name="attrib">
  72.                             <xsl:with-param name="attribute" select="'initiative.total'"/>
  73.                         </xsl:call-template>
  74.                         <fo:block space-before.optimum="2pt" font-size="10pt">
  75.                             <xsl:value-of select="total"/>
  76.                         </fo:block>
  77.                     </fo:table-cell>        <!--    3   -->
  78.                     <fo:table-cell>
  79.                         <fo:block text-align="center" space-before.optimum="5pt" font-size="6pt">=</fo:block>
  80.                     </fo:table-cell>        <!--    4   -->
  81.                     <fo:table-cell>
  82.                         <xsl:call-template name="attrib">
  83.                             <xsl:with-param name="attribute" select="'initiative.general'"/>
  84.                         </xsl:call-template>
  85.                         <fo:block space-before.optimum="2pt" font-size="10pt">
  86.                             <xsl:value-of select="dex_mod"/>
  87.                         </fo:block>
  88.                     </fo:table-cell>        <!--    5   -->
  89.                     <fo:table-cell>
  90.                         <fo:block text-align="center" space-before.optimum="5pt" font-size="6pt">+</fo:block>
  91.                     </fo:table-cell>        <!--    6   -->
  92.                     <fo:table-cell>
  93.                         <xsl:call-template name="attrib">
  94.                             <xsl:with-param name="attribute" select="'initiative.general'"/>
  95.                         </xsl:call-template>
  96.                         <fo:block space-before.optimum="2pt" font-size="10pt">
  97.                             <xsl:value-of select="misc_mod"/>
  98.                         </fo:block>
  99.                     </fo:table-cell>        <!--    7   -->
  100.                     <fo:table-cell/>        <!--    8   -->
  101.                     <fo:table-cell display-align="center">
  102.                         <xsl:call-template name="attrib">
  103.                             <xsl:with-param name="attribute" select="'miss_chance'"/>
  104.                         </xsl:call-template>
  105.                         <fo:block font-size="10pt">
  106.                             <!-- Miss chance -->
  107.                         </fo:block>
  108.                     </fo:table-cell>        <!--    9   -->
  109.                     <fo:table-cell/>        <!--    10  -->
  110.                     <fo:table-cell display-align="center">
  111.                         <xsl:call-template name="attrib">
  112.                             <xsl:with-param name="attribute" select="'spell_failure'"/>
  113.                         </xsl:call-template>
  114.                         <fo:block font-size="10pt">
  115.                             <xsl:value-of select="spell_failure"/>
  116.                         </fo:block>
  117.                     </fo:table-cell>        <!--    11  -->
  118.                     <fo:table-cell/>        <!--    12  -->
  119.                     <fo:table-cell display-align="center">
  120.                         <xsl:call-template name="attrib">
  121.                             <xsl:with-param name="attribute" select="'ac_check'"/>
  122.                         </xsl:call-template>
  123.                         <fo:block font-size="10pt">
  124.                             <xsl:value-of select="check_penalty"/>
  125.                         </fo:block>
  126.                     </fo:table-cell>        <!--    13  -->
  127.                     <fo:table-cell/>        <!--    14  -->
  128.                     <fo:table-cell display-align="center">
  129.                         <xsl:call-template name="attrib">
  130.                             <xsl:with-param name="attribute" select="'spell_resistance'"/>
  131.                         </xsl:call-template>
  132.                         <fo:block font-size="10pt">
  133.                             <xsl:value-of select="spell_resistance"/>
  134.                         </fo:block>
  135.                     </fo:table-cell>        <!--    15  -->
  136.                     <fo:table-cell/>        <!--    16  -->
  137.                     <fo:table-cell display-align="center">
  138.                         <xsl:call-template name="attrib">
  139.                             <xsl:with-param name="attribute" select="'hero_points'"/>
  140.                         </xsl:call-template>
  141.                         <fo:block font-size="10pt">
  142.                             <xsl:value-of select="hero_points"/>
  143.                         </fo:block>
  144.                     </fo:table-cell>        <!--    17  -->
  145.                 </fo:table-row>
  146. <!--                <fo:table-row height="0.5pt"/>  -->
  147.                 <fo:table-row>
  148.                                             <xsl:message>Test</xsl:message>
  149.                     <fo:table-cell/>        <!--    1   -->
  150.                     <fo:table-cell/>        <!--    2   -->
  151.                     <fo:table-cell>
  152.                         <fo:block text-align="center" space-before.optimum="1pt" font-size="6pt">TOTAL</fo:block>
  153.                     </fo:table-cell>        <!--    3   -->
  154.                     <fo:table-cell/>        <!--    4   -->
  155.                     <fo:table-cell>
  156.                         <fo:block text-align="center" font-size="4pt">DEX MODIFIER</fo:block>
  157.                     </fo:table-cell>        <!--    5   -->
  158.                     <fo:table-cell/>        <!--    6   -->
  159.                     <fo:table-cell>
  160.                         <fo:block text-align="center" font-size="4pt">MISC MODIFIER</fo:block>
  161.                     </fo:table-cell>        <!--    7   -->
  162.                     <!-- New Stuff  -->
  163.                     <fo:table-cell/>        <!--    8   -->
  164.                     <fo:table-cell>
  165.                         <fo:block text-align="center" font-size="4pt">MISS CHANCE</fo:block>
  166.                     </fo:table-cell>        <!--    9   -->
  167.                     <fo:table-cell/>        <!--    10  -->
  168.                     <fo:table-cell>
  169.                         <fo:block text-align="center" font-size="4pt">Arcane Spell Failure</fo:block>
  170.                     </fo:table-cell>        <!--    11  -->
  171.                     <fo:table-cell/>        <!--    12  -->
  172.                     <fo:table-cell>
  173.                         <fo:block text-align="center" font-size="4pt">ARMOR CHECK PENALTY</fo:block>
  174.                     </fo:table-cell>        <!--    13  -->
  175.                     <fo:table-cell/>        <!--    14  -->
  176.                     <fo:table-cell>
  177.                         <fo:block text-align="center" font-size="4pt">SPELL RESIST</fo:block>
  178.                     </fo:table-cell>        <!--    15  -->
  179.                     <fo:table-cell/>        <!--    16  -->
  180.                     <fo:table-cell>
  181.                         <fo:block text-align="center" font-size="4pt">HERO POINTS</fo:block>
  182.                     </fo:table-cell>        <!--    17  -->
  183.                 </fo:table-row>
  184.             </fo:table-body>
  185.         </fo:table>
  186.         <!-- END ini-base table -->
  187.     </xsl:template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement