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/common/xslt/html document2html.xsl
Date Mon, 22 Sep 2003 13:32:20 GMT
jefft       2003/09/22 06:32:20

  Modified:    .        Tag: FORREST_05_BRANCH status.xml
               src/documentation Tag: FORREST_05_BRANCH skinconf.xml
               src/resources/conf Tag: FORREST_05_BRANCH sitemap.xmap
               src/resources/fresh-site/src/documentation Tag:
                        FORREST_05_BRANCH skinconf.xml
               src/resources/schema/relaxng Tag: FORREST_05_BRANCH
                        skinconf.rnc
               src/resources/skins/common/xslt/html Tag: FORREST_05_BRANCH
                        document2html.xsl
  Log:
  Add obfuscate-mail-links to skinconf.xml.  Fixes FOR-67
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.213.2.6 +5 -2      xml-forrest/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/status.xml,v
  retrieving revision 1.213.2.5
  retrieving revision 1.213.2.6
  diff -u -r1.213.2.5 -r1.213.2.6
  --- status.xml	21 Sep 2003 12:12:59 -0000	1.213.2.5
  +++ status.xml	22 Sep 2003 13:32:19 -0000	1.213.2.6
  @@ -25,7 +25,10 @@
   
     <changes>
       <release version="0.6-dev" date="unreleased">
  -      <action dev="JT" type="fix" context="skins" fixes-bug-"FOR-65">
  +      <action dev="JT" type="add" context="skins" fixes-bug="FOR-67">
  +        Added obfuscate-mail-links skinconf.xml option, on by default.
  +      </action>
  +       <action dev="JT" type="fix" context="skins" fixes-bug="FOR-65">
           Fix forrest-site tables bug that broke Opera
         </action>
         <action dev="JT" type="fix" context="build">
  
  
  
  No                   revision
  No                   revision
  1.8.2.1   +14 -4     xml-forrest/src/documentation/skinconf.xml
  
  Index: skinconf.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/skinconf.xml,v
  retrieving revision 1.8
  retrieving revision 1.8.2.1
  diff -u -r1.8 -r1.8.2.1
  --- skinconf.xml	6 Sep 2003 12:22:20 -0000	1.8
  +++ skinconf.xml	22 Sep 2003 13:32:20 -0000	1.8.2.1
  @@ -9,26 +9,30 @@
   
     <!ENTITY % links.att 'name CDATA #REQUIRED'>
     <!ENTITY % link.att 'name CDATA #REQUIRED href CDATA #REQUIRED'>
  -  <!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?,
  +  <!ELEMENT skinconfig (disable-lucene?, disable-search?, disable-print-link?, disable-pdf-link?,
  +  disable-xml-link?, disable-compliance-links?, obfuscate-mail-links?, searchsite-domain?,
searchsite-name?,
  +  project-name, project-description, project-url, project-logo, group-name?, group-description?,
group-url?, group-logo?,
     host-url?, host-logo?, year?, vendor?, trail?, toc?, credits?)*>
     <!ELEMENT credits (credit*)>
     <!ELEMENT credit (name, url, image?, width?, height?)>
     <!-- id uniquely identifies the tool, and role indicates its function -->
     <!ATTLIST credit id   CDATA #IMPLIED
                      role CDATA #IMPLIED>
  +  <!ELEMENT disable-lucene (#PCDATA)>
     <!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 obfuscate-mail-links (#PCDATA)>   
     <!ELEMENT searchsite-domain (#PCDATA)>
     <!ELEMENT searchsite-name (#PCDATA)>  
     <!ELEMENT project-name (#PCDATA)>
  +  <!ELEMENT project-description (#PCDATA)>
     <!ELEMENT project-url (#PCDATA)>
     <!ELEMENT project-logo (#PCDATA)>
     <!ELEMENT group-name (#PCDATA)>
  +  <!ELEMENT group-description (#PCDATA)>
     <!ELEMENT group-url (#PCDATA)>
     <!ELEMENT group-logo (#PCDATA)>
     <!ELEMENT host-url (#PCDATA)>
  @@ -53,9 +57,11 @@
     ]>
   
   <skinconfig>
  +  <!-- Do we want to disable the Lucene search box? -->
  +  <disable-lucene>false</disable-lucene>
     <!-- Do we want to disable the Google search box? -->
     <disable-search>false</disable-search>
  -  <!-- Do we want to disable the print link? -->
  +  <!-- Do we want to disable the print link? If enabled, invalid HTML 4.0.1 -->
     <disable-print-link>true</disable-print-link>  
     <!-- Do we want to disable the PDF link? -->
     <disable-pdf-link>false</disable-pdf-link>
  @@ -63,6 +69,8 @@
     <disable-xml-link>true</disable-xml-link>
     <!-- Do we want to disable w3c compliance links? -->
     <disable-compliance-links>false</disable-compliance-links>
  +  <!-- Whether to render mailto: links unrecognisable by spam harvesters -->
  +  <obfuscate-mail-links>true</obfuscate-mail-links>
   
     <searchsite-domain>xml.apache.org</searchsite-domain>
     <searchsite-name>Apache XML</searchsite-name>  
  @@ -120,5 +128,7 @@
         <width>138</width>
         <height>31</height>
       </credit>
  +    <!-- A credit with @role='pdf' will have its name and url displayed in the
  +    PDF page's footer. -->
     </credits>
   </skinconfig>
  
  
  
  No                   revision
  No                   revision
  1.117.2.1 +1 -2      xml-forrest/src/resources/conf/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/sitemap.xmap,v
  retrieving revision 1.117
  retrieving revision 1.117.2.1
  diff -u -r1.117 -r1.117.2.1
  --- sitemap.xmap	7 Sep 2003 05:08:43 -0000	1.117
  +++ sitemap.xmap	22 Sep 2003 13:32:20 -0000	1.117.2.1
  @@ -130,7 +130,6 @@
           <map:parameter name="isfaq" value="{notoc}"/>
           <map:parameter name="nopdf" value="{nopdf}"/>
           <map:parameter name="path" value="{path}"/>
  -        <map:parameter name="obfuscate-mail-links" value="false"/>
           <!-- Can set an alternative project skinconfig here 
           <map:parameter name="config-file" value="../../../../skinconf.xml"/>
           -->
  
  
  
  No                   revision
  No                   revision
  1.15.2.1  +4 -1      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.15
  retrieving revision 1.15.2.1
  diff -u -r1.15 -r1.15.2.1
  --- skinconf.xml	7 Sep 2003 12:30:36 -0000	1.15
  +++ skinconf.xml	22 Sep 2003 13:32:20 -0000	1.15.2.1
  @@ -10,7 +10,7 @@
     <!ENTITY % links.att 'name CDATA #REQUIRED'>
     <!ENTITY % link.att 'name CDATA #REQUIRED href CDATA #REQUIRED'>
     <!ELEMENT skinconfig (disable-search?, disable-print-link?, disable-pdf-link?,
  -  disable-xml-link?, disable-compliance-links?, searchsite-domain?, searchsite-name?,
  +  disable-xml-link?, disable-compliance-links?, obfuscate-mail-links?, searchsite-domain?,
searchsite-name?,
     project-name, project-description, project-url, project-logo, group-name?, group-description?,
group-url?, group-logo?,
     host-url?, host-logo?, year?, vendor?, trail?, toc?, credits?)*>
     <!ELEMENT credits (credit*)>
  @@ -23,6 +23,7 @@
     <!ELEMENT disable-pdf-link (#PCDATA)>
     <!ELEMENT disable-xml-link (#PCDATA)>    
     <!ELEMENT disable-compliance-links (#PCDATA)>   
  +  <!ELEMENT obfuscate-mail-links (#PCDATA)>   
     <!ELEMENT searchsite-domain (#PCDATA)>
     <!ELEMENT searchsite-name (#PCDATA)>  
     <!ELEMENT project-name (#PCDATA)>
  @@ -65,6 +66,8 @@
     <disable-xml-link>true</disable-xml-link>
     <!-- Do we want to disable w3c compliance links? -->
     <disable-compliance-links>false</disable-compliance-links>
  +  <!-- Whether to render mailto: links unrecognisable by spam harvesters -->
  +  <obfuscate-mail-links>true</obfuscate-mail-links>
   
     <searchsite-domain>mydomain</searchsite-domain>  
     <searchsite-name>MyProject</searchsite-name>  
  
  
  
  No                   revision
  No                   revision
  1.6.2.1   +1 -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.6
  retrieving revision 1.6.2.1
  diff -u -r1.6 -r1.6.2.1
  --- skinconf.rnc	2 Sep 2003 13:13:21 -0000	1.6
  +++ skinconf.rnc	22 Sep 2003 13:32:20 -0000	1.6.2.1
  @@ -11,6 +11,7 @@
               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 obfuscate-mail-links {xsd:boolean}?,   # Render mailto: links unrecognisable
by spam harvesters
               element searchsite-domain {text}?,       # DNS domain to search. Eg 'xml.apache.org'
               element searchsite-name {text}?,         # "Search the ... site"
               element project-name {text},             # Eg 'Forrest'
  
  
  
  No                   revision
  No                   revision
  1.32.2.1  +4 -2      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.32
  retrieving revision 1.32.2.1
  diff -u -r1.32 -r1.32.2.1
  --- document2html.xsl	12 Sep 2003 10:25:55 -0000	1.32
  +++ document2html.xsl	22 Sep 2003 13:32:20 -0000	1.32.2.1
  @@ -31,6 +31,9 @@
     <xsl:variable name="disable-xml-link" select="$config/disable-xml-link"/>  
     <!-- Get the section depth to use when generating the minitoc (default is 2) -->
     <xsl:variable name="config-max-depth" select="$config/toc/@level"/>
  +  <!-- Whether to obfuscate email links -->
  +  <xsl:variable name="obfuscate-mail-links" select="$config/obfuscate-mail-links"/>
  +
     <xsl:variable name="max-depth">
       <xsl:choose>
         <xsl:when test="string-length($config-max-depth)&gt;0">
  @@ -42,7 +45,6 @@
       
     <xsl:param name="notoc"/>
     <xsl:param name="path"/>
  -  <xsl:param name="obfuscate-mail-links" select="'false'"/>
     <!-- <xsl:include href="split.xsl"/> -->
     <xsl:include href="dotdots.xsl"/>
     <xsl:include href="pathutils.xsl"/>
  
  
  

Mime
View raw message