Changeset e7a605c for stylesheets/xhtml/lfs-mixed.xsl
- Timestamp:
- 02/26/2005 12:33:58 PM (20 years ago)
- Children:
- 3964929
- Parents:
- a0e1913
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/xhtml/lfs-mixed.xsl
ra0e1913 re7a605c 34 34 </xsl:template> 35 35 36 37 <!-- variablelist --> 38 <xsl:template match="variablelist"> 39 <div class="{name(.)}"> 40 <xsl:if test="title | bridgehead"> 41 <xsl:choose> 42 <xsl:when test="@role = 'materials'"> 43 <h2> 44 <xsl:value-of select="title | bridgehead"/> 45 </h2> 46 </xsl:when> 47 <xsl:otherwise> 48 <h3> 49 <xsl:value-of select="title | bridgehead"/> 50 </h3> 51 </xsl:otherwise> 52 </xsl:choose> 53 </xsl:if> 54 <dl> 55 <xsl:if test="@role"> 56 <xsl:attribute name="class"> 57 <xsl:value-of select="@role"/> 58 </xsl:attribute> 59 </xsl:if> 60 <xsl:apply-templates select="varlistentry"/> 61 </dl> 36 <!-- segementedlist --> 37 <xsl:template match="seg"> 38 <xsl:variable name="segnum" select="count(preceding-sibling::seg)+1"/> 39 <xsl:variable name="seglist" select="ancestor::segmentedlist"/> 40 <xsl:variable name="segtitles" select="$seglist/segtitle"/> 41 <!-- Note: segtitle is only going to be the right thing in a well formed 42 SegmentedList. If there are too many Segs or too few SegTitles, 43 you'll get something odd...maybe an error --> 44 <div class="seg"> 45 <strong> 46 <span class="segtitle"> 47 <xsl:apply-templates select="$segtitles[$segnum=position()]" mode="segtitle-in-seg"/> 48 <xsl:text>: </xsl:text> 49 </span> 50 </strong> 51 <span class="seg"> 52 <xsl:apply-templates/> 53 </span> 62 54 </div> 63 55 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.