<!---->
<
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="
#all">
<
xd:
doc type="
stylesheet">
<
xd:
short>
Dedicated module for conversion of <
xd:
xml><
xref /></
xd:
xml>
and corresponding configuration.
</
xd:
short>
<
xd:
cvsId>
$Revision$</
xd:
cvsId>
</
xd:
doc>
<
xsl:
template match="
xref[tps:transformable-as-doclink(.) and tps:transformed-to-doclink(.)]"
priority="
10">
<
tps:
doclink refType="
paragraph"
refId="
{@rid}">
<
xsl:
apply-templates />
</
tps:
doclink>
</
xsl:
template>
<!---->
<
xsl:
function name="
tps:transformed-to-doclink"
as="
xs:boolean">
<
xsl:
param name="
xref"
as="
element(xref)" />
<
xsl:
sequence select="
$xref/@ref-type = $xref.to.doclink.types" />
</
xsl:
function>
<!---->
<
xsl:
function name="
tps:transformable-as-doclink"
as="
xs:boolean">
<
xsl:
param name="
xref"
as="
element(xref)" />
<
xsl:
sequence select="
$xref/@ref-type = ('aff', 'app', 'bibr', 'boxed-text', 'corresp', 'disp-formula', 'fig', 'list', 'table')" />
</
xsl:
function>
</
xsl:
stylesheet>
v