Changeset 01f0f37


Ignore:
Timestamp:
Apr 23, 2011, 9:06:11 PM (13 years ago)
Author:
Joe Ciccone <jciccone@…>
Children:
25844db
Parents:
1d86c775
Message:

Also render the short descriptions for programs.

Location:
BOOK
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOOK/stylesheets/clfs-profile.xsl

    r1d86c775 r01f0f37  
    374374                </xsl:processing-instruction>
    375375               
     376                <!-- Begin the Short Desc For-Each for Programs -->
     377                <xsl:for-each select="c:program">
     378                  <xsl:text>&#xa;&#xa;  </xsl:text>
     379                  <xsl:element name="varlistentry">
     380                    <xsl:attribute name="id">
     381                      <xsl:value-of select="c:name" />
     382                    </xsl:attribute>
     383                   
     384                    <!-- Term -->
     385                    <xsl:text>&#xa;    </xsl:text>
     386                    <xsl:element name="term">
     387                      <xsl:element name="command">
     388                        <xsl:value-of select="c:name" />
     389                      </xsl:element>
     390                    </xsl:element>
     391                    <!-- End Term -->
     392                   
     393                    <!-- List Item -->
     394                    <xsl:text>&#xa;    </xsl:text>
     395                    <xsl:element name="listitem">
     396                     
     397                      <xsl:text>&#xa;      </xsl:text>
     398                      <xsl:element name="para">
     399                        <xsl:apply-templates select="c:description" />
     400                      </xsl:element>
     401                     
     402                      <xsl:text>&#xa;      </xsl:text>
     403                      <xsl:element name="indexterm">
     404                        <xsl:attribute name="zone">
     405                          <xsl:value-of select="$id" />
     406                          <xsl:text> </xsl:text>
     407                          <xsl:value-of select="c:name" />
     408                        </xsl:attribute>
     409                        <xsl:text>&#xa;        </xsl:text>
     410                        <xsl:element name="primary">
     411                          <xsl:attribute name="sortas">
     412                            <xsl:text>b-</xsl:text>
     413                            <xsl:value-of select="c:name" />
     414                          </xsl:attribute>
     415                          <xsl:value-of select="c:name" />
     416                        </xsl:element>
     417                        <xsl:text>&#xa;      </xsl:text>
     418                      </xsl:element>
     419                     
     420                      <xsl:text>&#xa;    </xsl:text>
     421                    </xsl:element><!-- listitem -->
     422                    <!-- End List Item -->
     423                   
     424                    <xsl:text>&#xa;  </xsl:text>
     425                  </xsl:element><!-- varlistentry -->
     426                </xsl:for-each>
     427                <!-- End the Short Desc For-Each for Programs -->
     428               
    376429                <!-- Begin the Short Desc For-Each for Libraries -->
    377430                <xsl:for-each select="c:library">
     
    389442                          <xsl:text>libraryfile</xsl:text>
    390443                        </xsl:attribute>
     444                        <xsl:value-of select="c:name" />
    391445                      </xsl:element>
    392446                    </xsl:element>
  • BOOK/testpart.xml

    r1d86c775 r01f0f37  
    6262  <c:contents>
    6363
     64    <c:program>
     65      <c:name>test</c:name>
     66      <c:description>This is the test program.</c:description>
     67    </c:program>
     68
    6469    <c:library>
    6570      <c:name>libjoe</c:name>
Note: See TracChangeset for help on using the changeset viewer.