- Timestamp:
- 10/08/2013 08:03:29 PM (11 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 58675ce
- Parents:
- 09a35dd
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/common/targets.xsl
r09a35dd r15c7d39 2 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 3 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" 4 exclude-result-prefixes="doc" 4 xmlns:exsl="http://exslt.org/common" 5 exclude-result-prefixes="doc exsl" 5 6 version='1.0'> 6 7 7 8 <!-- ******************************************************************** 8 $Id $9 $Id: targets.xsl 9286 2012-04-19 10:10:58Z bobstayton $ 9 10 ******************************************************************** 10 11 … … 230 231 </xsl:template> 231 232 233 <xsl:template match="topic" mode="olink.mode"> 234 <xsl:call-template name="div"/> 235 </xsl:template> 236 232 237 <xsl:template match="bibliography|bibliodiv" mode="olink.mode"> 233 238 <xsl:call-template name="div"/> … … 261 266 <xsl:template match="qandaset|qandaentry" mode="olink.mode"> 262 267 <xsl:call-template name="div"/> 268 </xsl:template> 269 270 <!-- handle an glossary collection --> 271 <xsl:template match="glossary[@role='auto']" mode="olink.mode" priority="2"> 272 <xsl:variable name="collection" select="document($glossary.collection, .)"/> 273 <xsl:if test="$glossary.collection = ''"> 274 <xsl:message> 275 <xsl:text>Warning: processing automatic glossary </xsl:text> 276 <xsl:text>without a glossary.collection file.</xsl:text> 277 </xsl:message> 278 </xsl:if> 279 280 <xsl:if test="not($collection) and $glossary.collection != ''"> 281 <xsl:message> 282 <xsl:text>Warning: processing automatic glossary but unable to </xsl:text> 283 <xsl:text>open glossary.collection file '</xsl:text> 284 <xsl:value-of select="$glossary.collection"/> 285 <xsl:text>'</xsl:text> 286 </xsl:message> 287 </xsl:if> 288 289 290 <xsl:if test="$exsl.node.set.available != 0"> 291 <xsl:variable name="auto.glossary"> 292 <xsl:apply-templates select="." mode="assemble.auto.glossary"/> 293 </xsl:variable> 294 <xsl:variable name="auto.glossary.nodeset" select="exsl:node-set($auto.glossary)"/> 295 <xsl:apply-templates select="$auto.glossary.nodeset/*" mode="olink.mode"/> 296 </xsl:if> 297 298 </xsl:template> 299 300 <!-- construct a glossary in memory --> 301 <xsl:template match="glossary" mode="assemble.auto.glossary"> 302 <xsl:copy> 303 <xsl:copy-of select="@*[not(local-name() = 'role')]"/> 304 <xsl:apply-templates select="node()" mode="assemble.auto.glossary"/> 305 <xsl:call-template name="select.glossentries"/> 306 </xsl:copy> 307 </xsl:template> 308 309 <xsl:template name="select.glossentries"> 310 <xsl:param name="collection" select="document($glossary.collection, .)"/> 311 <xsl:param name="terms" select="//glossterm[not(parent::glossdef)]|//firstterm"/> 312 313 <xsl:for-each select="$collection//glossentry"> 314 <xsl:variable name="cterm" select="glossterm"/> 315 <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> 316 <xsl:copy-of select="."/> 317 </xsl:if> 318 </xsl:for-each> 319 </xsl:template> 320 321 <xsl:template match="glossentry" mode="assemble.auto.glossary"> 322 <!-- skip the dummy entries --> 323 </xsl:template> 324 325 <xsl:template match="*" mode="assemble.auto.glossary"> 326 <!-- pass through any titles and intro stuff --> 327 <xsl:copy-of select="."/> 263 328 </xsl:template> 264 329
Note:
See TracChangeset
for help on using the changeset viewer.