Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit380895f

Browse files
committed
doc: Further XSLT HTML build performance optimization
Cut out some expensive stuff from the HTML head element that we don'treally need.This was previously discussed as part ofe830674, but ended up separate becauseit changes the output contents slightly.
1 parente36ddab commit380895f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

‎doc/src/sgml/stylesheet-speedup-xhtml.xsl

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,4 +251,45 @@
251251
</xsl:call-template>
252252
</xsl:template>
253253

254+
<xsl:templatename="html.head">
255+
<xsl:paramname="prev"select="/foo"/>
256+
<xsl:paramname="next"select="/foo"/>
257+
258+
<!-- Optimization for pgsql-docs: Cut out a bunch of things we don't need
259+
here, including an expensive //legalnotice search.-->
260+
261+
<head>
262+
<xsl:call-templatename="system.head.content"/>
263+
<xsl:call-templatename="head.content"/>
264+
265+
<xsl:iftest="$prev">
266+
<linkrel="prev">
267+
<xsl:attributename="href">
268+
<xsl:call-templatename="href.target">
269+
<xsl:with-paramname="object"select="$prev"/>
270+
</xsl:call-template>
271+
</xsl:attribute>
272+
<xsl:attributename="title">
273+
<xsl:apply-templatesselect="$prev"mode="object.title.markup.textonly"/>
274+
</xsl:attribute>
275+
</link>
276+
</xsl:if>
277+
278+
<xsl:iftest="$next">
279+
<linkrel="next">
280+
<xsl:attributename="href">
281+
<xsl:call-templatename="href.target">
282+
<xsl:with-paramname="object"select="$next"/>
283+
</xsl:call-template>
284+
</xsl:attribute>
285+
<xsl:attributename="title">
286+
<xsl:apply-templatesselect="$next"mode="object.title.markup.textonly"/>
287+
</xsl:attribute>
288+
</link>
289+
</xsl:if>
290+
291+
<xsl:call-templatename="user.head.content"/>
292+
</head>
293+
</xsl:template>
294+
254295
</xsl:stylesheet>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp