- Timestamp:
- 12/10/2013 11:37:38 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- 112db9d
- Parents:
- f2a5108
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/common/subtitles.xsl
rf2a5108 rb1a51ac1 6 6 7 7 <!-- ******************************************************************** 8 $Id $8 $Id: subtitles.xsl 9286 2012-04-19 10:10:58Z bobstayton $ 9 9 ******************************************************************** 10 10 … … 30 30 31 31 <xsl:template match="*" mode="subtitle.markup"> 32 <xsl:message> 33 <xsl:text>Request for subtitle of unexpected element: </xsl:text> 34 <xsl:value-of select="local-name(.)"/> 35 </xsl:message> 36 <xsl:text>???SUBTITLE???</xsl:text> 32 <xsl:param name="verbose" select="1"/> 33 <xsl:if test="$verbose != 0"> 34 <xsl:message> 35 <xsl:text>Request for subtitle of unexpected element: </xsl:text> 36 <xsl:value-of select="local-name(.)"/> 37 </xsl:message> 38 <xsl:text>???SUBTITLE???</xsl:text> 39 </xsl:if> 37 40 </xsl:template> 38 41 39 42 <xsl:template match="subtitle" mode="subtitle.markup"> 40 43 <xsl:param name="allow-anchors" select="'0'"/> 44 <xsl:param name="verbose" select="1"/> 41 45 <xsl:apply-templates/> 42 46 </xsl:template> … … 44 48 <xsl:template match="set" mode="subtitle.markup"> 45 49 <xsl:param name="allow-anchors" select="'0'"/> 50 <xsl:param name="verbose" select="1"/> 46 51 <xsl:apply-templates select="(setinfo/subtitle|info/subtitle|subtitle)[1]" 47 52 mode="subtitle.markup"> 48 53 <xsl:with-param name="allow-anchors" select="$allow-anchors"/> 54 <xsl:with-param name="verbose" select="$verbose"/> 49 55 </xsl:apply-templates> 50 56 </xsl:template> … … 52 58 <xsl:template match="book" mode="subtitle.markup"> 53 59 <xsl:param name="allow-anchors" select="'0'"/> 60 <xsl:param name="verbose" select="1"/> 54 61 <xsl:apply-templates select="(bookinfo/subtitle|info/subtitle|subtitle)[1]" 55 62 mode="subtitle.markup"> 56 63 <xsl:with-param name="allow-anchors" select="$allow-anchors"/> 64 <xsl:with-param name="verbose" select="$verbose"/> 57 65 </xsl:apply-templates> 58 66 </xsl:template> … … 60 68 <xsl:template match="part" mode="subtitle.markup"> 61 69 <xsl:param name="allow-anchors" select="'0'"/> 70 <xsl:param name="verbose" select="1"/> 62 71 <xsl:apply-templates select="(partinfo/subtitle 63 72 |docinfo/subtitle … … 66 75 mode="subtitle.markup"> 67 76 <xsl:with-param name="allow-anchors" select="$allow-anchors"/> 77 <xsl:with-param name="verbose" select="$verbose"/> 68 78 </xsl:apply-templates> 69 79 </xsl:template> … … 71 81 <xsl:template match="preface|chapter|appendix" mode="subtitle.markup"> 72 82 <xsl:param name="allow-anchors" select="'0'"/> 83 <xsl:param name="verbose" select="1"/> 73 84 <xsl:apply-templates select="(docinfo/subtitle 74 85 |info/subtitle … … 79 90 mode="subtitle.markup"> 80 91 <xsl:with-param name="allow-anchors" select="$allow-anchors"/> 92 <xsl:with-param name="verbose" select="$verbose"/> 81 93 </xsl:apply-templates> 82 94 </xsl:template> … … 84 96 <xsl:template match="article" mode="subtitle.markup"> 85 97 <xsl:param name="allow-anchors" select="'0'"/> 98 <xsl:param name="verbose" select="1"/> 86 99 <xsl:apply-templates select="(artheader/subtitle 87 100 |articleinfo/subtitle … … 90 103 mode="subtitle.markup"> 91 104 <xsl:with-param name="allow-anchors" select="$allow-anchors"/> 105 <xsl:with-param name="verbose" select="$verbose"/> 92 106 </xsl:apply-templates> 93 107 </xsl:template> … … 95 109 <xsl:template match="dedication|colophon" mode="subtitle.markup"> 96 110 <xsl:param name="allow-anchors" select="'0'"/> 111 <xsl:param name="verbose" select="1"/> 97 112 <xsl:apply-templates select="(subtitle|info/subtitle)[1]" 98 113 mode="subtitle.markup"> 99 114 <xsl:with-param name="allow-anchors" select="$allow-anchors"/> 115 <xsl:with-param name="verbose" select="$verbose"/> 100 116 </xsl:apply-templates> 101 117 </xsl:template> … … 103 119 <xsl:template match="reference" mode="subtitle.markup"> 104 120 <xsl:param name="allow-anchors" select="'0'"/> 121 <xsl:param name="verbose" select="1"/> 105 122 <xsl:apply-templates select="(referenceinfo/subtitle 106 123 |docinfo/subtitle … … 109 126 mode="subtitle.markup"> 110 127 <xsl:with-param name="allow-anchors" select="$allow-anchors"/> 128 <xsl:with-param name="verbose" select="$verbose"/> 111 129 </xsl:apply-templates> 112 130 </xsl:template> … … 114 132 <xsl:template match="qandaset" mode="subtitle.markup"> 115 133 <xsl:param name="allow-anchors" select="'0'"/> 134 <xsl:param name="verbose" select="1"/> 116 135 <xsl:apply-templates select="(blockinfo/subtitle|info/subtitle)[1]" 117 136 mode="subtitle.markup"> 118 137 <xsl:with-param name="allow-anchors" select="$allow-anchors"/> 138 <xsl:with-param name="verbose" select="$verbose"/> 119 139 </xsl:apply-templates> 120 140 </xsl:template> … … 122 142 <xsl:template match="refentry" mode="subtitle.markup"> 123 143 <xsl:param name="allow-anchors" select="'0'"/> 144 <xsl:param name="verbose" select="1"/> 124 145 <xsl:apply-templates select="(refentryinfo/subtitle 125 146 |info/subtitle … … 127 148 mode="subtitle.markup"> 128 149 <xsl:with-param name="allow-anchors" select="$allow-anchors"/> 150 <xsl:with-param name="verbose" select="$verbose"/> 129 151 </xsl:apply-templates> 130 152 </xsl:template> … … 133 155 |sect1|sect2|sect3|sect4|sect5 134 156 |refsect1|refsect2|refsect3 157 |topic 135 158 |simplesect" 136 159 mode="subtitle.markup"> 137 160 <xsl:param name="allow-anchors" select="'0'"/> 161 <xsl:param name="verbose" select="1"/> 138 162 <xsl:apply-templates select="(info/subtitle 139 163 |sectioninfo/subtitle … … 149 173 mode="subtitle.markup"> 150 174 <xsl:with-param name="allow-anchors" select="$allow-anchors"/> 175 <xsl:with-param name="verbose" select="$verbose"/> 151 176 </xsl:apply-templates> 152 177 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.