Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 23181 Details for
Bug 31672
No pdf-version of the install guide available online
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
guide2pdf.xsl stylesheet (not 100% functional)
guide2pdf.xsl (text/xsl), 17.22 KB, created by
Sven Vermeulen (RETIRED)
on 2004-01-05 05:45:08 UTC
(
hide
)
Description:
guide2pdf.xsl stylesheet (not 100% functional)
Filename:
MIME Type:
Creator:
Sven Vermeulen (RETIRED)
Created:
2004-01-05 05:45:08 UTC
Size:
17.22 KB
patch
obsolete
><?xml version="1.0" encoding="UTF-8"?> ><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0"> ><xsl:output encoding="UTF-8" method="xml" indent="yes"/> ><xsl:preserve-space elements="pre"/> ><xsl:namespace-alias stylesheet-prefix="fo" result-prefix="fo"/> > ><xsl:template match="img"> > <fo:block> > <xsl:param name="src" select="@src" /> > <fo:external-graphic src="url('{src}')" content-height="100%" content-width="200%"/> > </fo:block> ></xsl:template> > ><xsl:template match="/guide"> ><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <fo:layout-master-set> > <fo:simple-page-master page-height="279mm" page-width="216mm" margin-top="10mm" margin-left="20mm" margin-right="10mm" margin-bottom="5mm" master-name="PageMaster"> > <fo:region-before extent="16mm"/> > <fo:region-after extent="8mm"/> > <fo:region-start extent="8mm"/> > <fo:region-end extent="20mm"/> > <fo:region-body border-style="none" border-width="0.2mm" margin-top="20mm" margin-left="00mm" margin-right="00mm" margin-bottom="15mm" font-size="12pt" /> > </fo:simple-page-master> > </fo:layout-master-set> > <fo:page-sequence initial-page-number="1" master-reference="PageMaster"> > <fo:static-content flow-name="xsl-region-before"> > <fo:block font-size="8pt" text-align="left"> > Gentoo Linux Documentation > </fo:block> > <fo:block font-size="8pt" text-align="right"> > <xsl:value-of select="title"/> > </fo:block> > </fo:static-content> > <fo:flow flow-name="xsl-region-body"> > <fo:block> > <fo:external-graphic src="url('gentoo-new.gif')"/> > </fo:block> > <fo:block space-after="1em" text-indent="1em" font-size="18pt" font-weight="bold" background-color="#ECECEC" line-height="20mm"> > <xsl:value-of select="title"/> > </fo:block> > <fo:block> > <fo:block space-after="1em" font-weight="bold"> > Abstract: > </fo:block> > <fo:block margin-left="20mm"> > <xsl:value-of select="abstract" /> > </fo:block> > <fo:block font-weight="bold"> > Date: > </fo:block> > <fo:block margin-left="20mm"> > <xsl:value-of select="date"/> > </fo:block> > <fo:block font-weight="bold"> > Version: > </fo:block> > <fo:block margin-left="20mm"> > <xsl:value-of select="version"/> > </fo:block> > <xsl:if test="license"> > <fo:block font-weight="bold"> > License: > </fo:block> > <fo:block margin-left="20mm"> > The contents of this document are licensed under the <fo:basic-link external-destination="url('http://creativecommons.org/licenses/by-sa/1.0')" text-decoration="underline" color="blue">Creative Commons - Attribution / Share Alike</fo:basic-link> license. > </fo:block> > </xsl:if> > <fo:block font-weight="bold"> > Content: > </fo:block> > <fo:block margin-left="20mm"> > <fo:list-block provisional-distance-between-starts="18pt" > provisional-label-separation="3pt"> > <xsl:for-each select="chapter"> > <fo:list-item> > <fo:list-item-label end-indent="label-end()"> > <fo:block><xsl:value-of select="position()"/>. </fo:block> > </fo:list-item-label> > <fo:list-item-body start-indent="body-start()"> > <xsl:param name="pos" select="position()"/> > <fo:block><fo:basic-link internal-destination="doc_chap{$pos}" text-decoration="underline"><xsl:value-of select="title"/><fo:leader leader-pattern="dots"/><fo:page-number-citation ref-id="doc_chap{$pos}"/></fo:basic-link></fo:block> > </fo:list-item-body> > </fo:list-item> > </xsl:for-each> > <fo:list-item> > <fo:list-item-label end-indent="label-end()"> > <fo:block>C. </fo:block> > </fo:list-item-label> > <fo:list-item-body start-indent="body-start()"> > <fo:block><fo:basic-link internal-destination="credits" text-decoration="underline">Credits<fo:leader leader-pattern="dots"/><fo:page-number-citation ref-id="credits"/></fo:basic-link></fo:block> > </fo:list-item-body> > </fo:list-item> > </fo:list-block> > </fo:block> > </fo:block> > </fo:flow> > </fo:page-sequence> > <xsl:apply-templates select="chapter"/> > <fo:page-sequence master-reference="PageMaster"> > <fo:static-content flow-name="xsl-region-before"> > <fo:block font-size="8pt" text-align="left"> > Gentoo Linux Documentation > </fo:block> > <fo:block font-size="8pt" text-align="right"> > <xsl:value-of select="title"/> > </fo:block> > </fo:static-content> > <fo:flow flow-name="xsl-region-body"> > <fo:block space-after="1em" text-indent="1em" font-size="18pt" font-weight="bold" background-color="#ECECEC" line-height="20mm" id="credits"> > Credits > </fo:block> > <fo:block margin-left="20mm"> > <fo:table border="0.5pt none black" text-align="left" table-layout="fixed"> > <fo:table-column column-width="55mm"/> > <fo:table-column column-width="75mm"/> > <fo:table-header> > <fo:table-row> > <fo:table-cell><fo:block font-weight="bold">Position</fo:block></fo:table-cell> > <fo:table-cell><fo:block font-weight="bold">Name</fo:block></fo:table-cell> > </fo:table-row> > </fo:table-header> > <fo:table-body> > <xsl:for-each select="author"> > <xsl:sort select="@title" /> > <fo:table-row text-align="left"> > <fo:table-cell><fo:block><xsl:value-of select="@title"/></fo:block></fo:table-cell> > <xsl:choose> > <xsl:when test="mail"> > <fo:table-cell><fo:block><fo:basic-link external-destination="mail('{mail/@link}')" text-decoration="underline"><xsl:value-of select="mail/text()"/></fo:basic-link></fo:block></fo:table-cell> > </xsl:when> > <xsl:otherwise> > <fo:table-cell><fo:block><xsl:value-of select="text()"/></fo:block></fo:table-cell> > </xsl:otherwise> > </xsl:choose> > </fo:table-row> > </xsl:for-each> > </fo:table-body> > </fo:table> > </fo:block> > </fo:flow> > </fo:page-sequence> ></fo:root> > ></xsl:template> > > ><xsl:template match="mail"> > <fo:basic-link external-destination="mail('{@link}')" text-decoration="underline" color="blue"><xsl:value-of select="."/></fo:basic-link> ></xsl:template> > ><xsl:template match="chapter"> ><fo:page-sequence master-reference="PageMaster"> > <fo:static-content flow-name="xsl-region-before"> > <fo:block font-size="8pt" text-align="left"> > Gentoo Linux Documentation > </fo:block> > <fo:block font-size="8pt" text-align="right"> > <xsl:value-of select="/guide/title"/> > </fo:block> > </fo:static-content> > <fo:static-content flow-name="xsl-region-after"> > <fo:block font-size="8pt" text-align="center" space-before="1em"> > Page <fo:page-number/> > </fo:block> > </fo:static-content> > <fo:flow flow-name="xsl-region-body"> > <fo:block id="doc_chap{position()}" space-after="1em" text-indent="1em" font-size="15pt" font-weight="bold" background-color="#ECECEC" line-height="15mm"> > <xsl:value-of select="position()"/>. <xsl:value-of select="title"/> > </fo:block> > <xsl:apply-templates select="body|section"> > <xsl:with-param name="chid" select="position()"/> > </xsl:apply-templates> > </fo:flow> ></fo:page-sequence> ></xsl:template> > ><xsl:template match="section"> > <xsl:param name="chid"/> > <xsl:if test="title"> > <fo:block text-align="justify" font-size="1.2em" font-weight="500" id="doc_chap{$chid}_sect{position()}" space-after="1em" space-before="1em"> > <xsl:value-of select="title"/> > <fo:leader leader-pattern="dots"/> > </fo:block> > </xsl:if> > <xsl:apply-templates select="body"> > <xsl:with-param name="chid" select="$chid"/> > </xsl:apply-templates> ></xsl:template> > ><xsl:template match="figure"> > <xsl:param name="chid"/> > <xsl:variable name="fignum"> > <xsl:number level="any" from="chapter" count="figure"/> > </xsl:variable> > <xsl:variable name="figid">doc_chap<xsl:value-of select="$chid"/>_fig<xsl:value-of select="$fignum"/></xsl:variable> > <fo:block keep-with-next.within-column="always" id="$figid"> > Figure <xsl:value-of select="$fignum"/><xsl:if test="@caption">: <xsl:value-of select="@caption"/></xsl:if> > </fo:block> > <fo:block> > <fo:external-graphic src="url('{@link}')"/> > </fo:block> ></xsl:template> > ><!--figure without a caption; just a graphical element--> ><xsl:template match="fig"> > <xsl:choose> > <xsl:when test="@linkto"> > <fo:basic-link external-destination="url('{@linkto}')"> > <fo:external-graphic src="url('{@link}')"/> > </fo:basic-link> > </xsl:when> > <xsl:otherwise> > <fo:external-graphic src="url('{@link}')"/> > </xsl:otherwise> > </xsl:choose> ></xsl:template> > ><xsl:template match="br"> > <fo:block> > </fo:block> ></xsl:template> > ><xsl:template match="note"> ><fo:block text-align="left" padding="4pt" space-after="1em"> ><fo:table table-layout="fixed" width="100%"> ><fo:table-column column-width="50px"/> ><fo:table-column column-width="proportional-column-width(1)"/> ><fo:table-body> > <fo:table-row keep-together="always"> > <fo:table-cell> > <fo:external-graphic src="note.eps" /> > </fo:table-cell> > <fo:table-cell> > <fo:block><fo:inline font-weight="bold">Note:</fo:inline> <xsl:apply-templates /></fo:block> > </fo:table-cell> > </fo:table-row> ></fo:table-body> ></fo:table> ></fo:block> ></xsl:template> > ><xsl:template match="warn"> ><fo:block text-align="left" padding="4pt" space-after="1em"> ><fo:table table-layout="fixed" width="100%"> ><fo:table-column column-width="50px"/> ><fo:table-column column-width="proportional-column-width(1)"/> ><fo:table-body> > <fo:table-row keep-together="always"> > <fo:table-cell> > <fo:external-graphic src="warn.eps" /> > </fo:table-cell> > <fo:table-cell> > <fo:block><fo:inline font-weight="bold" color="red">Warning!</fo:inline> <xsl:apply-templates /></fo:block> > </fo:table-cell> > </fo:table-row> ></fo:table-body> ></fo:table> ></fo:block> ></xsl:template> > ><xsl:template match="impo"> ><fo:block text-align="left" padding="4pt" space-after="1em"> ><fo:table table-layout="fixed" width="100%"> ><fo:table-column column-width="50px"/> ><fo:table-column column-width="proportional-column-width(1)"/> ><fo:table-body> > <fo:table-row keep-together="always"> > <fo:table-cell> > <fo:external-graphic src="impo.eps" /> > </fo:table-cell> > <fo:table-cell> > <fo:block><fo:inline font-weight="bold">Important:</fo:inline> <xsl:apply-templates /></fo:block> > </fo:table-cell> > </fo:table-row> ></fo:table-body> ></fo:table> ></fo:block> ></xsl:template> > ><xsl:template match="codenote"> ><fo:inline color="red">// <xsl:value-of select="."/></fo:inline> ></xsl:template> > ><xsl:template match="comment"> ><fo:inline color="red"><xsl:apply-templates/></fo:inline> ></xsl:template> > ><xsl:template match="i"> ><fo:inline color="blue"><xsl:apply-templates/></fo:inline> ></xsl:template> > ><xsl:template match="b"> ><fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline> ></xsl:template> > ><xsl:template match="brite"> ><fo:inline font-weight="bold" color="re"><xsl:apply-templates/></fo:inline> ></xsl:template> > ><xsl:template match="body"> > <xsl:param name="chid"/> > <xsl:apply-templates> > <xsl:with-param name="chid" select="$chid"/> > </xsl:apply-templates> ></xsl:template> > ><xsl:template match="c"> ><fo:inline color="blue" font-size="80%"><xsl:apply-templates/></fo:inline> ></xsl:template> > ><xsl:template match="pre"> ><xsl:param name="chid"/> ><xsl:variable name="prenum"><xsl:number level="any" from="chapter" count="pre"/></xsl:variable> ><fo:table table-layout="fixed" width="100%"> ><fo:table-column column-width="proportional-column-width(1)"/> ><fo:table-body> > <fo:table-row keep-together="always"> > <fo:table-cell> ><fo:block border-left-color="black" border-left-width="1pt" border-left-style="dashed" space-after="1em" margin-left="2em" padding-left="2em"> > <fo:block font-weight="bold" background-color="#DFDFDF"> > Code Listing <xsl:if test="$chid"><xsl:value-of select="$chid"/>.</xsl:if><xsl:value-of select="$prenum"/><xsl:if test="@caption">: <xsl:value-of select="@caption"/></xsl:if> > </fo:block> > <fo:block font-family="monospace" white-space-collapse="false" font-size="90%"> > <xsl:apply-templates/> > </fo:block> ></fo:block> > </fo:table-cell> > </fo:table-row> ></fo:table-body> ></fo:table> ></xsl:template> > ><xsl:template match="path"> ><fo:inline font-family="monospace"><xsl:value-of select="."/></fo:inline> ></xsl:template> > ><xsl:template match="uri"> ><xsl:choose> > <xsl:when test="@link"> > <xsl:choose> > <xsl:when test="substring(@link,1,1) = '#'"> > <fo:basic-link internal-destination="{substring-after(@link, '#')}" text-decoration="underline"><xsl:apply-templates/></fo:basic-link> > </xsl:when> > <xsl:when test="substring(@link,1,1) = '/'"> > <fo:basic-link external-destination="url('http://www.gentoo.org{@link}')" text-decoration="underline" color="blue"><xsl:apply-templates/></fo:basic-link> > </xsl:when> > <xsl:otherwise> > <fo:basic-link external-destination="url('{@link}')" text-decoration="underline" color="blue"><xsl:apply-templates/></fo:basic-link> > </xsl:otherwise> > </xsl:choose> > </xsl:when> > <xsl:otherwise> > <xsl:choose> > <xsl:when test="substring(text(),1,1) = '#'"> > <fo:basic-link internal-destination="{substring-after(text(), '#')}" text-decoration="underline"><xsl:apply-templates/></fo:basic-link> > </xsl:when> > <xsl:when test="substring(text(),1,1) = '/'"> > <fo:basic-link external-destination="url('http://www.gentoo.org{text()}')" text-decoration="underline" color="blue"><xsl:apply-templates/></fo:basic-link> > </xsl:when> > <xsl:otherwise> > <fo:basic-link external-destination="url('{text()}')" text-decoration="underline" color="blue"><xsl:apply-templates/></fo:basic-link> > </xsl:otherwise> > </xsl:choose> > </xsl:otherwise> ></xsl:choose> ></xsl:template> > ><xsl:template match="p"> > <xsl:param name="chid"/> ><fo:table table-layout="fixed" width="100%"> ><fo:table-column column-width="proportional-column-width(1)"/> ><fo:table-body> > <fo:table-row keep-together="always"> > <fo:table-cell> > > <fo:block space-after="1em"> > <xsl:apply-templates> > <xsl:with-param name="chid" select="$chid"/> > </xsl:apply-templates> > </fo:block> > > </fo:table-cell> > </fo:table-row> ></fo:table-body> ></fo:table> ></xsl:template> > ><xsl:template match="e"> ><fo:inline font-style="italic"><xsl:value-of select="."/></fo:inline> ></xsl:template> > ><xsl:template match="table"> ><fo:block space-after="1em"> ><fo:table table-layout="fixed"> > <xsl:choose> > <xsl:when test="tcolumn"> > <xsl:for-each select="tcolumn"> > <fo:table-column column-width="{@width}"/> > </xsl:for-each> > </xsl:when> > <xsl:otherwise> > <xsl:for-each select="tr/th|tr/td"> > <xsl:param name="width" select="2*string-length(text())"/> > <fo:table-column column-width="{$width}em"/> > </xsl:for-each> > </xsl:otherwise> > </xsl:choose> > <fo:table-body> > <xsl:for-each select="tr"> > <fo:table-row keep-with-next="always"> > <xsl:for-each select="ti|th"> > <xsl:choose> > <xsl:when test="name() = 'th'"> > <fo:table-cell padding="2pt" background-color="#DFDFDF"> > <fo:block font-weight="bold" margin-top="4mm" margin-left="1em" margin-bottom="4mm"><xsl:apply-templates /></fo:block> > </fo:table-cell> > </xsl:when> > <xsl:otherwise> > <fo:table-cell padding="2pt" background-color="#ECECEC"> > <fo:block margin-top="3mm" margin-bottom="3mm" margin-left="1em"><xsl:apply-templates /></fo:block> > </fo:table-cell> > </xsl:otherwise> > </xsl:choose> > </xsl:for-each> > </fo:table-row> > </xsl:for-each> > </fo:table-body> ></fo:table> ></fo:block> ></xsl:template> > > ><xsl:template match="ul"> ><fo:list-block provisional-distance-between-starts="18pt" > provisional-label-separation="3pt" > space-after="1em"> > <xsl:for-each select="li"> > <fo:list-item> > <fo:list-item-label end-indent="label-end()"> > <fo:block>- </fo:block> > </fo:list-item-label> > <fo:list-item-body start-indent="body-start()"> > <fo:block><xsl:apply-templates/></fo:block> > </fo:list-item-body> > </fo:list-item> > </xsl:for-each> ></fo:list-block> ></xsl:template> > ><xsl:template match="ol"> ><fo:list-block provisional-distance-between-starts="18pt" > provisional-label-separation="3pt" > space-after="1em"> > <xsl:for-each select="li"> > <fo:list-item> > <fo:list-item-label end-indent="label-end()"> > <fo:block><xsl:value-of select="position()"/> </fo:block> > </fo:list-item-label> > <fo:list-item-body start-indent="body-start()"> > <fo:block><xsl:apply-templates/></fo:block> > </fo:list-item-body> > </fo:list-item> > </xsl:for-each> ></fo:list-block> ></xsl:template> > > ></xsl:stylesheet>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 31672
: 23181