Changeset b9c15a7


Ignore:
Timestamp:
Apr 24, 2011, 11:51:46 AM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Children:
6d86eb1
Parents:
a8c30a5
Message:

Add a c:variant element to the c:package element to determine the variant to list in the index.

Location:
BOOK
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOOK/schema/clfs/0.1/rng/clfs.rnc

    ra8c30a5 rb9c15a7  
    127127    element c:title { text },
    128128    element c:version { text },
     129    element c:variant { text }?,
    129130    element c:description { clfs.inline },
    130131   
  • BOOK/schema/clfs/0.1/rng/clfs.rng

    ra8c30a5 rb9c15a7  
    211211        <text/>
    212212      </element>
     213      <optional>
     214        <element name="c:variant">
     215          <text/>
     216        </element>
     217      </optional>
    213218      <element name="c:description">
    214219        <ref name="clfs.inline"/>
  • BOOK/stylesheets/clfs-profile.xsl

    ra8c30a5 rb9c15a7  
    144144          <xsl:value-of select="c:title" />
    145145        </xsl:element>
    146         <xsl:if test="string-length($titlesuffix) > 0">
     146        <xsl:if test="(string-length($titlesuffix) + string-length(c:variant)) &gt; 0">
    147147          <xsl:text>
    148148  </xsl:text>
    149149          <xsl:element name="secondary">
     150            <xsl:if test="string-length(c:variant) &gt; 0">
     151              <xsl:value-of select="c:variant" />
     152              <xsl:if test="string-length($titlesuffix) &gt; 0">
     153                <xsl:text>, </xsl:text>
     154              </xsl:if>
     155            </xsl:if>
    150156            <xsl:value-of select="$titlesuffix" />
    151157          </xsl:element>
Note: See TracChangeset for help on using the changeset viewer.