diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2005-02-21 22:14:31 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2005-02-21 22:14:31 +0000 |
commit | 96b9a72b777a8883021fac16f8ce919d68a9ee68 (patch) | |
tree | b3a82e8d336d488d8ca083ea50c9e71b529cee83 /stylesheets/xhtml | |
parent | 395f4157a89688bae9f2108bbabf7e41f52f5b62 (diff) |
Indenting segmentedlist for HTML output.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4666 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/xhtml')
-rw-r--r-- | stylesheets/xhtml/lfs-mixed.xsl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/stylesheets/xhtml/lfs-mixed.xsl b/stylesheets/xhtml/lfs-mixed.xsl index e95acc52c..a70098212 100644 --- a/stylesheets/xhtml/lfs-mixed.xsl +++ b/stylesheets/xhtml/lfs-mixed.xsl @@ -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"> |