Skip to content

Commit

Permalink
OGC xslt optimized, #730
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Aug 16, 2024
1 parent 224b1f7 commit 037d24e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
18 changes: 9 additions & 9 deletions xslt_src/ogc.standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,6 @@
<xsl:template match="/">
<xsl:call-template name="namespaceCheck"/>

<xsl:variable name="updated_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:variable>

<xsl:for-each select="xalan:nodeset($updated_xml_step1)">

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xml:lang="{$lang}">
<xsl:variable name="root-style">
<root-style xsl:use-attribute-sets="root-style"/>
Expand Down Expand Up @@ -608,6 +602,12 @@

<xsl:for-each select="xalan:nodeset($updated_xml)/*"> -->

<xsl:variable name="updated_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:variable>

<xsl:for-each select="xalan:nodeset($updated_xml_step1)">

<xsl:variable name="updated_xml_with_pages">
<xsl:call-template name="processPrefaceAndMainSectionsOGC_items"/>
</xsl:variable>
Expand Down Expand Up @@ -721,13 +721,13 @@
</xsl:for-each>
</xsl:for-each>
<!-- </xsl:for-each> -->

<xsl:apply-templates select="//ogc:indexsect" mode="sections"/>

</xsl:for-each>

</fo:root>
</fo:root>

</xsl:for-each>
</xsl:template>


Expand Down
7 changes: 0 additions & 7 deletions xslt_src/ogc.white-paper.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@
<xsl:template match="/">
<xsl:call-template name="namespaceCheck"/>

<xsl:variable name="updated_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:variable>

<xsl:for-each select="xalan:nodeset($updated_xml_step1)">

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xml:lang="{$lang}">
<xsl:variable name="root-style">
<root-style xsl:use-attribute-sets="root-style"/>
Expand Down Expand Up @@ -296,7 +290,6 @@

</fo:root>

</xsl:for-each>
</xsl:template>


Expand Down

0 comments on commit 037d24e

Please sign in to comment.