Skip to content

Commit 309aa2f

Browse files
authored
Add Dresden Files Accelerated (kbaird#161)
* Add Dresden Files Accelerated
1 parent f89d354 commit 309aa2f

File tree

10 files changed

+264
-1
lines changed

10 files changed

+264
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Character [DTD](http://www.w3.org/TR/xhtml1/dtds.html)s for various
1212
[Fate Accelerated](http://www.evilhat.com/home/fae/) (FAE) |
1313
[Atomic Robo](http://www.evilhat.com/home/atomic-robo/) |
1414
[Spirit of the Century](http://www.evilhat.com/home/spirit-of-the-century-2/) |
15-
[Shadow of the Century](http://www.evilhat.com/home/shadow-of-the-century/) from
15+
[Shadow of the Century](http://www.evilhat.com/home/shadow-of-the-century/) |
16+
[Dresden Files Accelerated](http://www.evilhat.com/home/dresden-files-accelerated//) from
1617
[Evil Hat Productions](http://evilhat.com/)
1718

1819
[Diaspora](http://www.vsca.ca/Diaspora/) from
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!ELEMENT character (id, refresh?, aspects, approaches, mantles, stunts, conditions)>
3+
4+
<!ELEMENT id (charname, playername, description)>
5+
<!ELEMENT charname (#PCDATA)>
6+
<!ATTLIST charname nickname CDATA #IMPLIED>
7+
<!ELEMENT playername (#PCDATA)>
8+
<!ELEMENT description (#PCDATA)>
9+
10+
<!ELEMENT refresh (#PCDATA)>
11+
<!ATTLIST refresh base CDATA #IMPLIED>
12+
<!ATTLIST refresh current CDATA #IMPLIED>
13+
<!ATTLIST refresh free-stunts CDATA #IMPLIED>
14+
15+
<!ELEMENT aspects (aspect*)>
16+
<!ELEMENT aspect (#PCDATA)>
17+
<!ATTLIST aspect type CDATA #IMPLIED>
18+
19+
<!ELEMENT approaches (approach*)>
20+
<!ELEMENT approach (#PCDATA)>
21+
<!ATTLIST approach name (Flair|Focus|Force|Guile|Haste|Intellect) #REQUIRED>
22+
<!ATTLIST approach rating CDATA #REQUIRED>
23+
24+
<!ELEMENT mantles (mantle*)>
25+
<!ELEMENT mantle (stunt*)>
26+
<!ATTLIST mantle name CDATA #REQUIRED>
27+
<!ATTLIST mantle ref CDATA #REQUIRED>
28+
<!ATTLIST mantle scale CDATA "Mundane">
29+
30+
<!ELEMENT stunts (stunt*)>
31+
<!ELEMENT stunt (#PCDATA)>
32+
<!ATTLIST stunt name CDATA #REQUIRED>
33+
34+
<!ELEMENT conditions (condition*)>
35+
<!ELEMENT condition (#PCDATA)>
36+
<!ATTLIST condition name CDATA #REQUIRED>
37+
<!ATTLIST condition boxes CDATA #REQUIRED>
38+
<!ATTLIST condition box-value CDATA "&#160;">
39+
<!ATTLIST condition duration CDATA #REQUIRED>
40+
<!ATTLIST condition ref CDATA #REQUIRED>
41+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="utf8"?>
2+
<?xml-stylesheet type="text/xsl" href="../../xslt/dfa_html.xsl"?>
3+
<!DOCTYPE character SYSTEM "character.dtd">
4+
<character>
5+
<id>
6+
<charname>Gabriel Beaumont</charname>
7+
<playername>sample DFA character</playername>
8+
<description>
9+
See DFA, pg. 243
10+
</description>
11+
</id>
12+
<aspects>
13+
<aspect type="High-Concept">Retired Knight of the Cross</aspect>
14+
<aspect type="Trouble">These Tired Old Bones</aspect>
15+
<aspect>Love For All Living Things</aspect>
16+
<aspect>Worked All Over This City</aspect>
17+
<aspect>Can Stare Down a Denarian</aspect>
18+
</aspects>
19+
<approaches>
20+
<approach rating="1" name="Flair"/>
21+
<approach rating="3" name="Focus"/>
22+
<approach rating="2" name="Force"/>
23+
<approach rating="2" name="Guile"/>
24+
<approach rating="0" name="Haste"/>
25+
<approach rating="1" name="Intellect"/>
26+
</approaches>
27+
<mantles>
28+
<mantle name="Leader of the People" ref="126"/>
29+
</mantles>
30+
<stunts>
31+
<stunt name="Ready and Willing">pg127</stunt>
32+
<stunt name="Patronage">pg127</stunt>
33+
<stunt name="Specialist">pg127</stunt>
34+
<stunt name="Safehouse">pg127</stunt>
35+
<stunt name="Miraculous Chance">pg243</stunt>
36+
</stunts>
37+
<conditions>
38+
<condition name="In&#160;Peril" boxes="1" box-value="4" duration="sticky" ref="117"/>
39+
<condition name="Doomed" boxes="1" box-value="6" duration="lasting" ref="117"/>
40+
<condition name="Indebted" boxes="5" duration="sticky" ref="117"/>
41+
<condition name="Followers" boxes="5" duration="sticky" ref="126"/>
42+
<condition name="Disfavored" boxes="1" duration="sticky" ref="126"/>
43+
</conditions>
44+
</character>

xslt/dfa_html.xsl

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf8"?>
2+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3+
<xsl:output method="html"/>
4+
<xsl:include href="html/dfa/dfa_common.xsl"/>
5+
<xsl:template match="/">
6+
<xsl:apply-templates select="character"/>
7+
</xsl:template>
8+
</xsl:stylesheet>

xslt/html/dfa/character.xsl

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="utf8"?>
2+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3+
<xsl:output method="html"/>
4+
<xsl:template match="character">
5+
<html>
6+
<xsl:call-template name="head">
7+
<xsl:with-param name="baseCSS">fae</xsl:with-param>
8+
</xsl:call-template>
9+
<body>
10+
<h1><xsl:value-of select="id/charname"/></h1>
11+
<section id="id">
12+
<xsl:apply-templates select="id" mode="fae"/>
13+
</section>
14+
<section id="fate-logo">
15+
<span id="fate-subtitle">Dresden Files Accelerated</span>
16+
</section>
17+
<wbr/>
18+
<section id="aspects">
19+
<xsl:apply-templates select="aspects"/>
20+
</section>
21+
<section id="skills">
22+
<xsl:apply-templates select="approaches"/>
23+
</section>
24+
<wbr/>
25+
<section id="stunts">
26+
<xsl:apply-templates select="stunts"/>
27+
</section>
28+
<wbr/>
29+
<section id="stress">
30+
<xsl:call-template name="dfa-stress"/>
31+
</section>
32+
<section id="consequences">
33+
<xsl:apply-templates select="conditions"/>
34+
</section>
35+
<!--
36+
<xsl:call-template name="refresh"/>
37+
-->
38+
<xsl:apply-templates select="notes"/>
39+
</body>
40+
</html>
41+
</xsl:template>
42+
</xsl:stylesheet>

xslt/html/dfa/condition-boxes.xsl

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf8"?>
2+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3+
<xsl:output method="html"/>
4+
<xsl:template name="condition-boxes">
5+
<xsl:param name="current"/>
6+
<xsl:param name="max"/>
7+
<dd><xsl:value-of select="@box-value"/></dd>
8+
<xsl:if test="$current &lt; $max">
9+
<xsl:call-template name="condition-boxes">
10+
<xsl:with-param name="current">
11+
<xsl:value-of select="$current + 1"/>
12+
</xsl:with-param>
13+
<xsl:with-param name="max">
14+
<xsl:value-of select="$max"/>
15+
</xsl:with-param>
16+
</xsl:call-template>
17+
</xsl:if>
18+
</xsl:template>
19+
</xsl:stylesheet>

xslt/html/dfa/conditions.xsl

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf8"?>
2+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3+
<xsl:output method="html"/>
4+
<xsl:include href="condition-boxes.xsl"/>
5+
6+
<xsl:template match="conditions">
7+
<table id="conditions">
8+
<tr>
9+
<th colspan="1" class="sectionheader">Conditions</th>
10+
</tr>
11+
<xsl:apply-templates select="condition"/>
12+
</table>
13+
</xsl:template>
14+
15+
<xsl:template match="condition">
16+
<tr>
17+
<td style="border: 1px solid black; text-align: left">
18+
<dl class="conditions">
19+
<dt><xsl:value-of select="@name"/> (<xsl:value-of select="@duration"/>, pg<xsl:value-of select="@ref"/>)</dt>
20+
<xsl:call-template name="condition-boxes">
21+
<xsl:with-param name="current">1</xsl:with-param>
22+
<xsl:with-param name="max">
23+
<xsl:value-of select="@boxes"/>
24+
</xsl:with-param>
25+
</xsl:call-template>
26+
</dl>
27+
</td>
28+
</tr>
29+
</xsl:template>
30+
31+
</xsl:stylesheet>

xslt/html/dfa/dfa_common.xsl

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf8"?>
2+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3+
<xsl:output method="html"/>
4+
<xsl:include href="../fate-common/aspects.xsl"/>
5+
<xsl:include href="../fate-common/head.xsl"/>
6+
<xsl:include href="../fate-common/name.xsl"/>
7+
<xsl:include href="../fate-common/refresh.xsl"/>
8+
<xsl:include href="../fate-common/stunts.xsl"/>
9+
<xsl:include href="../fae/approaches.xsl"/>
10+
<xsl:include href="character.xsl"/>
11+
<xsl:include href="conditions.xsl"/>
12+
<xsl:include href="id.xsl"/>
13+
<xsl:include href="stress.xsl"/>
14+
</xsl:stylesheet>

xslt/html/dfa/id.xsl

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="utf8"?>
2+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3+
<xsl:output method="html"/>
4+
<xsl:template match="id" mode="fae">
5+
<table>
6+
<tr>
7+
<th colspan="2" class="sectionheader">ID</th>
8+
</tr>
9+
<tr>
10+
<td><xsl:call-template name="name"/></td>
11+
</tr>
12+
<tr>
13+
<td><xsl:if test="description">
14+
<fieldset id="description">
15+
<legend class="label"><span>Description</span></legend>
16+
<xsl:value-of select="description"/>
17+
</fieldset>
18+
</xsl:if></td>
19+
</tr>
20+
<xsl:apply-templates select="../mantles"/>
21+
</table>
22+
</xsl:template>
23+
24+
<xsl:template match="mantles">
25+
<xsl:apply-templates select="mantle"/>
26+
</xsl:template>
27+
28+
<xsl:template match="mantle">
29+
<tr>
30+
<td>
31+
<fieldset id="affiliation">
32+
<legend class="label"><span>Mantle</span></legend>
33+
<xsl:value-of select="@name"/>
34+
<xsl:text> (pg</xsl:text>
35+
<xsl:value-of select="@ref"/>
36+
<xsl:text>)</xsl:text>
37+
</fieldset>
38+
</td>
39+
</tr>
40+
</xsl:template>
41+
</xsl:stylesheet>

xslt/html/dfa/stress.xsl

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf8"?>
2+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3+
<xsl:output method="html"/>
4+
<xsl:include href="../fate-common/stress.xsl"/>
5+
<xsl:template name="dfa-stress">
6+
<table id="stress_table">
7+
<tr>
8+
<th class="sectionheader" colspan="6">Stress</th>
9+
</tr>
10+
<tr>
11+
<td>1</td>
12+
<td>1</td>
13+
<td>1</td>
14+
</tr>
15+
<tr>
16+
<td>1</td>
17+
<td>1</td>
18+
<td>1</td>
19+
</tr>
20+
</table>
21+
</xsl:template>
22+
</xsl:stylesheet>

0 commit comments

Comments
 (0)