Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
909cb78a
Commit
909cb78a
authored
Dec 22, 2016
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Further speed improvements for HTML XSLT build
parent
cd1b2156
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
doc/src/sgml/stylesheet-speedup-common.xsl
doc/src/sgml/stylesheet-speedup-common.xsl
+6
-0
doc/src/sgml/stylesheet-speedup-xhtml.xsl
doc/src/sgml/stylesheet-speedup-xhtml.xsl
+50
-0
No files found.
doc/src/sgml/stylesheet-speedup-common.xsl
View file @
909cb78a
...
@@ -91,4 +91,10 @@
...
@@ -91,4 +91,10 @@
</xsl:choose>
</xsl:choose>
</xsl:template>
</xsl:template>
<!-- from common/l10n.xsl -->
<!-- Just hardcode the language for the whole document, to make it faster. -->
<xsl:template
name=
"l10n.language"
>
en
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
doc/src/sgml/stylesheet-speedup-xhtml.xsl
View file @
909cb78a
...
@@ -251,6 +251,56 @@
...
@@ -251,6 +251,56 @@
</xsl:call-template>
</xsl:call-template>
</xsl:template>
</xsl:template>
<xsl:template
name=
"href.target"
>
<xsl:param
name=
"context"
select=
"."
/>
<xsl:param
name=
"object"
select=
"."
/>
<xsl:param
name=
"toc-context"
select=
"."
/>
<!-- Optimization for pgsql-docs: Remove support for dbhtml processing
instruction here -->
<xsl:variable
name=
"href.to.uri"
>
<xsl:call-template
name=
"href.target.uri"
>
<xsl:with-param
name=
"object"
select=
"$object"
/>
</xsl:call-template>
</xsl:variable>
<xsl:variable
name=
"href.from.uri"
>
<xsl:choose>
<xsl:when
test=
"not($toc-context = .)"
>
<xsl:call-template
name=
"href.target.uri"
>
<xsl:with-param
name=
"object"
select=
"$toc-context"
/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template
name=
"href.target.uri"
>
<xsl:with-param
name=
"object"
select=
"$context"
/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable
name=
"href.to"
>
<xsl:value-of
select=
"$href.to.uri"
/>
</xsl:variable>
<xsl:variable
name=
"href.from"
>
<xsl:call-template
name=
"trim.common.uri.paths"
>
<xsl:with-param
name=
"uriA"
select=
"$href.to.uri"
/>
<xsl:with-param
name=
"uriB"
select=
"$href.from.uri"
/>
<xsl:with-param
name=
"return"
select=
"'B'"
/>
</xsl:call-template>
</xsl:variable>
<xsl:variable
name=
"depth"
>
<xsl:call-template
name=
"count.uri.path.depth"
>
<xsl:with-param
name=
"filename"
select=
"$href.from"
/>
</xsl:call-template>
</xsl:variable>
<xsl:variable
name=
"href"
>
<xsl:call-template
name=
"copy-string"
>
<xsl:with-param
name=
"string"
select=
"'../'"
/>
<xsl:with-param
name=
"count"
select=
"$depth"
/>
</xsl:call-template>
<xsl:value-of
select=
"$href.to"
/>
</xsl:variable>
<xsl:value-of
select=
"$href"
/>
</xsl:template>
<xsl:template
name=
"html.head"
>
<xsl:template
name=
"html.head"
>
<xsl:param
name=
"prev"
select=
"/foo"
/>
<xsl:param
name=
"prev"
select=
"/foo"
/>
<xsl:param
name=
"next"
select=
"/foo"
/>
<xsl:param
name=
"next"
select=
"/foo"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment