Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xslt update based on metanorma/mn-native-pdf@512b2ed9f3774fd01d3cd954b42ce39b8b90beb7 #275

Merged
merged 1 commit into from
Feb 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions lib/isodoc/csa/csa.standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -12045,6 +12045,40 @@
<xsl:template match="*[local-name() = 'fmt-xref-label']" mode="update_xml_step1"/>
<xsl:template match="*[local-name() = 'fmt-xref-label']" mode="update_xml_pres"/>

<xsl:template match="*[local-name() = 'requirement'] | *[local-name() = 'recommendation'] | *[local-name() = 'permission']" mode="update_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:template>

<xsl:template match="*[local-name() = 'requirement'] | *[local-name() = 'recommendation'] | *[local-name() = 'permission']" mode="update_xml_pres">
<xsl:apply-templates mode="update_xml_pres"/>
</xsl:template>

<xsl:template match="*[local-name() = 'requirement']/*[not(starts-with(local-name(), 'fmt-'))] | *[local-name() = 'recommendation']/*[not(starts-with(local-name(), 'fmt-'))] | *[local-name() = 'permission']/*[not(starts-with(local-name(), 'fmt-'))]" mode="update_xml_step1"/>

<xsl:template match="*[local-name() = 'requirement']/*[not(starts-with(local-name(), 'fmt-'))] | *[local-name() = 'recommendation']/*[not(starts-with(local-name(), 'fmt-'))] | *[local-name() = 'permission']/*[not(starts-with(local-name(), 'fmt-'))]" mode="update_xml_pres"/>

<xsl:template match="*[local-name() = 'fmt-provision']" mode="update_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:template>
<xsl:template match="*[local-name() = 'fmt-provision']" mode="update_xml_pres">
<xsl:apply-templates mode="update_xml_pres"/>
</xsl:template>

<xsl:template match="*[local-name() = 'identifier']" mode="update_xml_step1"/>
<xsl:template match="*[local-name() = 'identifier']" mode="update_xml_pres"/>
<xsl:template match="*[local-name() = 'fmt-identifier']" mode="update_xml_step1">
<xsl:element name="identifier" namespace="{$namespace_full}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:element>
</xsl:template>
<xsl:template match="*[local-name() = 'fmt-identifier']" mode="update_xml_pres">
<xsl:element name="identifier" namespace="{$namespace_full}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="update_xml_pres"/>
</xsl:element>
</xsl:template>

<!-- END: update new Presentation XML -->

<!-- =========================================================================== -->
Expand Down