mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-09 13:59:51 +01:00
Indenting segmentedlist for HTML output.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4666 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
395f4157a8
commit
96b9a72b77
@ -214,6 +214,32 @@ div.segmentedlist p {
|
||||
margin: 0px auto;
|
||||
}
|
||||
|
||||
div.package span.segtitle {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 23em;
|
||||
}
|
||||
|
||||
div.package span.seg {
|
||||
display: block;
|
||||
padding-left: 23em;
|
||||
}
|
||||
|
||||
div.content span.segtitle {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 10em;
|
||||
}
|
||||
|
||||
div.content span.seg {
|
||||
display: block;
|
||||
padding-left: 10em;
|
||||
}
|
||||
|
||||
div.seg {
|
||||
clear: left;
|
||||
}
|
||||
|
||||
/* itemizedlist */
|
||||
|
||||
div.itemizedlist {
|
||||
|
@ -62,6 +62,27 @@
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<!-- segementedlist -->
|
||||
<xsl:template match="seg">
|
||||
<xsl:variable name="segnum" select="count(preceding-sibling::seg)+1"/>
|
||||
<xsl:variable name="seglist" select="ancestor::segmentedlist"/>
|
||||
<xsl:variable name="segtitles" select="$seglist/segtitle"/>
|
||||
<!-- Note: segtitle is only going to be the right thing in a well formed
|
||||
SegmentedList. If there are too many Segs or too few SegTitles,
|
||||
you'll get something odd...maybe an error -->
|
||||
<div class="seg">
|
||||
<strong>
|
||||
<span class="segtitle">
|
||||
<xsl:apply-templates select="$segtitles[$segnum=position()]" mode="segtitle-in-seg"/>
|
||||
<xsl:text>: </xsl:text>
|
||||
</span>
|
||||
</strong>
|
||||
<span class="seg">
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Body attributes -->
|
||||
<xsl:template name="body.attributes">
|
||||
<xsl:attribute name="id">
|
||||
|
Loading…
Reference in New Issue
Block a user