lib/isodoc/ogc/ogc.reference-model.xsl in metanorma-ogc-2.2.0 vs lib/isodoc/ogc/ogc.reference-model.xsl in metanorma-ogc-2.2.1

- old
+ new

@@ -1942,10 +1942,13 @@ </xsl:attribute-set> <xsl:attribute-set name="import-style"> </xsl:attribute-set> + <xsl:attribute-set name="component-style"> + </xsl:attribute-set> + <xsl:attribute-set name="recommendation-style"> <xsl:attribute name="margin-top">6pt</xsl:attribute> </xsl:attribute-set> @@ -7900,41 +7903,47 @@ <fo:block xsl:use-attribute-sets="subject-style"> <xsl:text>Target Type </xsl:text><xsl:apply-templates/> </fo:block> </xsl:template> - <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit']"> + <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']"> <fo:block xsl:use-attribute-sets="inherit-style"> <xsl:text>Dependency </xsl:text><xsl:apply-templates/> </fo:block> </xsl:template> - <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description']"> + <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']"> <fo:block xsl:use-attribute-sets="description-style"> <xsl:apply-templates/> </fo:block> </xsl:template> - <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification']"> + <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']"> <fo:block xsl:use-attribute-sets="specification-style"> <xsl:apply-templates/> </fo:block> </xsl:template> - <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target']"> + <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']"> <fo:block xsl:use-attribute-sets="measurement-target-style"> <xsl:apply-templates/> </fo:block> </xsl:template> - <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification']"> + <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']"> <fo:block xsl:use-attribute-sets="verification-style"> <xsl:apply-templates/> </fo:block> </xsl:template> - <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import']"> + <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']"> <fo:block xsl:use-attribute-sets="import-style"> + <xsl:apply-templates/> + </fo:block> + </xsl:template> + + <xsl:template match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]"> + <fo:block xsl:use-attribute-sets="component-style"> <xsl:apply-templates/> </fo:block> </xsl:template> <!-- ========== --> <!-- END --> \ No newline at end of file