1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
6 <xsl:import href=
"http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
7 <xsl:include href=
"common.xsl"/>
14 <xsl:param name=
"citerefentry.link">1</xsl:param>
15 <xsl:param name=
"funcsynopsis.style">ansi
</xsl:param>
16 <xsl:param name=
"html.stylesheet">manpage.css
</xsl:param>
19 ! Generate urls for citations.
21 <xsl:template name=
"generate.citerefentry.link">
25 ! Link EGL citations to
26 ! href="http://www.khronos.org/registry/egl/sdk/docs/man/xhtml/$refentrytitle.html".
28 <xsl:when test=
"starts-with(refentrytitle, 'egl')">
29 <xsl:text>http://www.khronos.org/registry/egl/sdk/docs/man/xhtml/
</xsl:text>
30 <xsl:value-of select=
"refentrytitle"/>
31 <xsl:text>.html
</xsl:text>
35 ! Link GLX citations to
36 ! href="http://www.opengl.org/sdk/docs/man2/xhtml/$refentrytitle.xml".
38 <xsl:when test=
"starts-with(refentrytitle, 'glX')">
39 <xsl:text>http://www.opengl.org/sdk/docs/man2/xhtml/
</xsl:text>
40 <xsl:value-of select=
"refentrytitle"/>
41 <xsl:text>.xml
</xsl:text>
45 ! If a citation's title begins with "waffle_$x", then link it with
46 ! href="waffle_$x.$manvolnum.html". For example, link a citation
47 ! to waffle_context_create(3) with href="waffle_context.3.html".
50 <!-- sorted alphabetically -->
51 <xsl:when test=
"starts-with(refentrytitle, 'waffle_attrib_list')">
52 <xsl:text>waffle_attrib_list
.3.html
</xsl:text>
54 <xsl:when test=
"starts-with(refentrytitle, 'waffle_config')">
55 <xsl:text>waffle_config
.3.html
</xsl:text>
57 <xsl:when test=
"starts-with(refentrytitle, 'waffle_context')">
58 <xsl:text>waffle_context
.3.html
</xsl:text>
60 <xsl:when test=
"starts-with(refentrytitle, 'waffle_display')">
61 <xsl:text>waffle_display
.3.html
</xsl:text>
63 <xsl:when test=
"starts-with(refentrytitle, 'waffle_dl')">
64 <xsl:text>waffle_dl
.3.html
</xsl:text>
66 <xsl:when test=
"starts-with(refentrytitle, 'waffle_enum')">
67 <xsl:text>waffle_enum
.3.html
</xsl:text>
69 <xsl:when test=
"starts-with(refentrytitle, 'waffle_error')">
70 <xsl:text>waffle_error
.3.html
</xsl:text>
72 <xsl:when test=
"starts-with(refentrytitle, 'waffle_gbm')">
73 <xsl:text>waffle_gbm
.3.html
</xsl:text>
75 <xsl:when test=
"starts-with(refentrytitle, 'waffle_glx')">
76 <xsl:text>waffle_glx
.3.html
</xsl:text>
78 <xsl:when test=
"starts-with(refentrytitle, 'waffle_native')">
79 <xsl:text>waffle_native
.3.html
</xsl:text>
81 <xsl:when test=
"starts-with(refentrytitle, 'waffle_wayland')">
82 <xsl:text>waffle_wayland
.3.html
</xsl:text>
84 <xsl:when test=
"starts-with(refentrytitle, 'waffle_window')">
85 <xsl:text>waffle_window
.3.html
</xsl:text>
87 <xsl:when test=
"starts-with(refentrytitle, 'waffle_xegl')">
88 <xsl:text>waffle_xegl
.3.html
</xsl:text>
92 ! If a citation's title begins with "wflinfo", then link it with
93 ! href="wflinfo.$manvolnum.html".
95 <xsl:when test=
"starts-with(refentrytitle, 'wflinfo')">
96 <xsl:text>wflinfo
.1.html
</xsl:text>
100 ! For citations that begin with "waffle" but were not matched above,
101 ! we assume that the citation title is the refentrytitle of a
102 ! manpage. Link with href="$refentrytitle.$manvolnum.html".
104 <xsl:when test=
"starts-with(refentrytitle, 'waffle')">
105 <xsl:value-of select=
"refentrytitle"/>
106 <xsl:text>.
</xsl:text>
107 <xsl:value-of select=
"manvolnum"/>
108 <xsl:text>.html
</xsl:text>
112 ! Link all unmatched citations with
113 ! href="http://linuxmanpages.net/manpages/fedora17/man/$manvolnum/$refentrytitle.html".
116 <xsl:text>http://linuxmanpages.net/manpages/fedora17/man
</xsl:text>
117 <xsl:value-of select=
"manvolnum"/>
118 <xsl:text>/
</xsl:text>
119 <xsl:value-of select=
"refentrytitle"/>
120 <xsl:text>.
</xsl:text>
121 <xsl:value-of select=
"manvolnum"/>
122 <xsl:text>.html
</xsl:text>