<!---->
<
xsl:
stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:tps="
http://www.typefi.com/ContentXML"
xmlns:xd="
http://www.pnp-software.com/XSLTdoc"
version="
2.0"
exclude-result-prefixes="
xs tps">
<
xd:
doc type="
stylesheet">
<
xd:
short>
Contains conversion logic for references
</
xd:
short>
<
xd:
cvsId>
$Revision$</
xd:
cvsId>
</
xd:
doc>
<
xsl:
template match="
ref-list">
<
xsl:
apply-templates select="
element() except label" />
</
xsl:
template>
<
xsl:
template match="
ref-list/label">
<
xsl:
apply-templates />
<
xsl:
text>
. </
xsl:
text>
</
xsl:
template>
<
xsl:
template match="
ref-list/title">
<
tps:
p type="
{$ref-list.title.para.type}">
<
xsl:
apply-templates select="
../label" />
<
xsl:
apply-templates />
</
tps:
p>
</
xsl:
template>
<
xsl:
template match="
ref">
<
tps:
p type="
{$ref.para.type}">
<
xsl:
apply-templates select="
@*" />
<
xsl:
apply-templates />
</
tps:
p>
</
xsl:
template>
<
xsl:
template match="
ref/@id">
<
xsl:
copy-of select="
." />
</
xsl:
template>
<
xsl:
template match="
ref/label">
<
xsl:
apply-templates />
<
xsl:
text>
. </
xsl:
text>
</
xsl:
template>
<!---->
<
xsl:
template match="
mixed-citation">
<
xsl:
apply-templates select="
node()"
mode="
mixed-citation" />
</
xsl:
template>
<
xsl:
template match="
element()"
mode="
mixed-citation">
<
xsl:
apply-templates mode="
mixed-citation" />
</
xsl:
template>
<
xsl:
template match="
text()"
mode="
mixed-citation">
<
xsl:
sequence select="
tps:get-text-mapping-result(.)" />
</
xsl:
template>
<
xsl:
template match="
person-group/name[last()]"
priority="
10">
<
xsl:
apply-templates />
<
xsl:
text>
. </
xsl:
text>
</
xsl:
template>
<
xsl:
template match="
person-group/name">
<
xsl:
apply-templates />
<
xsl:
text>
, </
xsl:
text>
</
xsl:
template>
<
xsl:
template match="
person-group/name/surname">
<
xsl:
apply-templates />
<
xsl:
text>
</
xsl:
text>
</
xsl:
template>
<
xsl:
template match="
element-citation/source | citation/source">
<
xsl:
apply-templates />
<
xsl:
text>
</
xsl:
text>
</
xsl:
template>
<
xsl:
template match="
element-citation/article-title | citation/article-title">
<
xsl:
apply-templates />
<
xsl:
text>
</
xsl:
text>
</
xsl:
template>
<
xsl:
template match="
element-citation/volume | citation/volume">
<
xsl:
apply-templates />
<
xsl:
text>
:</
xsl:
text>
</
xsl:
template>
<
xsl:
template match="
element-citation/fpage | citation/fpage">
<
xsl:
apply-templates />
<
xsl:
text>
-</
xsl:
text>
</
xsl:
template>
<
xsl:
template match="
element-citation/lpage | citation/lpage">
<
xsl:
apply-templates />
<
xsl:
text>
.</
xsl:
text>
</
xsl:
template>
<
xsl:
template match="
element-citation/year | citation/year">
<
xsl:
apply-templates />
<
xsl:
text>
; </
xsl:
text>
</
xsl:
template>
</
xsl:
stylesheet>
v