home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
-
- <xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:html="http://www.w3.org/TR/html4/loose.dtd"
- exclude-result-prefixes="html"
- version="1.0">
-
- <xsl:import href="Variables.xsl"/>
-
- <xsl:output method="html" encoding="UTF-8"/>
-
- <!-- this xsl defines processing instructions for elements that are defined in ENTITY incl -->
- <!-- So far that %incl serves both bup_xml.dtd and classic_xml.dtd -->
-
-
- <xsl:template match="sidebar">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="btw">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="bup">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="title">
- <xsl:choose>
- <xsl:when test="starts-with(../articleinfo/@contenttype, 'boy')">
- <h1>
- Year in Review
- <xsl:value-of select="substring(../articleinfo/@contenttype, 4, 4)"/>:
- <xsl:value-of select="../articleinfo/@contentsubtype"/>
- </h1>
- <h2><xsl:apply-templates/></h2>
- </xsl:when>
- <xsl:when test="parent::sidebar">
- <title>Sidebar:<xsl:value-of select="titltxt/text()"/></title>
- <xsl:apply-templates select="titltxt" mode="sidebar"/>
- </xsl:when>
- <xsl:otherwise>
- <h1><xsl:apply-templates/></h1>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="uninvrtitl">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="titltxt" mode="sidebar">
- <h1>Sidebar - <xsl:apply-templates/></h1>
- </xsl:template>
-
- <xsl:template match="titlexp">
- <p><small><xsl:apply-templates/></small></p>
- </xsl:template>
-
- <xsl:template match="ttrans">
- <br>(<xsl:apply-templates/>)</br>
- </xsl:template>
-
- <xsl:template match="taxon">
- (<xsl:if test="@ty !='species'"><xsl:value-of select="@ty"/> </xsl:if>
- <xsl:choose>
- <xsl:when test="@ty='genus'"><i><xsl:apply-templates/></i></xsl:when>
- <xsl:when test="@ty='subgenus'"><i><xsl:apply-templates/></i></xsl:when>
- <xsl:when test="@ty='species'"><i><xsl:apply-templates/></i></xsl:when>
- <xsl:when test="@ty='subspecies'"><i><xsl:apply-templates/></i></xsl:when>
- <xsl:otherwise><font face="Roman"><xsl:apply-templates/></font></xsl:otherwise>
- </xsl:choose>)
- </xsl:template>
-
- <xsl:template match="titlsub">
- <font size="5"><xsl:apply-templates/></font>
- </xsl:template>
-
- <xsl:template match="tabbrev|chemsym">
- (<xsl:apply-templates/>)
- </xsl:template>
-
- <!-- these templates should not be processed at their location in the text, only
- when called through the 'tvar' mode -->
- <xsl:template match="tvtype"/>
-
- <xsl:template match="tvarint"/>
-
- <xsl:template match="tvcnjtive"/>
-
- <xsl:template match="tvcnjtion"/>
-
- <xsl:template match="tvtype" mode="tvar">
- <xsl:apply-templates/><xsl:text disable-output-escaping='yes'> </xsl:text>
- </xsl:template>
-
- <xsl:template match="tvarint" mode="tvar">
- <b><xsl:apply-templates/></b><xsl:text disable-output-escaping='yes'> </xsl:text>
- </xsl:template>
-
- <xsl:template match="tvcnjtive" mode="tvar">
- <xsl:apply-templates/><xsl:text disable-output-escaping='yes'> </xsl:text>
- </xsl:template>
-
- <xsl:template match="tvcnjtion" mode="tvar">
- <xsl:apply-templates/><xsl:text disable-output-escaping='yes'> </xsl:text>
- </xsl:template>
-
- <!-- ref points -->
- <xsl:template match="refpt">
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@ref"/>.ref</xsl:attribute>
- </a>
- </xsl:template>
-
- <xsl:template match="inline">
- <xsl:apply-templates select="asset"/>
- <xsl:if test="count(../inline) = 1"><br/></xsl:if>
- </xsl:template>
-
- <xsl:template match="asset">
- <xsl:choose>
- <xsl:when test="parent::inline">
- <center>
- <xsl:call-template name="regular_fullsize"/>
- </center>
-
- </xsl:when>
- <xsl:otherwise>
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$assemblyURL"/>?assemblyId=<xsl:value-of select="@id"/>&type=I</xsl:attribute>
- <xsl:apply-templates/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="regular_thumb">
- <img>
- <xsl:attribute name="width"><xsl:value-of select="@thumbwdth"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="@thumbhgt"/></xsl:attribute>
- <xsl:attribute name="src"><xsl:value-of select="$thumbURL"/>?binaryId=<xsl:value-of select="@id"/></xsl:attribute>
- <xsl:attribute name="alt"><xsl:value-of select="../thumbcap"/></xsl:attribute>
- </img>
- </xsl:template>
-
- <xsl:template name="regular_fullsize">
-
- <img>
- <xsl:attribute name="width"><xsl:value-of select="@wdth"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="@hgt"/></xsl:attribute>
- <xsl:attribute name="src"><xsl:value-of select="$imageURL"/>?binaryId=<xsl:value-of select="@id"/></xsl:attribute>
- </img>
-
- </xsl:template>
-
-
- <xsl:template match="thumbcred">
- <i><xsl:apply-templates/></i>
- </xsl:template>
-
- <!-- END ART AND IMG -->
-
- <!-- START MATH -->
- <xsl:template match="formula">
- <br/><br/><xsl:apply-templates/><br/><br/>
- </xsl:template>
-
- <xsl:template match="num">
- <!-- cd browse can't support embedded sup and sub, so we change it to the following.
- example is analysis article , look at Formal definition of the derivative, text of average
- speed of time interval-->
- <xsl:variable name="numerator">
- <xsl:apply-templates/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="contains($numerator,'+') or contains($numerator,'-') or contains($numerator,'−')">(<xsl:apply-templates/>)</xsl:when>
- <xsl:otherwise><xsl:apply-templates/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="den">
- <xsl:variable name="denominator">
- <xsl:apply-templates/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="contains($denominator,'+') or contains($denominator,'-') or contains($denominator,'−')">(<xsl:apply-templates/>)</xsl:when>
- <xsl:otherwise><xsl:apply-templates/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="upper">
- <sup><xsl:apply-templates/></sup>
- </xsl:template>
-
- <xsl:template match="lower">
- <sub><xsl:apply-templates/></sub>
- </xsl:template>
-
- <!-- integrals -->
- <xsl:template match="int">
- ∫<xsl:apply-templates select="lower"/><xsl:apply-templates select="upper"/>
- </xsl:template>
-
- <!-- good example to test against /oec/shared/component/Section.jsp?eu=570902 -->
- <xsl:template match="sqroot">
- <xsl:choose>
- <xsl:when test="@radix=2 or not(@radix)"></xsl:when>
- <xsl:when test="@radix=n"><sup><i><xsl:value-of select="@radix"/></i></sup></xsl:when>
- <xsl:otherwise><sup><xsl:value-of select="@radix"/></sup></xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="charfont">
- <xsl:with-param name="font">symbol</xsl:with-param>
- <xsl:with-param name="char">Ö</xsl:with-param>
- </xsl:call-template>
- <xsl:apply-templates/>
- </xsl:template>
- <!-- END MATH -->
-
- <!-- start xrefs -->
-
- <xsl:template match="tbl">
- <a>
- <xsl:choose>
- <xsl:when test="$printableArticleURL != ''">
- <xsl:attribute name="href"><xsl:value-of select="$printableArticleURL"/>?eu=<xsl:value-of select="@euid"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="tocid">
- <xsl:value-of select="number(@artclid)+number(9000000)"/>
- </xsl:variable>
- <xsl:attribute name="href"><xsl:value-of select="$tableArticleURL"/>?tocId=<xsl:value-of select="$tocid"/></xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates/>
- </a>
- </xsl:template>
-
- <!-- elements from % text -->
-
- <xsl:template match="list">
- <p>
- <xsl:choose>
- <!-- formatting provided in content -->
- <xsl:when test="@numsty='e'">
- <blockquote><xsl:apply-templates/></blockquote>
- </xsl:when>
- <!-- bullets -->
- <xsl:when test="@numsty='u'">
- <ul><xsl:apply-templates/></ul>
- </xsl:when>
- <!-- uppercase letters -->
-
- <!-- if there is a thumbnail before the <ol> then some list numbers are not
- able to display from IE browser. A <table> tag is added to resolving
- this issue. bug# 726 -->
- <xsl:when test="@numsty='a'">
- <table><tr><td>
- <ol type="A"><xsl:apply-templates/></ol>
- </td></tr></table>
- </xsl:when>
- <!-- numbered -->
- <xsl:otherwise>
- <table><tr><td>
- <ol type="1"><xsl:apply-templates/></ol>
- </td></tr></table>
- </xsl:otherwise>
- </xsl:choose>
- </p>
- </xsl:template>
-
- <xsl:template match="item">
- <li><xsl:apply-templates/></li>
- </xsl:template>
-
- <xsl:template match="item[@numsty='e']">
- <xsl:apply-templates/><br/>
- </xsl:template>
-
- <xsl:template match="qt">
- <blockquote><xsl:apply-templates/></blockquote>
- </xsl:template>
-
- <xsl:template match="qtpara">
- <xsl:apply-templates/><br/>
- </xsl:template>
-
- <xsl:template match="poetry">
- <xsl:choose>
- <xsl:when test="@display='center'">
- <center>
- <xsl:apply-templates/>
- </center>
- </xsl:when>
- <xsl:otherwise>
- <blockquote>
- <xsl:apply-templates/>
- </blockquote>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="line">
- <xsl:apply-templates/><br/>
- </xsl:template>
-
- <xsl:template match="linebreak">
- <br/>
- </xsl:template>
-
- <xsl:template match="linegroup">
- <p><xsl:apply-templates/></p>
- </xsl:template>
-
- <xsl:template match="attribution">
- <div align="right"><xsl:apply-templates/></div>
- </xsl:template>
-
- <!-- START ELEMENT TABLE -->
- <xsl:template match="elmtbl">
- <table border="1">
- <xsl:for-each select="datatype">
- <xsl:variable name="thisPosition" select="position()"/>
- <tr>
- <xsl:apply-templates select="."/>
- <xsl:apply-templates
- select="../datavalue[position() = $thisPosition]"/>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
-
- <xsl:template match="countrystat">
- <table>
- <xsl:for-each select="datavalue">
- <xsl:variable name="thisPosition" select="position()"/>
- <tr>
- <xsl:apply-templates select="../info[position() = $thisPosition]"/>
- <xsl:apply-templates select="../datavalue[position() = $thisPosition]"/>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
-
- <xsl:template match="info">
- <td width="110"><xsl:apply-templates/></td>
- </xsl:template>
-
- <xsl:template match="datatype | datavalue">
- <td><xsl:apply-templates/></td>
- </xsl:template>
-
- <!-- END ELEMENT TABLE -->
-
- <xsl:template match="table">
- <table border="1">
- <xsl:apply-templates/>
- </table>
- </xsl:template>
-
- <xsl:template match="tablehd">
- <caption><xsl:apply-templates/></caption>
- </xsl:template>
-
- <xsl:template match="tablefoot">
- <tr><xsl:apply-templates/></tr>
- </xsl:template>
-
- <xsl:template match="row">
- <tr><xsl:apply-templates/></tr>
- </xsl:template>
-
- <xsl:template match="cell">
- <td><xsl:apply-templates/></td>
- </xsl:template>
-
- <!-- start P and firstpar elements -->
-
- <!-- note: for next two templates, don't generate thumbnails for inline
- images (@ty='i') -->
-
- <xsl:template match="p">
-
- <xsl:if test="descendant::asset[not(parent::inline) and @thumbwdth > 0]">
- <table align="left" width="120" cellspacing="0" cellpadding="0" border="0"><tr>
- <td width="110" valign="top"><xsl:apply-templates select="descendant::assembly" mode="thumb"/></td>
- <td width="10"/>
- </tr></table>
- </xsl:if>
- <p><xsl:apply-templates/>
- <xsl:choose>
- <xsl:when test="not(following-sibling::p)"><br clear="all"/></xsl:when>
- <xsl:when test="following-sibling::p[position() = 1]/descendant::asset[not(parent::inline) and @thumbwdth > 0]"><br clear="all"/></xsl:when>
- </xsl:choose>
- </p>
- </xsl:template>
-
-
-
- <xsl:template match="fpartxt">
-
- <xsl:if test="..//asset[not(parent::inline) and @thumbwdth > 0]">
- <table align="left" width="120" cellspacing="0" cellpadding="0" border="0"><tr>
- <td width="110" valign="top"><xsl:apply-templates select="..//assembly" mode="thumb"/></td>
- <td width="10"/>
- </tr></table>
- </xsl:if>
- <p>
- <!-- this is to fix bcd's bug2394.
- xhtml output method which uses by bcd converts<i></i> to<i/> which displays italics text for
- most articles. html output method which uses by site leaves the xsl output to <i></i> if it's
- empty and there is no display problem. karen
- -->
- <xsl:if test="//tvtype or //tvarint or tvcnjtive">
- <i><xsl:apply-templates select="//tvtype | //tvarint | //tvcnjtive" mode="tvar"/></i>
- </xsl:if>
-
- <xsl:apply-templates/>
- <xsl:choose>
- <xsl:when test="not(parent::node()/following-sibling::p)"><br clear="all"/></xsl:when>
- <xsl:when test="parent::node()/following-sibling::p[position() = 1]/descendant::asset[not(parent::inline) and @thumbwdth > 0]"><br clear="all"/></xsl:when>
- </xsl:choose>
- </p>
- </xsl:template>
-
- <!-- end firstpar -->
-
- <!-- end P and firstpar elements -->
-
- <xsl:template match="assembly">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$assemblyURL"/>?assemblyId=<xsl:value-of select="@id"/>&type=A</xsl:attribute>
- <xsl:apply-templates select="arttext"/>
- </a>
- </xsl:template>
-
- <xsl:template match="assembly" mode="thumb">
- <p>
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$assemblyURL"/>?assemblyId=<xsl:value-of select="@id"/>&type=A</xsl:attribute>
- <xsl:for-each select="asset">
- <xsl:if test="position()=1 and @thumbwdth > 0">
- <xsl:call-template name="regular_thumb"/>
- <br/>
- </xsl:if>
- </xsl:for-each>
- </a>
- <xsl:apply-templates select="thumbcap">
- <xsl:with-param name="parsed">true</xsl:with-param>
- </xsl:apply-templates>
- </p>
- </xsl:template>
-
- <xsl:template match="authcr">
- <!-- surpress the author link if it's editor of EB -->
- <xsl:if test="@persid != ''">
-
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$authorURL"/>?authorId=<xsl:value-of select="@persid"/></xsl:attribute>
- <xsl:apply-templates/>
- </a>
-
- </xsl:if><br/><br/>
- </xsl:template>
-
- <xsl:template match="signature">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$authorURL"/>?authorId=<xsl:value-of select="@persid"/></xsl:attribute>
- <xsl:apply-templates/>
- </a>
-
- </xsl:template>
-
- <!-- bdate -->
- <xsl:template match="bdate">
- <b>
- <xsl:apply-templates select="/article/title/uninvrtitl"/><br/>
- <xsl:choose>
- <xsl:when test="@ty='fl'"> flourished <xsl:apply-templates/></xsl:when>
- <xsl:when test="@ty='bap'"> baptized <xsl:apply-templates/> </xsl:when>
- <xsl:otherwise> born <xsl:apply-templates/> </xsl:otherwise>
- </xsl:choose>
- </b><br/>
- <xsl:if test="not(../ddate)"><br/></xsl:if>
- </xsl:template>
-
- <xsl:template match="loc">, <xsl:apply-templates/></xsl:template>
-
- <!-- end bdate -->
-
- <!-- ddate -->
- <xsl:template match="ddate">
- <b>
- <xsl:choose>
- <xsl:when test="@ty='kill'"> killed in action <xsl:apply-templates/> </xsl:when>
- <xsl:when test="@ty='bur'"> buried <xsl:apply-templates/> </xsl:when>
- <xsl:when test="@ty='found'"> found dead <xsl:apply-templates/> </xsl:when>
- <xsl:otherwise> died <xsl:apply-templates/> </xsl:otherwise>
- </xsl:choose>
- </b>
- <br/>
- </xsl:template>
-
- <!-- first two head levels requir expanded node set for bboy -->
- <xsl:template match="h1">
- <h2>
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </h2>
- <!-- do recursive call instead of selecting element. that will fix the empty article page tocid=4789.
- in tocid 4789, h1 has bibp child only and since the bibp is not in the select value,so there is
- an empty article page. I changed to apply-templates to fix this
-
- karen
- -->
- <!--xsl:apply-templates select="h2|p|list|qt|poetry|table|authcr|class"/-->
- <xsl:apply-templates select="*[name() != 'headtitle']"/>
- </xsl:template>
-
- <xsl:template match="h2">
- <h3>
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </h3>
- <!--xsl:apply-templates select="h3|p|list|qt|poetry|table|authcr|class"/-->
- <xsl:apply-templates select="*[name() != 'headtitle']"/>
- </xsl:template>
-
- <xsl:template match="h3">
- <h4>
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </h4>
- <!--xsl:apply-templates select="p|h4|authcr|class"/-->
- <xsl:apply-templates select="*[name() != 'headtitle']"/>
- </xsl:template>
-
- <xsl:template match="h4">
- <h5>
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </h5>
- <!--xsl:apply-templates select="p|h5|authcr|class"/-->
- <xsl:apply-templates select="*[name() != 'headtitle']"/>
- </xsl:template>
-
- <xsl:template match="h5">
- <h5>
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </h5>
- <!--xsl:apply-templates select="p|authcr|class"/-->
- <xsl:apply-templates select="*[name() != 'headtitle']"/>
- </xsl:template>
-
- <xsl:template match="class">
- <xsl:apply-templates select="tax1"/>
- </xsl:template>
-
- <xsl:template match="tax1">
- <xsl:if test="label/labeltxt">
- <xsl:call-template name="class"/>
- </xsl:if>
- <xsl:apply-templates select="tax2"/>
- </xsl:template>
-
- <xsl:template match="tax2">
- <xsl:if test="label/labeltxt">
- <p style="margin-left: 1%"><xsl:call-template name="class"/></p>
- </xsl:if>
- <xsl:apply-templates select="tax3"/>
- </xsl:template>
-
- <xsl:template match="tax3">
- <xsl:if test="label/labeltxt">
- <p style="margin-left:1.5%"><xsl:call-template name="class"/></p>
- </xsl:if>
- <xsl:apply-templates select="tax4"/>
- </xsl:template>
-
- <xsl:template match="tax4">
- <xsl:if test="label/labeltxt">
- <p style="margin-left:2%"><xsl:call-template name="class"/></p>
- </xsl:if>
- <xsl:apply-templates select="tax5"/>
- </xsl:template>
-
- <xsl:template match="tax5">
- <xsl:if test="label/labeltxt">
- <p style="margin-left:2.5%"><xsl:call-template name="class"/></p>
- </xsl:if>
- <xsl:apply-templates select="tax6"/>
- </xsl:template>
-
- <xsl:template match="tax6">
- <xsl:if test="label/labeltxt">
- <p style="margin-left:3%"><xsl:call-template name="class"/></p>
- </xsl:if>
- </xsl:template>
-
- <xsl:template name="class">
-
- <b>
- <span class="artcopy"><xsl:apply-templates select="label/labeltxt"/></span>
- <span class="artcopy"><xsl:apply-templates select="label/commonname"/></span>
- </b><br/>
- <xsl:text disable-output-escaping='yes'> </xsl:text><span class="artcopy"><xsl:apply-templates select="desc"/></span>
-
- </xsl:template>
-
- <xsl:template match="labeltxt">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="commonname">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="desc">
- <xsl:apply-templates/>
- </xsl:template>
-
- <!-- mwks process -->
- <xsl:template match="mwks">
- <xsl:choose>
- <xsl:when test="@ty='rep'">
- <h2>Representative Works:</h2>
- </xsl:when>
- <xsl:otherwise>
- <h2>Major Works:</h2>
- </xsl:otherwise>
- </xsl:choose>
- <p>
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>&tocid=<xsl:value-of select="@tocid"/>#<xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates/>
- </a>
- </p>
- </xsl:template>
-
- <xsl:template match="bibp">
- <xsl:choose>
- <xsl:when test="citation">
- <xsl:for-each select="citation">
- <ul><xsl:apply-templates/></ul>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <span class="artcopy"><xsl:apply-templates/></span>
- </xsl:otherwise>
- </xsl:choose><p/>
- </xsl:template>
-
- <xsl:template match="gh1">
- <p>
- <h3>
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </h3>
- <xsl:apply-templates select="bibp|gh2"/>
-
- <!-- put 1.5 fix here -->
-
- <xsl:if test="authcr">
- <br><xsl:apply-templates select="authcr"/></br>
- </xsl:if>
-
- </p>
- </xsl:template>
-
- <xsl:template match="gh2">
- <p>
- <h4>
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </h4>
- <xsl:apply-templates select="bibp"/>
-
- <!-- put 1.5 fix here -->
-
- <xsl:if test="authcr">
- <br><xsl:apply-templates select="authcr"/></br>
- </xsl:if>
-
- </p>
- </xsl:template>
-
- <!-- end mwks process -->
-
- <xsl:template match="biblio">
- <h2>Additional reading</h2>
- <p>
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@euid"/>&tocid=<xsl:value-of select="@tocid"/>#<xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates/>
- </a>
- </p>
- </xsl:template>
-
- <!-- new element for ebi's bibp -->
- <xsl:template match="bibsubhead">
- <h3><xsl:apply-templates/></h3>
- </xsl:template>
-
- <!-- new element for ebi's bibp -->
- <xsl:template match="bibxref">
- <xsl:apply-templates/>
- </xsl:template>
-
- <!-- not sure what this is for -->
- <xsl:template match="cdate/p">
- <xsl:if test="descendant::asset[not(parent::inline)]">
- <table align="left" width="120" cellspacing="0" cellpadding="0" border="0">
- <tr>
- <td width="110" valign="top">
- <xsl:apply-templates select="descendant::assembly" mode="thumb"/>
- </td>
- <td width="10">
- </td>
- </tr>
- </table>
- </xsl:if>
-
- <p>
- <xsl:if test="position() = 1">
- <font color="#660000">
- <b><xsl:value-of select="../@value"/></b>
- </font>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
-
- <xsl:template match="event">
- <!-- not sure if we need to do this -->
- </xsl:template>
-
- <!-- btw backref stuff -->
- <xsl:template match="backref">
- <xsl:apply-templates select="xref">
- <xsl:with-param name="text">Return to article</xsl:with-param>
- </xsl:apply-templates>
- </xsl:template>
-
- <xsl:template match="sourcelist">
- <p>
- <xsl:apply-templates select="sourcehead"/>
- <ul>
- <xsl:for-each select="source">
- <xsl:apply-templates/>
- </xsl:for-each>
- </ul>
- </p>
- </xsl:template>
-
- <xsl:template match="source">
- <li><xsl:apply-templates/></li>
- </xsl:template>
-
- <!-- classics stuff -->
- <xsl:template match="byline">
- <h4>by <xsl:apply-templates/></h4>
- </xsl:template>
-
- <xsl:template match="prefnote">
- <h5><xsl:apply-templates/></h5>
- </xsl:template>
-
- <xsl:template match="classicbody">
- <!-- per Core meeting, not to output this text. bug# 853 -->
- <!--p><b><xsl:value-of select="@name"/></b></p-->
-
- <!-- it's important to implement the following tag exactly, as it will later be matched in a regular expression -->
- <classic tocid="{@tocid}"></classic>
- </xsl:template>
-
- <xsl:template match="note">
- <h5><xsl:apply-templates/></h5>
- </xsl:template>
-
- <xsl:template match="gp">
- <xsl:apply-templates/><br/>
- </xsl:template>
-
- <xsl:template match="reference">
- <i><xsl:apply-templates/></i>
- </xsl:template>
-
- <xsl:template match="pubdate">
- <xsl:apply-templates/>
- </xsl:template>
-
-
- <!-- xsl for flag history article type -->
- <xsl:template match="flaghistory">
- <html>
- <head>
- <title><xsl:apply-templates select="title/titltxt"/></title>
- </head>
- <body>
- <xsl:apply-templates/>
- </body>
- </html>
- </xsl:template>
-
- <xsl:template match="titltxt">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="titlsub">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="courtcase">
- <i><xsl:apply-templates select="party1"/></i> v. <i><xsl:apply-templates select="party2"/></i>
- </xsl:template>
-
- <xsl:template match="description">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="flagimg">
- <xsl:call-template name="regular_fullsize">
- <xsl:with-param name="alt">flag</xsl:with-param>
- </xsl:call-template><br/>
- </xsl:template>
-
- <xsl:template match="desctxt">
- <p><xsl:apply-templates/></p>
- </xsl:template>
-
- <xsl:template match="frac">
- <xsl:text> </xsl:text><xsl:apply-templates select="num"/>/<xsl:apply-templates select="den"/>
- </xsl:template>
-
- </xsl:stylesheet>
-