forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/resources/fresh-site/src/documentation skinconf.xml
Date Tue, 18 Mar 2003 08:50:39 GMT
nicolaken    2003/03/18 00:50:39

  Modified:    src/resources/skins/common/xslt/html document2html.xsl
               src/resources/schema/relaxng skinconf.rnc
               src/documentation skinconf.xml
               src/resources/conf skinconf.xml
               src/resources/fresh-site/src/documentation skinconf.xml
  Log:
        <action dev="NKB" type="update" context="skins">
          Enabled multiple output links on each page (print - pdf - xml)
          They can be enabled by adding the relative disable-*-link elements
          and setting them to false.
        </action>
  
  Revision  Changes    Path
  1.16      +16 -10    xml-forrest/src/resources/skins/common/xslt/html/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/html/document2html.xsl,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- document2html.xsl	17 Mar 2003 17:03:56 -0000	1.15
  +++ document2html.xsl	18 Mar 2003 08:50:38 -0000	1.16
  @@ -17,12 +17,18 @@
   -->
   <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
  -  <!-- If non-blank, a PDF link for this page will not be generated -->
  -  <xsl:param name="nopdf"/>
  -  <!-- If non-blank, a "print" link for this page will not be generated -->
  -  <xsl:param name="noprint"/>
  -  <!-- If non-blank, an XML link for this page will not be generated -->
  -  <xsl:param name="noxml"/>  
  +  <!-- the skinconf file -->
  +  <xsl:param name="config-file" select="'../../../../skinconf.xml'"/>
  +  <xsl:variable name="config" select="document($config-file)/skinconfig"/>
  +  
  +  <!-- If true, a PDF link for this page will not be generated -->
  +  <xsl:variable name="disable-pdf-link" select="$config/disable-pdf-link"/>
  +  <!-- If true, a "print" link for this page will not be generated -->
  +  <xsl:variable name="disable-print-link" select="$config/disable-print-link"/>
  +  <!-- If true, an XML link for this page will not be generated -->
  +  <xsl:variable name="disable-xml-link" select="$config/disable-xml-link"/>  
  +
  +    
     <xsl:param name="notoc"/>
     <xsl:param name="path"/>
     <!-- <xsl:include href="split.xsl"/> -->
  @@ -84,7 +90,7 @@
   
     <!-- Generates the "printer friendly version" link -->
     <xsl:template name="printlink">
  -    <xsl:if test="$noprint = ''"> <!-- noprint flag unset -->
  +    <xsl:if test="$disable-print-link = 'false'"> 
       
   <script Language="Javascript">
   
  @@ -117,7 +123,7 @@
   
     <!-- Generates the PDF link -->
     <xsl:template name="pdflink">
  -    <xsl:if test="$nopdf = ''"> <!-- nopdf flag unset -->
  +    <xsl:if test="$disable-pdf-link = 'false'"> 
         <td align="center" width="40" nowrap="nowrap"><a href="{$filename-noext}.pdf"
class="dida">
             <img border="0" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF"/><br/>
             PDF</a>
  @@ -128,7 +134,7 @@
   
     <!-- Generates the XML link -->
     <xsl:template name="xmllink">
  -    <xsl:if test="$noxml = ''"> <!-- noxml flag unset -->
  +    <xsl:if test="$disable-xml-link = 'false'">
         <td align="center" width="40" nowrap="nowrap"><a href="{$filename-noext}.xml"
class="dida">
             <img border="0" src="{$skin-img-dir}/xmldoc.gif" alt="xml"/><br/>
             xml</a>
  
  
  
  1.4       +3 -0      xml-forrest/src/resources/schema/relaxng/skinconf.rnc
  
  Index: skinconf.rnc
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/schema/relaxng/skinconf.rnc,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- skinconf.rnc	27 Jan 2003 12:50:26 -0000	1.3
  +++ skinconf.rnc	18 Mar 2003 08:50:39 -0000	1.4
  @@ -7,6 +7,9 @@
   skinconfig = element skinconfig {
               (
               element disable-search {xsd:boolean}?,   # Disable search feature. 'true' or
'false'
  +            element disable-print-link{xsd:boolean}?,   # Disable print link feature. 'true'
or 'false'
  +            element disable-pdf-link{xsd:boolean}?,   # Disable print link feature. 'true'
or 'false'
  +            element disable-xml-link{xsd:boolean}?,   # Disable print link feature. 'true'
or 'false'
               element disable-compliance-links {xsd:boolean}?,   # Disable standards-compliance
logos
               element searchsite-domain {text}?,       # DNS domain to search. Eg 'xml.apache.org'
               element searchsite-name {text}?,         # "Search the ... site"
  
  
  
  1.5       +13 -2     xml-forrest/src/documentation/skinconf.xml
  
  Index: skinconf.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/skinconf.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- skinconf.xml	27 Jan 2003 12:50:26 -0000	1.4
  +++ skinconf.xml	18 Mar 2003 08:50:39 -0000	1.5
  @@ -9,7 +9,8 @@
   
     <!ENTITY % links.att 'name CDATA #REQUIRED'>
     <!ENTITY % link.att 'name CDATA #REQUIRED href CDATA #REQUIRED'>
  -  <!ELEMENT skinconfig (disable-search?, disable-compliance-links?, searchsite-domain?,
searchsite-name?,
  +  <!ELEMENT skinconfig (disable-search?, disable-print-link?, disable-pdf-link?,
  +  disable-xml-link?, disable-compliance-links?, searchsite-domain?, searchsite-name?,
     project-name, project-url, project-logo, group-name?, group-url?, group-logo?,
     host-url?, host-logo?, year?, vendor?, trail?, credits?)*>
     <!ELEMENT credits (credit*)>
  @@ -18,7 +19,10 @@
     <!ATTLIST credit id   CDATA #IMPLIED
                      role CDATA #IMPLIED>
     <!ELEMENT disable-search (#PCDATA)>
  -  <!ELEMENT disable-compliance-links (#PCDATA)>
  +  <!ELEMENT disable-print-link (#PCDATA)>
  +  <!ELEMENT disable-pdf-link (#PCDATA)>
  +  <!ELEMENT disable-xml-link (#PCDATA)>    
  +  <!ELEMENT disable-compliance-links (#PCDATA)>   
     <!ELEMENT searchsite-domain (#PCDATA)>
     <!ELEMENT searchsite-name (#PCDATA)>  
     <!ELEMENT project-name (#PCDATA)>
  @@ -49,6 +53,13 @@
   <skinconfig>
     <!-- Do we want to disable the Google search box? -->
     <disable-search>false</disable-search>
  +  <!-- Do we want to disable the print link? -->
  +  <disable-print-link>false</disable-print-link>  
  +  <!-- Do we want to disable the PDF link? -->
  +  <disable-pdf-link>false</disable-pdf-link>
  +  <!-- Do we want to disable the xml source link? -->
  +  <disable-xml-link>true</disable-xml-link>
  +  <!-- Do we want to disable w3c compliance links? -->
     <disable-compliance-links>false</disable-compliance-links>
   
     <searchsite-domain>xml.apache.org</searchsite-domain>
  
  
  
  1.9       +15 -1     xml-forrest/src/resources/conf/skinconf.xml
  
  Index: skinconf.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/skinconf.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- skinconf.xml	10 Jan 2003 13:51:55 -0000	1.8
  +++ skinconf.xml	18 Mar 2003 08:50:39 -0000	1.9
  @@ -9,7 +9,8 @@
   
     <!ENTITY % links.att 'name CDATA #REQUIRED'>
     <!ENTITY % link.att 'name CDATA #REQUIRED href CDATA #REQUIRED'>
  -  <!ELEMENT skinconfig (disable-search?, searchsite-domain?, searchsite-name?,
  +  <!ELEMENT skinconfig (disable-search?, disable-print-link?, disable-pdf-link?,
  +  disable-xml-link?, disable-compliance-links?, searchsite-domain?, searchsite-name?,
     project-name, project-url, project-logo, group-name?, group-url?, group-logo?,
     host-url?, host-logo?, year?, vendor?, trail?, credits?)*>
     <!ELEMENT credits (credit*)>
  @@ -18,6 +19,10 @@
     <!ATTLIST credit id   CDATA #IMPLIED
                      role CDATA #IMPLIED>
     <!ELEMENT disable-search (#PCDATA)>
  +  <!ELEMENT disable-print-link (#PCDATA)>
  +  <!ELEMENT disable-pdf-link (#PCDATA)>
  +  <!ELEMENT disable-xml-link (#PCDATA)>    
  +  <!ELEMENT disable-compliance-links (#PCDATA)>   
     <!ELEMENT searchsite-domain (#PCDATA)>
     <!ELEMENT searchsite-name (#PCDATA)>  
     <!ELEMENT project-name (#PCDATA)>
  @@ -48,6 +53,15 @@
   <skinconfig>
     <!-- Do we want to disable the Google search box? -->
     <disable-search>false</disable-search>
  +  <!-- Do we want to disable the print link? -->
  +  <disable-print-link>false</disable-print-link>  
  +  <!-- Do we want to disable the PDF link? -->
  +  <disable-pdf-link>false</disable-pdf-link>
  +  <!-- Do we want to disable the xml source link? -->
  +  <disable-xml-link>true</disable-xml-link>
  +  <!-- Do we want to disable w3c compliance links? -->
  +  <disable-compliance-links>false</disable-compliance-links>
  +        
     <searchsite-domain>xml.apache.org</searchsite-domain>
     <searchsite-name>Apache XML</searchsite-name>  
   
  
  
  
  1.8       +14 -3     xml-forrest/src/resources/fresh-site/src/documentation/skinconf.xml
  
  Index: skinconf.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/fresh-site/src/documentation/skinconf.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- skinconf.xml	27 Jan 2003 12:50:26 -0000	1.7
  +++ skinconf.xml	18 Mar 2003 08:50:39 -0000	1.8
  @@ -9,7 +9,8 @@
   
     <!ENTITY % links.att 'name CDATA #REQUIRED'>
     <!ENTITY % link.att 'name CDATA #REQUIRED href CDATA #REQUIRED'>
  -  <!ELEMENT skinconfig (disable-search?, disable-compliance-links?, searchsite-domain?,
searchsite-name?,
  +  <!ELEMENT skinconfig (disable-search?, disable-print-link?, disable-pdf-link?,
  +  disable-xml-link?, disable-compliance-links?, searchsite-domain?, searchsite-name?,
     project-name, project-url, project-logo, group-name?, group-url?, group-logo?,
     host-url?, host-logo?, year?, vendor?, trail?, credits?)*>
     <!ELEMENT credits (credit*)>
  @@ -18,7 +19,10 @@
     <!ATTLIST credit id   CDATA #IMPLIED
                      role CDATA #IMPLIED>
     <!ELEMENT disable-search (#PCDATA)>
  -  <!ELEMENT disable-compliance-links (#PCDATA)>
  +  <!ELEMENT disable-print-link (#PCDATA)>
  +  <!ELEMENT disable-pdf-link (#PCDATA)>
  +  <!ELEMENT disable-xml-link (#PCDATA)>    
  +  <!ELEMENT disable-compliance-links (#PCDATA)>   
     <!ELEMENT searchsite-domain (#PCDATA)>
     <!ELEMENT searchsite-name (#PCDATA)>  
     <!ELEMENT project-name (#PCDATA)>
  @@ -49,8 +53,15 @@
   <skinconfig>
     <!-- Do we want to disable the Google search box? -->
     <disable-search>false</disable-search>
  +  <!-- Do we want to disable the print link? -->
  +  <disable-print-link>false</disable-print-link>  
  +  <!-- Do we want to disable the PDF link? -->
  +  <disable-pdf-link>false</disable-pdf-link>
  +  <!-- Do we want to disable the xml source link? -->
  +  <disable-xml-link>true</disable-xml-link>
  +  <!-- Do we want to disable w3c compliance links? -->
     <disable-compliance-links>false</disable-compliance-links>
  -  <searchsite-domain>myproj.mygroup.org</searchsite-domain>
  +  
     <searchsite-name>MyProject</searchsite-name>  
   
     <!-- mandatory project logo
  
  
  

Mime
View raw message