cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r682291 - in /cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main: ./ resources/ resources/org/ resources/org/apache/ resources/org/apache/cocoon/ resources/org/apache/cocoon/documentation/ resources/org/apache/cocoon/documentation/d...
Date Mon, 04 Aug 2008 08:42:51 GMT
Author: felixk
Date: Mon Aug  4 01:42:51 2008
New Revision: 682291

URL: http://svn.apache.org/viewvc?rev=682291&view=rev
Log:
htmlcleaner definition is the same

Added:
    cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/
    cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/
    cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/
    cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/apache/
    cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/apache/cocoon/
    cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/apache/cocoon/documentation/
    cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/apache/cocoon/documentation/daisy/
    cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/apache/cocoon/documentation/daisy/htmlcleaner.xml
  (with props)

Added: cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/apache/cocoon/documentation/daisy/htmlcleaner.xml
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/apache/cocoon/documentation/daisy/htmlcleaner.xml?rev=682291&view=auto
==============================================================================
--- cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/apache/cocoon/documentation/daisy/htmlcleaner.xml
(added)
+++ cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/apache/cocoon/documentation/daisy/htmlcleaner.xml
Mon Aug  4 01:42:51 2008
@@ -0,0 +1,185 @@
+<!-- This is the default htmlcleaner.xml from the Daisy Wiki (1.5-almost-M1). -->
+<!--
+  Copyright 2004 Outerthought bvba and Schaubroeck nv
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<htmlcleaner>
+  <cleanup>
+    <!-- Span elements will only be retained if they have one of the classes listed belowed.
-->
+    <allowed-span-classes>
+      <class>indexentry</class>
+      <class>footnote</class>
+      <class>crossreference</class>
+    </allowed-span-classes>
+
+    <!-- Div elements will only be retained if they have one of the classes listed belowed.
-->
+    <allowed-div-classes>
+    </allowed-div-classes>
+
+    <!-- The class attribute of p elements will only be retained if they have one of the
classes listed belowed. -->
+    <allowed-para-classes>
+      <class>note</class>
+      <class>warn</class>
+      <class>fixme</class>
+    </allowed-para-classes>
+
+    <!-- The class attribute of pre elements will only be retained if they have one of
the classes listed belowed. -->
+    <allowed-pre-classes>
+      <class>query</class>
+      <class>include</class>
+      <class>query-and-include</class>
+    </allowed-pre-classes>
+
+    <img-alternate-src-attr name="title"/>
+
+    <!-- Lists the allowed elements and their allowed attributes.
+
+         For the correct worker of the cleaner, some elements cannot be removed,
+         usch as html, body, p, some others...
+     -->
+    <allowed-elements>
+      <element name="html"/>
+      <element name="body"/>
+
+      <element name="div">
+        <attribute name="class"/>
+      </element>
+      <element name="span">
+        <attribute name="class"/>
+      </element>
+
+      <element name="p">
+        <attribute name="align"/>
+        <attribute name="class"/>
+        <attribute name="id"/>
+      </element>
+      <element name="br"/>
+      <element name="pre">
+        <attribute name="class"/>
+        <attribute name="id"/>
+      </element>
+
+      <element name="blockquote">
+        <attribute name="id"/>
+      </element>
+
+      <!-- titles -->
+      <element name="h1">
+        <attribute name="id"/>
+      </element>
+      <element name="h2">
+        <attribute name="id"/>
+      </element>
+      <element name="h3">
+        <attribute name="id"/>
+      </element>
+      <element name="h4">
+        <attribute name="id"/>
+      </element>
+      <element name="h5">
+        <attribute name="id"/>
+      </element>
+
+      <!-- linking -->
+      <element name="a">
+        <attribute name="href"/>
+      </element>
+
+      <!-- inline styles -->
+      <element name="strong"/>
+      <element name="em"/>
+      <element name="sup"/>
+      <element name="sub"/>
+      <element name="tt"/>
+      <element name="del"/>
+
+      <!-- lists -->
+      <element name="ul">
+        <attribute name="id"/>
+      </element>
+      <element name="ol">
+        <attribute name="id"/>
+      </element>
+      <element name="li">
+        <attribute name="id"/>
+      </element>
+
+      <element name="img">
+        <attribute name="src"/>
+        <attribute name="align"/>
+        <attribute name="id"/>
+        <attribute name="width"/>
+        <attribute name="height"/>
+        <attribute name="print-width"/>
+        <attribute name="print-height"/>
+        <attribute name="daisy-caption"/>
+        <attribute name="daisy-image-type"/>
+      </element>
+
+      <!-- tables -->
+      <element name="table">
+        <attribute name="class"/>
+        <attribute name="id"/>
+        <attribute name="width"/>
+        <attribute name="column-widths"/>
+        <attribute name="print-width"/>
+        <attribute name="print-column-widths"/>
+        <attribute name="daisy-caption"/>
+        <attribute name="daisy-table-type"/>
+        <attribute name="align"/>
+      </element>
+      <element name="tbody"/>
+      <element name="tr"/>
+      <element name="td">
+        <attribute name="colspan"/>
+        <attribute name="rowspan"/>
+        <attribute name="valign"/>
+      </element>
+      <element name="th">
+        <attribute name="colspan"/>
+        <attribute name="rowspan"/>
+        <attribute name="valign"/>
+      </element>
+    </allowed-elements>
+  </cleanup>
+
+  <serialization>
+    <linewidth value="80"/>
+    <elements>
+      <!-- Note: to avoid unexpected results, mention all block-type tags here,
+           and NO inline tags. -->
+      <element name="html" afterOpen="1" beforeClose="1"/>
+      <element name="body" afterOpen="1" beforeClose="1"/>
+      <element name="p" beforeOpen="1" afterClose="1"/>
+      <element name="blockquote" beforeOpen="1" afterClose="1"/>
+      <element name="h1" beforeOpen="1" afterClose="1"/>
+      <element name="h2" beforeOpen="1" afterClose="1"/>
+      <element name="h3" beforeOpen="1" afterClose="1"/>
+      <element name="h4" beforeOpen="1" afterClose="1"/>
+      <element name="h5" beforeOpen="1" afterClose="1"/>
+      <element name="pre" beforeOpen="1" afterClose="1"/>
+      <element name="div" beforeOpen="1" afterClose="1"/>
+      <element name="ul" beforeOpen="1" beforeClose="1" afterClose="1"/>
+      <element name="ol" beforeOpen="1" beforeClose="1" afterClose="1"/>
+      <element name="li" beforeOpen="1"/>
+      <element name="table" beforeOpen="1" beforeClose="1" afterClose="1"/>
+      <element name="tbody" beforeOpen="1" beforeClose="1"/>
+      <element name="tr" beforeOpen="1" beforeClose="1"/>
+      <element name="td" beforeOpen="1"/>
+      <element name="th" beforeOpen="1"/>
+      <element name="br" afterClose="1"/>
+    </elements>
+  </serialization>
+
+</htmlcleaner>

Propchange: cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/apache/cocoon/documentation/daisy/htmlcleaner.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/whiteboard/cocoon-sitemaptags2daisy-plugin/src/main/resources/org/apache/cocoon/documentation/daisy/htmlcleaner.xml
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message