forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/skins/template/xslt/html site2xhtml.xsl
Date Tue, 11 Feb 2003 11:46:56 GMT
jefft       2003/02/11 03:46:55

  Modified:    .        status.xml
               src/resources/library/xslt changes2document.xsl
                        howto2document.xsl
               src/resources/skins/krysalis-site/xslt/html
                        document2html.xsl
               src/resources/skins/template/xslt/html site2xhtml.xsl
  Log:
  Replace generate-id() fragment identifiers with something more meaningful in
  krysalis-site
  
  Revision  Changes    Path
  1.124     +3 -0      xml-forrest/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/status.xml,v
  retrieving revision 1.123
  retrieving revision 1.124
  diff -u -r1.123 -r1.124
  --- status.xml	10 Feb 2003 09:34:01 -0000	1.123
  +++ status.xml	11 Feb 2003 11:46:55 -0000	1.124
  @@ -25,6 +25,9 @@
     <changes>
       <release version="0.4-dev" date="unreleased">
         <action dev="JT" type="fix" context="skins">
  +        Use meaningful fragment identifiers in krysalis-skin.
  +       </action>
  +      <action dev="JT" type="fix" context="skins">
           Correctly ignore @role='pdf' credits in HTML
         </action>
         <action dev="NKB" type="fix" context="skins">
  
  
  
  1.11      +1 -1      xml-forrest/src/resources/library/xslt/changes2document.xsl
  
  Index: changes2document.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/library/xslt/changes2document.xsl,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- changes2document.xsl	4 Jan 2003 03:56:14 -0000	1.10
  +++ changes2document.xsl	11 Feb 2003 11:46:55 -0000	1.11
  @@ -25,7 +25,7 @@
    </xsl:template>
   
    <xsl:template match="release">
  -  <section>
  +  <section id="{@version}">
      <title>Version <xsl:value-of select="@version"/> (<xsl:value-of select="@date"/>)</title>
      <ul>
       <xsl:apply-templates/>
  
  
  
  1.4       +9 -5      xml-forrest/src/resources/library/xslt/howto2document.xsl
  
  Index: howto2document.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/library/xslt/howto2document.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- howto2document.xsl	27 Oct 2002 07:09:01 -0000	1.3
  +++ howto2document.xsl	11 Feb 2003 11:46:55 -0000	1.4
  @@ -35,22 +35,26 @@
     </xsl:template>
     
     <xsl:template match="howto/header/abstract">
  -    <section>
  +    <section id="Overview">
        <title>Overview</title>
         <xsl:apply-templates/>
       </section>
     </xsl:template>
     
     <xsl:template match="purpose | prerequisites | audience | steps | extension  | faqs
| tips | references | feedback ">
  -    <section>
  +    <xsl:variable name="title">
         <xsl:choose>
           <xsl:when test="normalize-space(@title)!=''">
  -          <title><xsl:value-of select="@title"/></title>
  +          <xsl:value-of select="@title"/>
           </xsl:when>
           <xsl:otherwise>
  -          <title><xsl:value-of select="name()"/></title>
  +          <xsl:value-of select="name()"/>
           </xsl:otherwise>
         </xsl:choose>
  +    </xsl:variable>
  +
  +    <section id="{$title}">
  +        <title><xsl:value-of select="$title"/></title>
        <xsl:apply-templates/>
       </section>
     </xsl:template>
  @@ -72,7 +76,7 @@
       </xsl:template>
     
     <xsl:template match="revisions">
  -    <section>
  +    <section id="revisions">
        <title>Revisions</title>
       <p>Find a problem with this document? Consider contacting the author or submitting
your own revision. For instructions, read the How To Submit a Revision.</p>
         <ul>
  
  
  
  1.6       +20 -3     xml-forrest/src/resources/skins/krysalis-site/xslt/html/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/xslt/html/document2html.xsl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- document2html.xsl	9 Feb 2003 16:18:50 -0000	1.5
  +++ document2html.xsl	11 Feb 2003 11:46:55 -0000	1.6
  @@ -71,14 +71,20 @@
         <toc>
           <xsl:for-each select="section">
             <tocc>
  -            <toca href="#{generate-id()}">
  +            <toca>
  +              <xsl:attribute name="href">
  +                <xsl:text>#</xsl:text><xsl:call-template name="generate-id"/>
  +              </xsl:attribute>
                 <xsl:value-of select="title"/>
               </toca>
               <xsl:if test="section">
                 <toc2>
                   <xsl:for-each select="section">
                     <tocc>
  -                    <toca href="#{generate-id()}">
  +                    <toca>
  +                      <xsl:attribute name="href">
  +                        <xsl:text>#</xsl:text><xsl:call-template name="generate-id"/>
  +                      </xsl:attribute>
                         <xsl:value-of select="title"/>
                       </toca>
                     </tocc>
  @@ -90,6 +96,17 @@
         </toc>
       </xsl:if>
       <xsl:apply-templates/>
  +  </xsl:template>
  +
  +  <xsl:template name="generate-id">
  +    <xsl:choose>
  +      <xsl:when test="@id">
  +        <xsl:value-of select="@id"/>
  +      </xsl:when>
  +      <xsl:otherwise>
  +        <xsl:value-of select="generate-id(.)"/>
  +      </xsl:otherwise>
  +    </xsl:choose>
     </xsl:template>
   
     <xsl:template match="@id">
  
  
  
  1.3       +0 -0      xml-forrest/src/resources/skins/template/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/template/xslt/html/site2xhtml.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  
  
  

Mime
View raw message