<!-- ===================================================== -->

<!-- XSL-FO 예제 파일 (샘터 2001.3월 호), 2001.4, EBKS 워킹 그룹 -->

<!-- ===================================================== -->

<?xml version="1.0" encoding="UTF-16" ?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:fo="http://www.w3.org/1999/XSL/Format"

xmlns:dc="http://purl.org/dc/elements/1.0/" version='1.0'>

<xsl:template match="ebook">

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

<fo:layout-master-set>

<fo:simple-page-master master-name="PageMaster" background-color="#FFFFFF">

<fo:region-body margin-top="30mm" margin-right="30mm" margin-bottom="30mm"

margin-left="30mm" border="thin solid silver" padding="6pt"/>

<fo:region-before extent="25mm" border-after-style="solid" border-after-color="white"

border-after-width="thin" display-align="after"/>

<fo:region-after extent="25mm"

border-before-style="solid" border-before-color="white"

border-before-width="thin" display-align="before"/>

<fo:region-start extent="25mm" border-end-style="solid" border-end-color="white"

border-end-width="thin" display-align="after"/>

<fo:region-end extent="25mm" border-start-style="solid" border-start-color="white"

border-start-width="thin" display-align="before" writing-mode="tb-rl"/>

</fo:simple-page-master>

<fo:simple-page-master master-name="2Column-a" background-color="#FFFFFF" >

<fo:region-body margin-top="30mm" margin-right="30mm" margin-bottom="30mm"

margin-left="30mm" border="thin solid silver" padding="6pt" column-count="2"/>

<fo:region-before extent="30mm" border-before-style="solid" border-before-color="white"

border-before-width="thin" display-align="before" column-count="1"/>

<fo:region-after extent="25mm" border-before-style="solid" border-before-color="white"

border-before-width="thin" display-align="before"/>

<fo:region-start extent="25mm" border-end-style="solid" border-end-color="white"

border-end-width="thin" display-align="after"/>

<fo:region-end extent="25mm" border-start-style="solid" border-start-color="white"

border-start-width="thin" display-align="before" writing-mode="tb-rl"/>

</fo:simple-page-master>

<fo:simple-page-master master-name="first-page">

<fo:region-body margin-top="30mm" margin-right="30mm" margin-bottom="30mm"

margin-left="30mm" padding="6pt" border-left="medium gray ridge"

column-count="2"/>

<fo:region-before extent="30mm" border-before-style="solid" border-before-color="white"

border-before-width="thin" display-align="before" column-count="1"/>

<fo:region-start extent="25mm" border-end-style="solid" border-end-color="white"

border-end-width="thin" display-align="after"/>

<fo:region-end extent="25mm" border-start-style="solid" border-start-color="white"

border-start-width="thin" display-align="before" writing-mode="tb-rl"/>

</fo:simple-page-master>

<fo:simple-page-master master-name="second-page">

<fo:region-body margin-top="30mm" margin-right="30mm" margin-bottom="100mm"

margin-left="30mm" padding="6pt" border-right="medium gray ridge"

column-count="2"/>

<fo:region-before extent="30mm" border-before-style="solid" border-before-color="white"

border-before-width="thin" display-align="before"/>

<fo:region-after extent="90mm" border-before-style="solid" border-before-color="white"

border-before-width="thin" display-align="before"/>

<fo:region-start extent="25mm" border-end-style="solid" border-end-color="white"

border-end-width="thin" display-align="after"/>

<fo:region-end extent="25mm" border-start-style="solid" border-start-color="white"

border-start-width="thin" display-align="before" writing-mode="tb-rl"/>

</fo:simple-page-master>

<fo:page-sequence-master master-name="my-sequence">

<fo:repeatable-page-master-alternatives>

<fo:conditional-page-master-reference page-position="first"

master-name="first-page"/>

<fo:conditional-page-master-reference odd-or-even="odd"

master-name="second-page"/>

</fo:repeatable-page-master-alternatives>

</fo:page-sequence-master>

<fo:simple-page-master master-name="PoemMaster">

<fo:region-body margin-top="30mm" margin-right="30mm" margin-bottom="30mm"

margin-left="30mm" border="thin solid silver" padding="6pt"

background-color="#C3D7FF" />

<fo:region-before extent="25mm" border-after-style="solid" border-after-color="white"

border-after-width="0" display-align="after"/>

<fo:region-after extent="150mm" border-before-style="solid" border-before-color="white"

border-before-width="0" display-align="before"/>

<fo:region-start extent="25mm" border-end-style="solid" border-end-color="white"

border-end-width="thin" display-align="after"/>

<fo:region-end extent="25mm" border-start-style="solid" border-start-color="white"

border-start-width="thin" display-align="before" writing-mode="tb-rl"/>

</fo:simple-page-master>

</fo:layout-master-set>

<fo:page-sequence master-name="PageMaster" format="1">

<fo:flow flow-name="xsl-region-body" line-height="1.7">

<xsl:apply-templates select="books/book/cover"/>

</fo:flow>

</fo:page-sequence>

<fo:page-sequence master-name="PageMaster" format="1">

<fo:static-content flow-name="xsl-region-after">

<fo:block text-align="center" font-size="small">

<fo:page-number/>

</fo:block>

</fo:static-content>

<fo:flow flow-name="xsl-region-body" line-height="1.7">

<xsl:apply-templates select="books/book/front/intro/p[1]"/>

<xsl:apply-templates select="books/book/front/intro/title"/>

<xsl:apply-templates select="books/book/front/intro/artwork"/>

</fo:flow>

</fo:page-sequence>

<fo:page-sequence master-name="PageMaster" format="1">

<fo:static-content flow-name="xsl-region-after">

<fo:block text-align="center" font-size="small">

<fo:page-number/>

</fo:block>

</fo:static-content>

<fo:flow flow-name="xsl-region-body" line-height="2.7">

<xsl:apply-templates select="books/book/front/intro/p[2]"/>

<xsl:apply-templates select="books/book/front/intro/p[3]"/>

<xsl:apply-templates select="books/book/front/intro/p[4]"/>

<xsl:apply-templates select="books/book/front/intro/p[5]"/>

<xsl:apply-templates select="books/book/front/intro/p[7]"/>

<xsl:apply-templates select="books/book/front/intro/p[8]"/>

<xsl:apply-templates select="books/book/front/intro/p[9]"/>

<xsl:apply-templates select="books/book/front/intro/authgrp"/>

</fo:flow>

</fo:page-sequence>

<fo:page-sequence master-name="PageMaster" format="1">

<fo:static-content flow-name="xsl-region-after">

<fo:block text-align="center" font-size="small">

<fo:page-number/>

</fo:block>

</fo:static-content>

<fo:flow flow-name="xsl-region-body" line-height="1.7">

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/p[1]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/title[1]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/artwork[1]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/authgrp/author/name"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/p[2]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/p[3]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/p[4]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/p[5]"/>

</fo:flow>

</fo:page-sequence>

<fo:page-sequence master-name="PageMaster" format="1">

<fo:static-content flow-name="xsl-region-after">

<fo:block text-align="center" font-size="small">

<fo:page-number/>

</fo:block>

</fo:static-content>

<fo:flow flow-name="xsl-region-body" line-height="1.7">

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/artwork[2]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/p[6]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/p[7]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/p[8]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[1]/p[9]"/>

<xsl:apply-templates

select="books/book/body/part[1]/chapter[1]/authgrp/author/name/footnote/p"/>

</fo:flow>

</fo:page-sequence>

<fo:page-sequence master-name="my-sequence" format="1">

<fo:static-content flow-name="xsl-region-start">

<fo:block text-align="center" font-size="small">

<fo:page-number/>

</fo:block>

</fo:static-content>

<fo:static-content flow-name="xsl-region-end">

<fo:block text-align="center" font-size="small">

<fo:page-number/>

</fo:block>

</fo:static-content>

<fo:static-content flow-name="xsl-region-before">

<fo:block text-align="center" font-size="small">

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/title[1]"/>

</fo:block>

</fo:static-content>

<fo:static-content flow-name="xsl-region-after">

<fo:block-container background-color="#CBC7E5" absolute-position="1" top="100pt"

margin-left="15pt" margin-top="15pt" padding-before="10px" padding-after="10px"

padding-start="10px" padding-end="10px" height="120pt" width="410pt">

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/section[4]/note/p"/>

<fo:block>

<xsl:apply-templates

select="books/book/body/part[1]/chapter[2]/section[4]/note/list"/>

</fo:block>

</fo:block-container>

</fo:static-content>

<fo:flow flow-name="xsl-region-body" line-height="1.7">

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/authgrp/author/name"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/section[1]/p[1]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/section[1]/p[2]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/section[1]/p[3]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/section[1]/p[4]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/section[2]/p[1]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/section[3]/p[1]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/section[3]/p[2]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/section[3]/p[3]"/>

<xsl:apply-templates select="books/book/body/part[1]/chapter[2]/section[3]/p[4]"/>

<xsl:apply-templates

select="books/book/body/part[1]/chapter[2]/authgrp/author/name/footnote/p"/>

</fo:flow>

</fo:page-sequence>

<fo:page-sequence master-name="PoemMaster" format="1">

<fo:static-content flow-name="xsl-region-after">

<fo:block margin-left="20pt">

<fo:external-graphic src="pic.jpg" content-height="50%" content-width="50%"/>

</fo:block>

</fo:static-content>

<fo:static-content flow-name="xsl-region-end">

<fo:block margin-top="20pt" margin-right="20pt" text-align="center" font-size="small"/>

<fo:block margin-right="20pt" text-align="center" font-size="small">

<fo:page-number/>

</fo:block>

</fo:static-content>

<fo:flow flow-name="xsl-region-body" line-height="1.7" >

<xsl:apply-templates select="books/book/body/part[2]/titlegrp/title"/>

<fo:block-container writing-mode="tb-rl" padding-before="60px" padding-after="3px"

padding-start="3px" padding-end="40px" height="220pt">

<xsl:apply-templates select="books/book/body/part[2]/chapter[1]/titlegrp/title"/>

<xsl:apply-templates select="books/book/body/part[2]/chapter[1]/poem/stanza"/>

<xsl:apply-templates select="books/book/body/part[2]/chapter[1]/authgrp/author/name"/>

<xsl:apply-templates select="books/book/body/part[2]/chapter[2]/titlegrp/title"/>

<xsl:apply-templates select="books/book/body/part[2]/chapter[2]/poem/stanza"/>

<xsl:apply-templates select="books/book/body/part[2]/chapter[2]/authgrp/author/name"/>

</fo:block-container>

<fo:block-container writing-mode="tb-rl" padding-before="3px" padding-after="3px"

padding-start="3px" padding-end="40px" height="220pt">

<xsl:apply-templates select="books/book/body/part[2]/chapter[3]/titlegrp/title"/>

<xsl:apply-templates select="books/book/body/part[2]/chapter[3]/poem/stanza"/>

<xsl:apply-templates select="books/book/body/part[2]/chapter[3]/authgrp/author/name"/>

</fo:block-container>

</fo:flow>

</fo:page-sequence>

</fo:root>

</xsl:template>

<!-- ===================================================== -->

<xsl:template match="books/book/body/part[1]/chapter[1]/authgrp/author/name/child::node()[1]">

<fo:block font-size="medium" color="red" space-before="2em" keep-with-next="always"

text-align="left">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:attribute-set name="div.footnote" >

<xsl:attribute name="border-style">groove</xsl:attribute>

<xsl:attribute name="border-width">thick</xsl:attribute>

<xsl:attribute name="border-color">#00C000</xsl:attribute>

<xsl:attribute name="background-color">#C3FFC3</xsl:attribute>

<xsl:attribute name="margin">0pt</xsl:attribute>

<xsl:attribute name="space-before">0pt</xsl:attribute>

<xsl:attribute name="space-after">0pt</xsl:attribute>

<xsl:attribute name="start-indent">0</xsl:attribute>

<xsl:attribute name="end-indent">0</xsl:attribute>

</xsl:attribute-set>

<xsl:template match="artwork">

<xsl:choose>

<xsl:when test="@fileref='cover.jpg'">

<fo:block text-align="center">

<fo:external-graphic src="cover.jpg" content-height="102%" content-width="95%"/>

</fo:block>

</xsl:when>

<xsl:when test="@fileref='flower.jpg'">

<fo:block text-align="left">

<fo:external-graphic src="flower.jpg" content-height="100%"  content-width="100%"/>

</fo:block>

</xsl:when>

<xsl:when test="@fileref='pic1.gif'">

<fo:block text-align="center">

<fo:external-graphic src="pic1.gif" content-height="100%" content-width="100%"/>

</fo:block>

</xsl:when>

<xsl:when test="@fileref='1.jpg'">

<fo:block text-align="center">

<fo:external-graphic src="1.jpg" content-height="100%" content-width="100%"/>

</fo:block>

</xsl:when>

<xsl:when test="@fileref='author.jpg'">

<fo:block text-align="center">

<fo:external-graphic src="author.jpg" content-height="100%" content-width="100%"/>

</fo:block>

</xsl:when>

<xsl:otherwise>

<fo:block text-align="right">

<fo:external-graphic src="author.jpg" content-height="100%" content-width="100%"/>

</fo:block>

</xsl:otherwise>

</xsl:choose>

</xsl:template>

<xsl:template match="books/book/body/part[1]/chapter[2]/authgrp/author/name/footnote/p">

<fo:block space-before="250pt" >

<fo:table border="0pt solid black" text-align="center" border-spacing="3pt">

<fo:table-column column-width="1.8in"/>

<fo:table-column column-width="1in" number-columns-repeated="1"/>

<fo:table-body>

<fo:table-row>

<fo:table-cell padding="6pt" border="0pt solid blue" background-color="#F5FFF5"

number-rows-spanned="1">

<fo:block text-align="justify" padding-before="0pt" font-size="8pt">

<xsl:apply-templates/>

</fo:block>

</fo:table-cell>

<fo:table-cell padding="6pt" border="0pt solid black" background-color="#F5FFF5" >

<fo:block>

<fo:external-graphic src="author2.jpg" content-height="60%" content-width="60%"/>

</fo:block>

</fo:table-cell>

</fo:table-row>

</fo:table-body>

</fo:table>

</fo:block>

</xsl:template>

<xsl:template match="books/book/body/part[1]/chapter[1]/authgrp/author/name/footnote/p">

<fo:block space-before="50pt" >

<fo:table border="0pt solid black" text-align="center" border-spacing="3pt">

<fo:table-column column-width="4.2in"/>

<fo:table-column column-width="1.5in" number-columns-repeated="1"/>

<fo:table-body>

<fo:table-row>

<fo:table-cell padding="6pt" border="0pt solid blue" background-color="#FFFFE9"

number-rows-spanned="1">

<fo:block text-align="justify" padding-before="90pt" >

<!--<xsl:value-of select="../*"/>-->

<xsl:apply-templates/>

</fo:block>

</fo:table-cell>

<fo:table-cell padding="6pt" border="0pt solid black" background-color="#FFFFE9" >

<fo:block>

<fo:external-graphic src="author.jpg" content-height="100%" content-width="100%"/>

</fo:block>

</fo:table-cell>

</fo:table-row>

</fo:table-body>

</fo:table>

</fo:block>

</xsl:template>

<xsl:template match="books/book/body/part[1]/chapter[2]/section[4]/note/p[1]">

<fo:block font-size="11pt" space-after="5pt" color="black" font-weight="bold">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="books/book/body/part[1]/chapter[2]/section[4]/note/p[2]">

<fo:block font-size="9pt" color="#000040">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="ebook/books/book/body/part[1]/chapter[2]/section[2]/p[1]">

<fo:block font-size="12pt" color="black">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="books/book/body/part[1]/chapter[2]/section[4]/note/list">

<fo:block font-size="9pt" color="#000040" space-before="6pt">

<fo:inline font-weight="bold"><xsl:value-of select="head[1]"/></fo:inline>

<fo:inline><xsl:text> : </xsl:text></fo:inline>

<fo:inline><xsl:value-of select="item[1]/p"/></fo:inline>

</fo:block>

<fo:block font-size="9pt" color="#000040">

<fo:inline font-weight="bold"><xsl:value-of select="head[2]"/></fo:inline>

<fo:inline><xsl:text> : </xsl:text></fo:inline>

<fo:inline><xsl:value-of select="item[2]/p"/></fo:inline>

</fo:block>

<fo:block font-size="9pt" color="#000040">

<fo:inline font-weight="bold"><xsl:value-of select="head[3]"/></fo:inline>

<fo:inline><xsl:text> : </xsl:text></fo:inline>

<fo:inline><xsl:value-of select="item[3]/p"/></fo:inline>

</fo:block>

<fo:block font-size="9pt" color="#000040" space-after="6pt">

<fo:inline font-weight="bold"><xsl:value-of select="head[4]"/></fo:inline>

<fo:inline><xsl:text> : </xsl:text></fo:inline>

<fo:inline><xsl:value-of select="item[4]/p"/></fo:inline>

</fo:block>

</xsl:template>

<xsl:template match="ebook/books/book/body/part[1]/chapter[2]/section[2]/p">

<fo:block-container writing-mode="tb-rl" border-before-style="solid" border-before-color="green"

border-after-style="solid" border-after-color="green" border-start-style="solid"

border-start-color="green" border-end-style="solid" border-end-color="green"

padding-before="3px" padding-after="3px" padding-start="3px" padding-end="3px"

height="220pt">

<fo:block font-size="medium" color="#4040FF">

<xsl:apply-templates/>

</fo:block>

</fo:block-container>

</xsl:template>

<xsl:template match="ebook/books/book/front/intro/authgrp/author/name">

<fo:block font-size="medium" color="#004000" space-before="6em" keep-with-next="always"

text-align="right" xsl:use-attribute-sets="div.footnote">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="ebook/books/book/front/intro/authgrp/author/name/footnote/p">

<fo:block font-size="medium" color="#004000" space-before="0pt" keep-with-next="always"

text-align="right">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="ebook/books/book/front/intro/title">

<fo:block font-size="25pt" color="#11178D" font-family="HY타자전각M" font-weight="bold"

space-before="4em" keep-with-next="always" text-align="left">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="books/book/body/part/chapter/title">

<fo:block color="#400040" font-size="18pt" font-weight="bold" font-family="HY타자전각M"

space-before="3em" keep-with-next="always" text-align="center">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<!--새벽...-->

<xsl:template match="books/book/body/part/chapter/p[1]">

<fo:block color="#004040" font-size="10pt" font-weight="bold" font-family="굴림"

space-before="1em" keep-with-next="always" text-align="center">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<!--본문-->

<xsl:template match="books/book/body/part/chapter/p">

<fo:block font-size="11pt"  font-family="송성훈 씨앗체" space-before="1em"

keep-with-next="always" text-align="justify">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="books/book/body/part[1]/chapter[2]/title[1]">

<fo:block color="#004040" font-size="medium" space-before="1em" keep-with-next="always"

text-align="center">

<xsl:text></xsl:text>

</fo:block>

<fo:block color="#004040" font-size="20pt" space-before="1em" keep-with-next="always"

text-align="center">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="books/book/body/part[1]/chapter[1]/authgrp/author/name">

<fo:block color="#004040" font-size="medium" space-before="1em" keep-with-next="always"

text-align="right">

<xsl:value-of select="child::node()[1]"/>

</fo:block>

</xsl:template>

<xsl:template match="books/book/body/part[1]/chapter[2]/authgrp/author/name">

<fo:block color="#004040" font-size="12pt" space-before="0em" keep-with-next="always"

text-align="left">

<xsl:value-of select="child::node()[1]"/>

</fo:block>

</xsl:template>

<xsl:template match="name">

<fo:block font-size="medium" space-before="1pt" keep-with-next="always" text-align="right">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="date">

<fo:block space-before="0.5em" space-after="0.5em" text-indent="1em" text-align="justify">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="no">

<fo:block font-size="20pt" color="#0A0E66" font-weight="bold" space-before="0.5em"

space-after="0.5em" text-indent="1em" text-align="center">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="books/book/front/intro/p">

<fo:block space-before="0.5em" font-size="10pt" font-family="HY타자전각M"  space-after="0.5em"

text-indent="1em" text-align="justify">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="p">

<fo:block space-before="0.5em" space-after="0.5em" text-indent="1em" text-align="justify">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="pre">

<fo:block space-before="0.5em" space-after="0.5em" font-family="monospace" font-size="smaller"

linefeed-treatment="preserve" white-space-collapse="false" space-treatment="preserve"

wrap-option="no-wrap" padding-before="0.25em" padding-after="0.25em"

padding-start="0.25em" padding-end="0.25em" background-color="#f5f5f5">

<xsl:apply-templates/></fo:block>

</xsl:template>

<xsl:template match="blockquote">

<fo:block space-before="0.5em" space-after="0.5em" start-indent="3em" end-indent="3em">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="books/book/body/part[2]/chapter/titlegrp/title">

<fo:block font-weight="bold" font-size="15pt" color="black" font-family="송성훈 고구려"

text-align="justify" margin-top="4pt" margin-left="4pt" margin-right="50pt" margin-bottom="6pt">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="books/book/body/part[2]/chapter/authgrp/author/name">

<fo:block font-weight="bold" color="black" text-align="justify" margin-top="2pt" margin-left="4pt"

margin-bottom="2pt">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="poemline">

<fo:block font-weight="bold" color="#003600"  text-align="justify" margin-top="2pt"

margin-left="4pt" margin-bottom="2pt">

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="title">

<fo:block font-weight="bold" color="black" >

<xsl:apply-templates/>

</fo:block>

</xsl:template>

<xsl:template match="strong">

<fo:inline font-weight="bold" background-color="#FF8">

<xsl:apply-templates/></fo:inline></xsl:template>

<xsl:template match="head">

<fo:inline font-weight="bold" color="black">

<xsl:apply-templates/></fo:inline>

</xsl:template>

<xsl:template match="item/p">

<fo:inline font-weight="bold" color="blue">

<xsl:apply-templates/></fo:inline>

</xsl:template>

<xsl:template match="emph">

<fo:inline font-weight="bold" color="black">

<xsl:apply-templates/></fo:inline></xsl:template>

</xsl:stylesheet>