From: <ama...@us...> - 2009-10-02 22:26:49
|
Revision: 10666 http://pcgen.svn.sourceforge.net/pcgen/?rev=10666&view=rev Author: amaitland Date: 2009-10-02 22:26:34 +0000 (Fri, 02 Oct 2009) Log Message: ----------- Display Talents for Modern Added Paths: ----------- Trunk/pcgen/outputsheets/d20/modern/pdf/csheet_modern_std_new.xslt Added: Trunk/pcgen/outputsheets/d20/modern/pdf/csheet_modern_std_new.xslt =================================================================== --- Trunk/pcgen/outputsheets/d20/modern/pdf/csheet_modern_std_new.xslt (rev 0) +++ Trunk/pcgen/outputsheets/d20/modern/pdf/csheet_modern_std_new.xslt 2009-10-02 22:26:34 UTC (rev 10666) @@ -0,0 +1,4592 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- $Id: csheet_modern_std.xslt 8610 2008-12-15 16:55:16Z karianna $ --> + +<!-- Removed Domains and prohibited schools, as they do not exist in Modern gameMode - Frank Kliewe + 2006/02/28 implemented FREQ [ 1411525 ] [MSRD] display offhand penalties for ranged weap - Frank Kliewe + --> + +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <xsl:output indent="yes"/> + + <xsl:attribute-set name="border"> + <xsl:attribute name="border-width">0.5pt</xsl:attribute> + <xsl:attribute name="border-style">solid</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="centre"> + <xsl:attribute name="text-align">center</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="border.temp"> + <xsl:attribute name="border-top-width">2pt</xsl:attribute> + <xsl:attribute name="border-left-width">2pt</xsl:attribute> + <xsl:attribute name="border-right-width">2pt</xsl:attribute> + <xsl:attribute name="border-bottom-width">2pt</xsl:attribute> + <xsl:attribute name="border-style">solid</xsl:attribute> + <xsl:attribute name="border-color">lightgrey</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="bio"> + <xsl:attribute name="display-align">after</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="bio.title"> + <xsl:attribute name="color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="border-top-color">black</xsl:attribute> + <xsl:attribute name="border-top-width">0.5pt</xsl:attribute> + <xsl:attribute name="border-top-style">solid</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="picture" use-attribute-sets="border"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="stat.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="stat.score" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="stat.modifier" use-attribute-sets="stat.score" /> + + <xsl:attribute-set name="hp.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="hp.total" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="hp.current" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="hp.subdual" use-attribute-sets="hp.current" /> + + <xsl:attribute-set name="damage.reduction" use-attribute-sets="hp.current" /> + + <xsl:attribute-set name="speed" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="ac.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="ac.total" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="ac.flatfooted" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="ac.touch" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="ac" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="miss_chance" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="spell_failure" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="ac_check" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="spell_resistance" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + + <xsl:attribute-set name="initiative.title" use-attribute-sets="border centre"> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="initiative.total" use-attribute-sets="border centre"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="initiative.general" use-attribute-sets="border centre"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + + <xsl:attribute-set name="bab.title" use-attribute-sets="border centre"> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="bab.total" use-attribute-sets="border centre"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="skills.header" use-attribute-sets="border centre"> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="skills.darkline"> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="skills.lightline"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="skills.darkline.total"> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="skills.lightline.total"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="skills.footer"> + <xsl:attribute name="border-bottom-color">black</xsl:attribute> + <xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute> + <xsl:attribute name="border-bottom-style">solid</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="saves.title" use-attribute-sets="border centre"> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="saves.total" use-attribute-sets="border centre"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="saves" use-attribute-sets="border centre"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + +<xsl:attribute-set name="tohit.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="tohit.total" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + + +<xsl:attribute-set name="tohit" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + + + +<xsl:attribute-set name="weapon.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="weapon" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="weapon.hilight" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="protection.title" use-attribute-sets="border centre"> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="protection" use-attribute-sets="border centre"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="protection.darkline" use-attribute-sets="centre"> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="protection.lightline" use-attribute-sets="centre"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="domains.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="domains.lightline" use-attribute-sets="border"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="domains.darkline" use-attribute-sets="border"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + + +<xsl:attribute-set name="proficiencies.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="proficiencies" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="languages.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="languages" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + + +<xsl:attribute-set name="templates.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="templates.lightline" use-attribute-sets="border"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="templates.darkline" use-attribute-sets="border"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="companions.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="companions" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="equipment.title" use-attribute-sets="centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="equipment.lightline" use-attribute-sets="border"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="equipment.darkline" use-attribute-sets="border"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="weight.title" use-attribute-sets="centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="weight" use-attribute-sets="border"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="weight.solid" use-attribute-sets="border"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="money.title" use-attribute-sets="centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="money.lightline"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="money.darkline"> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + + +<xsl:attribute-set name="magic.title" use-attribute-sets="centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="magic.lightline"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="magic.darkline"> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + + + +<xsl:attribute-set name="special_abilities.title" use-attribute-sets="centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="special_abilities.lightline"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="special_abilities.darkline"> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<!-- Insert for Special Attacks, Special Qualities and Talents +--> + +<xsl:attribute-set name="special_attacks.title" use-attribute-sets="centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="special_attacks.lightline"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="special_attacks.darkline"> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="special_qualities.title" use-attribute-sets="centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="special_qualities.lightline"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="special_qualities.darkline"> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="talents.title" use-attribute-sets="centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="talents.lightline"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="talents.darkline"> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<!-- Unknown if we need this in Modern, Fantasy and Modern have different set up + +<xsl:apply-templates select="special_attacks"/> + <xsl:apply-templates select="special_qualities"/> + <xsl:apply-templates select="talents"/> +--> + +<xsl:attribute-set name="feats.title" use-attribute-sets="centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="feats.lightline"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="feats.darkline"> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + + + + <xsl:attribute-set name="spelllist.known.header" use-attribute-sets="border"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + <xsl:attribute-set name="spelllist.known.known" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + <xsl:attribute-set name="spelllist.known.perday" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + + <xsl:attribute-set name="spelllist.header" use-attribute-sets="centre"> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + </xsl:attribute-set> + <xsl:attribute-set name="spelllist.footer" use-attribute-sets="centre"> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + </xsl:attribute-set> + <xsl:attribute-set name="spelllist.levelheader" use-attribute-sets="centre"> + <xsl:attribute name="background-color">darkgrey</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + <xsl:attribute name="border-color">black</xsl:attribute> + </xsl:attribute-set> + <xsl:attribute-set name="spelllist.darkline"> + <xsl:attribute name="background-color">lightgrey</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + <xsl:attribute-set name="spelllist.lightline"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="spells.memorized.header" use-attribute-sets="centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> + </xsl:attribute-set> + <xsl:attribute-set name="spells.memorized.level" use-attribute-sets="centre"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + <xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute> + <xsl:attribute name="border-bottom-color">black</xsl:attribute> + <xsl:attribute name="border-bottom-style">solid</xsl:attribute> + </xsl:attribute-set> + <xsl:attribute-set name="spells.memorized"> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + +<xsl:attribute-set name="reputation.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="reputation" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="occupation.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="occupation" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="allegiances.title" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">black</xsl:attribute> + <xsl:attribute name="color">white</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="allegiances" use-attribute-sets="border centre"> + <xsl:attribute name="border-color">black</xsl:attribute> + <xsl:attribute name="background-color">white</xsl:attribute> + <xsl:attribute name="color">black</xsl:attribute> +</xsl:attribute-set> + + + + <xsl:template match="character"> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <!-- PAGE DEFINITIONS --> + <fo:layout-master-set> + <fo:simple-page-master master-name="Portrait 2 Column" + page-height="297mm" + page-width="210mm" + margin-top="10mm" + margin-bottom="15mm" + margin-left="6mm" + margin-right="6mm"> + <fo:region-body region-name="body" column-count="2" column-gap="2mm" margin-bottom="7mm"/> + <fo:region-after region-name="footer" extent="0.25in"/> + </fo:simple-page-master> + + <fo:simple-page-master master-name="Portrait" + page-height="297mm" + page-width="210mm" + margin-top="10mm" + margin-bottom="15mm" + margin-left="6mm" + margin-right="6mm"> + <fo:region-body region-name="body" margin-bottom="7mm"/> + <fo:region-after region-name="footer" extent="0.25in"/> + </fo:simple-page-master> + + </fo:layout-master-set> + + + + <fo:page-sequence master-reference="Portrait"> + <xsl:call-template name="page.footer" /> + + <!-- CHARACTER BODY STARTS HERE !!! --> + <fo:flow flow-name="body"> + <!-- CHARACTER HEADER --> + <fo:block span="all" space-after.optimum="3pt"> + <xsl:apply-templates select="basics"/> + </fo:block> + <fo:block span="all"> + <fo:table table-layout="fixed"> + <fo:table-column column-width="52mm"/> + <fo:table-column column-width="52mm"/> + <fo:table-column column-width="86mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell number-rows-spanned="2"> + <xsl:apply-templates select="abilities" /> + </fo:table-cell> + <fo:table-cell number-columns-spanned="2"> + <xsl:apply-templates select="." mode="hp_table"/> + <xsl:apply-templates select="armor_class"/> + </fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell> + <xsl:apply-templates select="initiative" /> + <xsl:apply-templates select="basics/bab" mode="bab" /> + </fo:table-cell> + <fo:table-cell number-rows-spanned="2"> + <xsl:apply-templates select="skills"> + <xsl:with-param name="first_skill" select="0"/> + <xsl:with-param name="last_skill" select="55"/> + <xsl:with-param name="column_width" select="'narrow'"/> + </xsl:apply-templates> + </fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell number-columns-spanned="2"> + <fo:table table-layout="fixed"> + <fo:table-column column-width="70mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="30mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell> + <xsl:apply-templates select="saving_throws" /> + </fo:table-cell> + <fo:table-cell /> + <fo:table-cell> + <xsl:call-template name="reputation" /> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <xsl:apply-templates select="attack" mode="ranged_melee" /> + <xsl:apply-templates select="weapons/unarmed" /> + <xsl:apply-templates select="weapons"> + <xsl:with-param name="first_weapon" select="1"/> + <xsl:with-param name="last_weapon" select="3"/> + <xsl:with-param name="column_width" select="'wide'"/> + </xsl:apply-templates> + <xsl:apply-templates select="protection/armor[1]"/> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + </fo:block> + </fo:flow> + </fo:page-sequence> + + + <fo:page-sequence master-reference="Portrait 2 Column"> + <xsl:call-template name="page.footer" /> + <fo:flow flow-name="body"> + <fo:block> + <xsl:apply-templates select="weapons"> + <xsl:with-param name="first_weapon" select="4"/> + <xsl:with-param name="last_weapon" select="9999"/> + <xsl:with-param name="column_width" select="'narrow'"/> + </xsl:apply-templates> + <xsl:apply-templates select="skills"> + <xsl:with-param name="first_skill" select="56"/> + <xsl:with-param name="last_skill" select="9999"/> + <xsl:with-param name="column_width" select="'wide'"/> + </xsl:apply-templates> + <xsl:apply-templates select="equipment" /> + <xsl:apply-templates select="weight_allowance" /> + <xsl:call-template name="money" /> + <xsl:apply-templates select="misc/magics" /> + <xsl:apply-templates select="special_abilities" /> + <xsl:apply-templates select="special_attacks" /> + <xsl:apply-templates select="special_qualities" /> + <xsl:apply-templates select="talents" /> + <xsl:apply-templates select="feats" /> + <xsl:apply-templates select="feats/feat[contains(., 'OCCUPATION')]" mode="starting_occupation" /> + <xsl:apply-templates select="weapon_proficiencies" /> + <xsl:apply-templates select="languages" /> + <xsl:call-template name="allegiances" /> + <xsl:apply-templates select="templates" /> + <xsl:apply-templates select="companions" /> + </fo:block> + </fo:flow> + </fo:page-sequence> + + <xsl:apply-templates select="spells" /> + <xsl:apply-templates select="basics" mode="bio" /> + <xsl:apply-templates select="basics/notes" mode="bio" /> + + </fo:root> + </xsl:template> + + + + <!-- +==================================== +==================================== + TEMPLATE - PAGE FOOTER +==================================== +====================================--> + <xsl:template name="page.footer"> + <fo:static-content flow-name="footer" font-family="sans-serif"> + <fo:table table-layout="fixed"> + <fo:table-column column-width="1.875in"/> + <fo:table-column column-width="3.75in"/> + <fo:table-column column-width="1.875in"/> + <fo:table-body> + <fo:table-row keep-with-next="always" keep-together="always"> + <fo:table-cell text-align="start" border-top-color="black" border-top-style="solid" border-top-width="0.1pt" background-color="white" padding-top="2pt"> + <fo:block font-size="5pt"> + <xsl:value-of select="export/date" /> + <xsl:text> </xsl:text> + <xsl:value-of select="export/time" /> + </fo:block> + <fo:block font-size="5pt" font-weight="bold">Created using PCGen <xsl:value-of select="export/version"/></fo:block> + </fo:table-cell> + <fo:table-cell text-align="center" wrap-option="no-wrap" border-top-color="black" border-top-style="solid" border-top-width="0.1pt" background-color="white" padding-top="2pt"> + <fo:block text-align="center" font-size="5pt">PCGen Character Template by Frugal, based on work by ROG, Arcady, Barak & Dimrill.</fo:block> + <fo:block text-align="center" font-size="5pt">For suggestions please post to pc...@ya... with "OS Suggestion" in the subject line.</fo:block> + </fo:table-cell> + <fo:table-cell text-align="end" border-top-color="black" border-top-style="solid" border-top-width="0.1pt" background-color="white" padding-top="2pt"> + <fo:block font-size="7pt">Page <fo:page-number/></fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + </fo:static-content> + </xsl:template> + + <!-- +==================================== +==================================== + TEMPLATE - CHARACTER HEADER +==================================== +====================================--> + <xsl:template match="basics"> + <!-- Character Header --> + <fo:table table-layout="fixed" width="190mm"> + <xsl:choose> + <xsl:when test="string-length(portrait) > 0"> + <fo:table-column column-width="22mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="22mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="22mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="22mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="22mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="22mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="22mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="22mm"/> + </xsl:when> + <xsl:otherwise> + <fo:table-column column-width="27mm"/> <!-- Class --> + <fo:table-column column-width="2mm"/> <!-- --> + <fo:table-column column-width="25mm"/> <!-- Experience --> + <fo:table-column column-width="2mm"/> <!-- --> + <fo:table-column column-width="25mm"/> <!-- Race --> + <fo:table-column column-width="2mm"/> <!-- --> + <fo:table-column column-width="25mm"/> <!-- Size --> + <fo:table-column column-width="2mm"/> <!-- --> + <fo:table-column column-width="25mm"/> <!-- Height --> + <fo:table-column column-width="2mm"/> <!-- --> + <fo:table-column column-width="24mm"/> <!-- Weight --> + <fo:table-column column-width="2mm"/> <!-- --> + <fo:table-column column-width="27mm"/> <!-- Vision --> + </xsl:otherwise> + </xsl:choose> + <fo:table-body> + <fo:table-row> + <fo:table-cell number-columns-spanned="5" xsl:use-attribute-sets="bio"> + <fo:block font-size="10pt"> + <xsl:value-of select="name" /> + <xsl:if test="string-length(followerof) > 0"> - <xsl:value-of select="followerof" /></xsl:if> + </fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell number-columns-spanned="5" xsl:use-attribute-sets="bio"> + <fo:block font-size="10pt"><xsl:value-of select="playername"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="poolpoints/cost"/></fo:block> + </fo:table-cell> + + <xsl:if test="string-length(portrait) > 0" > + <fo:table-cell/> + <fo:table-cell number-rows-spanned="6" xsl:use-attribute-sets="picture"> + <fo:block> + <xsl:variable name="portrait_file" select="portrait" /> + <fo:external-graphic src="file:{$portrait_file}" width="22mm"/> + </fo:block> + </fo:table-cell> + </xsl:if> + </fo:table-row> + <fo:table-row> + <fo:table-cell number-columns-spanned="5" xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">NAME</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell number-columns-spanned="5" xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">PLAYERNAME</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">POINTS</fo:block> + </fo:table-cell> + </fo:table-row> + + + + <fo:table-row> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="classes/shortform"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="experience/current"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="race"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="size/long"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="height/feet"/>'<xsl:value-of select="height/inches"/>"</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="weight/weight_unit"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="vision/all"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + </fo:table-row> + <fo:table-row> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">CLASS</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">EXPERIENCE</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">RACE</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">SIZE</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">HEIGHT</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">WEIGHT</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">VISION</fo:block> + </fo:table-cell> + <fo:table-cell/> + </fo:table-row> + + + + + <fo:table-row> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"> + <xsl:value-of select="classes/levels_total"/> + <xsl:if test="classes/levels_total != classes/levels_ecl">/<xsl:value-of select="classes/levels_ecl"/></xsl:if> + </fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="experience/next_level"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="age"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="gender/long"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="eyes/color"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio" number-columns-spanned="3"> + <fo:block font-size="8pt" padding-top="3pt"><xsl:value-of select="hair/color"/>, <xsl:value-of select="hair/length"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + </fo:table-row> + <fo:table-row> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt"> + <xsl:if test="classes/levels_total != classes/levels_ecl"> + <xsl:text>ECL / </xsl:text> + </xsl:if> + <xsl:text>TCL</xsl:text> + </fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">NEXT LEVEL</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">AGE</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">GENDER</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title"> + <fo:block font-size="6pt" padding-top="1pt">EYES</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="bio.title" number-columns-spanned="3"> + <fo:block font-size="6pt" padding-top="1pt">HAIR</fo:block> + </fo:table-cell> + <fo:table-cell/> + </fo:table-row> + + </fo:table-body> + </fo:table> + </xsl:template> + + <!-- +==================================== +==================================== + TEMPLATE - GENERIC OUTPUT-FOR-LOOP +==================================== +====================================--> + <xsl:template name="for.loop"> + <xsl:param name="i" select="1"/> + <xsl:param name="count" select="0"/> + <xsl:param name="display" select="'❏'"/> + <!-- '❏' is the Unicode symbol for a 'box' --> + <xsl:if test="$i <= $count"> + <!-- Show this box --> + <xsl:value-of select="$display"/> + <xsl:if test="$i mod 5 = 0"> + <xsl:text> </xsl:text> + </xsl:if> + <!-- Show all of the remaining boxes --> + <xsl:call-template name="for.loop"> + <xsl:with-param name="i" select="$i + 1"/> + <xsl:with-param name="display" select="$display"/> + <xsl:with-param name="count" select="$count"/> + </xsl:call-template> + </xsl:if> + </xsl:template> + + + <!-- +==================================== +==================================== + TEMPLATE - GENERIC OUTPUT-FOR-LOOP (inverted) +==================================== +====================================--> + <xsl:template name="for.loop.inverted"> + <xsl:param name="i" select="1"/> + <xsl:param name="count" select="0"/> + <xsl:param name="display" select="'●'"/> + <!-- '❏' is the Unicode symbol for a 'circle' --> + <xsl:if test="$i <= $count"> + <!-- Show this box --> + <xsl:value-of select="$display"/> + <xsl:if test="$i mod 5 = 0"> + <xsl:text> </xsl:text> + </xsl:if> + <!-- Show all of the remaining boxes --> + <xsl:call-template name="for.loop"> + <xsl:with-param name="i" select="$i + 1"/> + <xsl:with-param name="display" select="$display"/> + <xsl:with-param name="count" select="$count"/> + </xsl:call-template> + </xsl:if> + </xsl:template> +<!-- +==================================== +==================================== + TEMPLATE - GENERIC OUTPUT Cumulative total +==================================== +====================================--> + <xsl:template name="Total"> + <xsl:param name="Items"/> + <xsl:param name="RunningTotal"/> + + <xsl:choose> + <xsl:when test="not($Items)"> + <!-- No more Items so return Running Total --> + <xsl:copy-of select="$RunningTotal"/> + </xsl:when> + + <xsl:otherwise> + <!-- Call template for remaining Items --> + <xsl:variable name="CurrentTotal" select="$RunningTotal + ($Items[1]/quantity * $Items[1]/cost)"/> + <xsl:call-template name="Total"> + <xsl:with-param name="Items" select="$Items[position()>1]"/> + <xsl:with-param name="RunningTotal" select="$CurrentTotal"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + + +<!-- +==================================== +==================================== + TEMPLATE - GENERIC Process +==================================== +====================================--> + <xsl:template name="process.attack.string"> + <xsl:param name="bab"/> + <xsl:param name="string" select="''"/> + + <xsl:choose> + <xsl:when test="starts-with($bab, '+')"> + <xsl:call-template name="process.attack.string"> + <xsl:with-param name="bab" select="substring($bab, 2)"/> + <xsl:with-param name="string" select="$string"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:choose> + <xsl:when test="$bab > 5"> + <xsl:call-template name="process.attack.string"> + <xsl:with-param name="bab" select="$bab - 5"/> + <xsl:with-param name="string"> + <xsl:value-of select="$string"/>+<xsl:value-of select="$bab"/>/</xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$string"/>+<xsl:value-of select="$bab"/> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + +<!-- +==================================== +==================================== + TEMPLATE - ABILITY BLOCK +==================================== +====================================--> + <xsl:template match="abilities"> + <!-- BEGIN Ability Block --> + <fo:table table-layout="fixed"> + <fo:table-column column-width="13mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="7mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="7mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="7mm"/> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="7mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell> + <fo:block text-align="center" space-before.optimum="4.5pt" font-size="4pt">ABILITY NAME</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell> + <fo:block text-align="center" font-size="4pt">ABILITY SCORE</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell> + <fo:block text-align="center" font-size="4pt">ABILITY MODIFIER</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell> + <fo:block text-align="center" font-size="4pt">TEMP SCORE</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell> + <fo:block text-align="center" font-size="4pt">TEMP MODIFIER</fo:block> + </fo:table-cell> + </fo:table-row> + <xsl:for-each select="ability"> + <fo:table-row> + <fo:table-cell xsl:use-attribute-sets="stat.title"> + <fo:block line-height="10pt" font-weight="bold" font-size="10pt" space-before="1pt"> + <xsl:value-of select="name/short"/> + </fo:block> + <fo:block line-height="4pt" font-size="4pt"> + <xsl:value-of select="name/long"/> + </fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="stat.score"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="score"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="stat.modifier"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="modifier"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell height="4pt" xsl:use-attribute-sets="border.temp"/> + <fo:table-cell/> + <fo:table-cell height="4pt" xsl:use-attribute-sets="border.temp"/> + </fo:table-row> + <fo:table-row height="2pt"/> + </xsl:for-each> + </fo:table-body> + </fo:table> + <!-- END Ability Block --> + </xsl:template> + + + + +<!-- +==================================== +==================================== + TEMPLATE - HP TABLE +==================================== +====================================--> + <xsl:template match="character" mode="hp_table"> + <fo:table table-layout="fixed"> + <fo:table-column column-width="13mm"/> <!-- title --> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="8mm"/> <!-- total --> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="23.5mm"/> <!-- Current --> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="23.5mm"/> <!-- subdual --> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="15mm"/> <!-- DT --> + <fo:table-column column-width="2mm"/> + <fo:table-column column-width="15mm"/> <!-- DR --> + <fo:table-column column-width="3mm"/> + <fo:table-column column-width="27mm"/> <!-- SPEED --> + <fo:table-body> + <fo:table-row> + <fo:table-cell/> + <fo:table-cell/> + <fo:table-cell display-align="after"> + <fo:block text-align="center" font-size="6pt"/> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell display-align="after"> + <fo:block text-align="center" font-size="4pt">WOUNDS/CURRENT HP</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell display-align="after"> + <fo:block text-align="center" font-size="4pt">SUBDUAL DAMAGE</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell display-align="after"> + <fo:block text-align="center" font-size="4pt">DAMAGE THRESHOLD</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell display-align="after"> + <fo:block text-align="center" font-size="4pt">DAMAGE REDUCTION</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell display-align="after"> + <fo:block text-align="center" font-size="4pt">SPEED</fo:block> + </fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell xsl:use-attribute-sets="hp.title"> + <fo:block line-height="10pt" font-weight="bold" font-size="10pt" space-before="1pt">HP</fo:block> + <fo:block line-height="4pt" font-size="4pt">hit points</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="hp.total"> + <fo:block space-before.optimum="2pt" font-size="10pt"> + <xsl:value-of select="hit_points/points"/> + </fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="hp.current"> + <fo:block space-before.optimum="2pt" font-size="10pt"></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="hp.subdual"> + <fo:block space-before.optimum="2pt" font-size="10pt"></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="damage.reduction"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="hit_points/damage_threshold"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="damage.reduction"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="hit_points/damage_reduction"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="speed" display-align="center" > + <fo:block font-size="8pt"><xsl:value-of select="basics/move/all"/></fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <!-- END HP-AC Table --> + </xsl:template> + + + + + + + + + +<!-- +==================================== +==================================== + TEMPLATE - HP and AC TABLE +==================================== +====================================--> + <xsl:template match="armor_class"> + <fo:table table-layout="fixed" space-before="2pt"> + <fo:table-column column-width="13mm"/> <!-- hp --> + <fo:table-column column-width="2mm"/><!-- space --> + <fo:table-column column-width="8mm"/><!-- total ac --> + <fo:table-column column-width="2mm"/><!-- : --> + <fo:table-column column-width="8mm"/><!-- flat --> + <fo:table-column column-width="2mm"/><!-- : --> + <fo:table-column column-width="8mm"/><!-- touch --> + <fo:table-column column-width="2mm"/><!-- = --> + <fo:table-column column-width="7mm"/><!-- base --> + <fo:table-column column-width="2mm"/><!-- + --> + <fo:table-column column-width="7mm"/><!--armour --> + <fo:table-column column-width="2mm"/><!-- + --> + <fo:table-column column-width="7mm"/><!-- stat --> + <fo:table-column column-width="2mm"/><!-- + --> + <fo:table-column column-width="7mm"/><!-- size --> + <fo:table-column column-width="2mm"/><!-- + --> + <fo:table-column column-width="7mm"/><!-- natural armour--> + <fo:table-column column-width="2mm"/><!-- + --> + <fo:table-column column-width="7mm"/><!-- misc --> + <fo:table-column column-width="4mm"/><!-- space --> + <fo:table-column column-width="7mm"/><!-- miss chance --> + <fo:table-column column-width="3mm"/><!-- space --> + <fo:table-column column-width="7mm"/><!-- arcane spell failure --> + <fo:table-column column-width="3mm"/><!-- space --> + <fo:table-column column-width="7mm"/><!-- armour check--> + <fo:table-column column-width="3mm"/><!-- space --> + <fo:table-column column-width="7mm"/><!-- SR --> + <fo:table-body> + <fo:table-row> + <fo:table-cell xsl:use-attribute-sets="ac.title"> + <fo:block line-height="10pt" font-weight="bold" font-size="10pt" space-before="1pt">AC</fo:block> + <fo:block line-height="4pt" font-size="4pt">armor class</fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="ac.total"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="total"/></fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block text-align="center" space-before.optimum="5pt" font-size="6pt">:</fo:block> + </fo:table-cell> + <fo:table-cell xsl:use-attribute-sets="ac.flatfooted"> + <fo:block space-before.optimum="3pt" font-size="10pt"><xsl:value-of select="flat"/></fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block text-align="center" space-before.optimum="5pt" font-size="6pt">:</fo:block> + </fo:table-cell> + <fo:table-cell xsl:use-attribute-sets="ac.touch"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="touch"/></fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block text-align="center" space-before.optimum="5pt" font-size="6pt">=</fo:block> + </fo:table-cell> + <fo:table-cell xsl:use-attribute-sets="ac"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="base"/></fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block text-align="center" space-before.optimum="5pt" font-size="6pt">+</fo:block> + </fo:table-cell> + <fo:table-cell xsl:use-attribute-sets="ac"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="class_bonus"/></fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block text-align="center" space-before.optimum="5pt" font-size="6pt">+</fo:block> + </fo:table-cell> + <fo:table-cell xsl:use-attribute-sets="ac"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="equipment_bonus"/></fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block text-align="center" space-before.optimum="5pt" font-size="6pt">+</fo:block> + </fo:table-cell> + <fo:table-cell xsl:use-attribute-sets="ac"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="stat_mod"/></fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block text-align="center" space-before.optimum="5pt" font-size="6pt">+</fo:block> + </fo:table-cell> + <fo:table-cell xsl:use-attribute-sets="ac"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="size_mod"/></fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block text-align="center" space-before.optimum="5pt" font-size="6pt">+</fo:block> + </fo:table-cell> + <fo:table-cell xsl:use-attribute-sets="ac"> + <fo:block text-align="center" space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="misc - equipment_bonus"/></fo:block> +<!-- <fo:block text-align="center" space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="misc + competence_bonus + defense_bonus + dodge_bonus + enhancement_bonus + insight_bonus + luck_bonus + monk_bonus + sidestep_bonus + tar_bonus + toughness_bonus"/></fo:block> --> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="miss_chance"> + <fo:block space-before.optimum="2pt" font-size="10pt"><!-- Miss chance --></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="spell_failure"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="spell_failure"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="ac_check"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="check_penalty"/></fo:block> + </fo:table-cell> + <fo:table-cell/> + <fo:table-cell xsl:use-attribute-sets="spell_resistance"> + <fo:block space-before.optimum="2pt" font-size="10pt"><xsl:value-of select="spell_resistance"/></fo:block> + </fo:table-cell> + </fo:table-row> + <fo:table-row height="0.5pt"/> + ... [truncated message content] |