home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <xsl:variable name="fo:layout-master-set">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="default-page-master" page-height="11in" page-width="8.5in" margin-top="0.79in" margin-bottom="0.79in" margin-left="0.6in" margin-right="0.6in">
- <fo:region-before margin-right="0.6in" extent="0cm"/>
- <fo:region-body margin-top="0cm" margin-bottom="0cm" font-family="Serif,Times New Roman,Geneva,Helvetica,Arial,sans-serif" font-size="12pt" line-height="14pt"/>
- <fo:region-after extent="0cm"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- </xsl:variable>
- <xsl:template match="/">
- <fo:root>
- <xsl:copy-of select="$fo:layout-master-set"/>
- <fo:page-sequence master-reference="default-page-master">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block/>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block/>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </xsl:template>
- <xsl:template match="ab">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="addSpan">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </fo:block>
- </xsl:template>
- <xsl:template match="addrLine">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="address">
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <fo:leader leader-pattern="space"/>
- </fo:block>
- <xsl:for-each select="name">
- <xsl:apply-templates/>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <fo:leader leader-pattern="space"/>
- </fo:block>
- </xsl:for-each>
- <xsl:for-each select="street">
- <xsl:apply-templates/>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <fo:leader leader-pattern="space"/>
- </fo:block>
- </xsl:for-each>
- <xsl:for-each select="addrLine">
- <xsl:apply-templates/>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <fo:leader leader-pattern="space"/>
- </fo:block>
- </xsl:for-each>
- <xsl:for-each select="postBox">
- <xsl:apply-templates/>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <fo:leader leader-pattern="space"/>
- </fo:block>
- </xsl:for-each>
- <xsl:for-each select="postCode">
- <xsl:apply-templates/>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- </xsl:for-each>
- </xsl:template>
- <xsl:template match="argument">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </fo:block>
- </xsl:template>
- <xsl:template match="att">
- <fo:inline font-family="Courier">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="author">
- <xsl:apply-templates/>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- </xsl:template>
- <xsl:template match="availability">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="byline">
- <fo:block text-align="center" space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="camera">
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="cit">
- <fo:inline font-style="italic">"</fo:inline>
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- <fo:inline font-style="italic">"</fo:inline>
- </xsl:template>
- <xsl:template match="dateline">
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <fo:leader leader-pattern="space"/>
- </fo:block>
- <xsl:apply-templates/>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- </xsl:template>
- <xsl:template match="delSpan">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="distinct">
- <fo:inline font-style="normal" font-weight="lighter" letter-spacing="1px">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="div">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="div0">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="div1">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="div2">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="div3">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="div4">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="div5">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="div6">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="div7">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="divGen">
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <fo:leader leader-pattern="space"/>
- </fo:block>
- <fo:inline background-color="silver">Generated Div Here: </fo:inline>
- <xsl:for-each select="@type">
- <fo:inline background-color="silver">
- <xsl:value-of select="."/>
- </fo:inline>
- </xsl:for-each>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- </xsl:template>
- <xsl:template match="docTitle">
- <fo:inline font-size="20pt" font-weight="bold">
- <xsl:apply-templates/>
- </fo:inline>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- </xsl:template>
- <xsl:template match="editionStmt">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="emph">
- <fo:inline font-weight="bold">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="encodingDesc">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <fo:inline font-family="@Arial Unicode MS">
- <xsl:apply-templates/>
- </fo:inline>
- </fo:block>
- </xsl:template>
- <xsl:template match="epigraph">
- <fo:block text-align="center" space-before.optimum="4pt" space-after.optimum="4pt">
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </fo:block>
- </xsl:template>
- <xsl:template match="figure">
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <fo:leader leader-pattern="space"/>
- </fo:block>
- <xsl:for-each select="@entity">
- <fo:external-graphic space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:attribute name="src">url('<xsl:value-of select="." />')</xsl:attribute>
- </fo:external-graphic>
- </xsl:for-each>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="foreign">
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="gap">
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <fo:leader leader-pattern="space"/>
- </fo:block>
- <fo:inline font-style="italic">(ommited material)</fo:inline>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- </xsl:template>
- <xsl:template match="head">
- <fo:inline font-size="20pt" font-weight="normal">
- <xsl:apply-templates/>
- </fo:inline>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- </xsl:template>
- <xsl:template match="hi">
- <fo:inline background-color="#FFFF84">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="item">
- <fo:list-block provisional-distance-between-starts="9mm" provisional-label-separation="2mm" start-indent="2mm" space-before.optimum="4pt" space-after.optimum="4pt">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block font-family="Courier">•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- <xsl:apply-templates/>
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </xsl:template>
- <xsl:template match="l">
- <xsl:apply-templates/>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- </xsl:template>
- <xsl:template match="label">
- <fo:inline font-weight="bold">
- <xsl:apply-templates/>
- </fo:inline>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- </xsl:template>
- <xsl:template match="lb">
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- </xsl:template>
- <xsl:template match="move">
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="note">NOTE : [<fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <fo:leader leader-pattern="space"/>
- </fo:block>
- <xsl:apply-templates/>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <fo:leader leader-pattern="space"/>
- </fo:block>]</xsl:template>
- <xsl:template match="p">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="ptr">
- <fo:basic-link text-decoration="underline" color="blue">
- <xsl:attribute name="external-destination">url('<xsl:value-of select="@target" />')</xsl:attribute>
- <xsl:apply-templates/>
- </fo:basic-link>
- </xsl:template>
- <xsl:template match="publicationStmt">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="q">"<xsl:apply-templates/>"</xsl:template>
- <xsl:template match="quote">'<xsl:apply-templates/>'</xsl:template>
- <xsl:template match="ref">
- <fo:basic-link text-decoration="underline" color="blue">
- <xsl:attribute name="external-destination">url('<xsl:value-of select="@target" />')</xsl:attribute>
- <xsl:apply-templates/>
- </fo:basic-link>
- </xsl:template>
- <xsl:template match="signed">Signed: <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="soCalled">
- <fo:inline font-weight="bold">"</fo:inline>
- <fo:inline font-weight="bold">
- <xsl:apply-templates/>
- </fo:inline>
- <fo:inline font-weight="bold">"</fo:inline>
- </xsl:template>
- <xsl:template match="sound">
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="sourceDesc">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="sp">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="tech">
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="teiHeader">
- <fo:table background-color="#F0EEF0" width="100%" space-before.optimum="4pt" space-after.optimum="4pt">
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell padding-start="3pt" padding-end="3pt" padding-before="3pt" padding-after="3pt">
- <fo:block>
- <fo:inline font-weight="bold">Header Information:</fo:inline>
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </xsl:template>
- <xsl:template match="term">
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="title">
- <fo:inline font-size="20pt">
- <xsl:apply-templates/>
- </fo:inline>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- </xsl:template>
- <xsl:template match="titlePage">
- <fo:table width="100%" space-before.optimum="4pt" space-after.optimum="4pt">
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell border-after-color="black" border-after-style="solid" border-after-width="thin" padding-start="3pt" padding-end="3pt" padding-before="3pt" padding-after="3pt">
- <fo:block> </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- <fo:block space-before.optimum="2pt" space-after.optimum="2pt">
- <xsl:text>
</xsl:text>
- </fo:block>
- <fo:table width="100%" space-before.optimum="4pt" space-after.optimum="4pt">
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell border-before-color="black" border-before-style="solid" border-before-width="thin" padding-start="3pt" padding-end="3pt" padding-before="3pt" padding-after="3pt">
- <fo:block> </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </xsl:template>
- <xsl:template match="titlePart">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="titleStmt">
- <fo:block space-before.optimum="4pt" space-after.optimum="4pt">
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template match="view">
- <fo:inline font-style="italic">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- </xsl:stylesheet>
-