<!---->
<
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>
This module handles conversion of document element
<
xd:
xml><
article /></
xd:
xml>
and insertion of project and section fields.
</
xd:
short>
<
xd:
cvsId>
$Revision$</
xd:
cvsId>
</
xd:
doc>
<
xsl:
template match="
article">
<
xsl:
call-template name="
insert-build-details-comment" />
<
tps:
content xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
schemaVersion="
2.2"
xsi:schemaLocation="
http://www.typefi.com/ContentXML http://www.typefi.com/TPS/content/2_2/ContentXML.xsd"
whiteSpaceMode="
preserve">
<
xsl:
call-template name="
insert-article-project-fields" />
<
tps:
section type="
{tps:get-article-section-type(.)}"
id="
{generate-id()}">
<
xsl:
call-template name="
insert-article-section-fields" />
<
xsl:
apply-templates />
</
tps:
section>
</
tps:
content>
</
xsl:
template>
<
xsl:
template name="
insert-article-project-fields">
<
tps:
fieldSet name="
buildID"
value="
{tps:get-build-details()}" />
</
xsl:
template>
<
xsl:
template name="
insert-article-section-fields" />
<
xsl:
function name="
tps:get-article-section-type">
<
xsl:
param name="
article"
as="
element(article)" />
<
xsl:
sequence select="
$article.section.type.default" />
</
xsl:
function>
</
xsl:
stylesheet>
v