Project

Profile

Help

Bug #4683 » transform.xsl

Erica Coan, 2020-08-13 19:25

 
<?altova_samplexml input.xml?>
<xsl:transform version="3.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--<xsl:include href="../DocOpsFunctions/DocOpsFunctions.xsl"/>-->
<xsl:output method="html" indent="yes" omit-xml-declaration="no" use-character-maps="a" encoding="utf-8"/>
<xsl:character-map name="a">
<xsl:output-character character="&lt;" string="&lt;"/>
<xsl:output-character character="&gt;" string="&gt;"/>
</xsl:character-map>
<xsl:param name="formName" select="replace(replace(tokenize(base-uri(),'/')[position() = last()],'.xml',''),'%20',' ')"/>
<xsl:param name="includeComments" select="'N'"/>

<xsl:template match="/">
<xsl:for-each select="//sectPr">
<xsl:message select="count(ancestor::p/preceding-sibling::p/descendant::sectPr)"/>
</xsl:for-each>
</xsl:template>
</xsl:transform>
(1-1/2)