ai4r 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. data/README.rdoc +48 -0
  2. data/examples/decision_trees/data_set.csv +121 -0
  3. data/examples/decision_trees/id3_example.rb +31 -0
  4. data/examples/decision_trees/results.txt +29 -0
  5. data/examples/genetic_algorithm/genetic_algorithm_example.rb +39 -0
  6. data/examples/genetic_algorithm/travel_cost.csv +16 -0
  7. data/examples/neural_network/backpropagation_example.rb +65 -0
  8. data/examples/neural_network/patterns_with_base_noise.rb +68 -0
  9. data/examples/neural_network/patterns_with_noise.rb +66 -0
  10. data/examples/neural_network/training_patterns.rb +68 -0
  11. data/lib/decision_tree/id3.rb +354 -0
  12. data/lib/genetic_algorithm/genetic_algorithm.rb +268 -0
  13. data/lib/neural_network/backpropagation.rb +259 -0
  14. data/site/build/site/en/broken-links.xml +2 -0
  15. data/site/build/site/en/downloads.html +187 -0
  16. data/site/build/site/en/downloads.pdf +151 -0
  17. data/site/build/site/en/geneticAlgorithms.html +564 -0
  18. data/site/build/site/en/geneticAlgorithms.pdf +911 -0
  19. data/site/build/site/en/images/ai4r-logo.png +0 -0
  20. data/site/build/site/en/images/built-with-forrest-button.png +0 -0
  21. data/site/build/site/en/images/c.png +0 -0
  22. data/site/build/site/en/images/c_wbn.png +0 -0
  23. data/site/build/site/en/images/c_wn.png +0 -0
  24. data/site/build/site/en/images/ero.gif +0 -0
  25. data/site/build/site/en/images/europe2.png +0 -0
  26. data/site/build/site/en/images/europe3.png +0 -0
  27. data/site/build/site/en/images/fitness.png +0 -0
  28. data/site/build/site/en/images/instruction_arrow.png +0 -0
  29. data/site/build/site/en/images/my_email.png +0 -0
  30. data/site/build/site/en/images/rubyforge.png +0 -0
  31. data/site/build/site/en/images/s.png +0 -0
  32. data/site/build/site/en/images/s_wbn.png +0 -0
  33. data/site/build/site/en/images/s_wn.png +0 -0
  34. data/site/build/site/en/images/sigmoid.png +0 -0
  35. data/site/build/site/en/images/t.png +0 -0
  36. data/site/build/site/en/images/t_wbn.png +0 -0
  37. data/site/build/site/en/images/t_wn.png +0 -0
  38. data/site/build/site/en/index.html +258 -0
  39. data/site/build/site/en/index.pdf +306 -0
  40. data/site/build/site/en/linkmap.html +231 -0
  41. data/site/build/site/en/linkmap.pdf +94 -0
  42. data/site/build/site/en/locationmap.xml +72 -0
  43. data/site/build/site/en/machineLearning.html +325 -0
  44. data/site/build/site/en/machineLearning.pdf +337 -0
  45. data/site/build/site/en/neuralNetworks.html +446 -0
  46. data/site/build/site/en/neuralNetworks.pdf +604 -0
  47. data/site/build/site/en/skin/CommonMessages_de.xml +23 -0
  48. data/site/build/site/en/skin/CommonMessages_en_US.xml +23 -0
  49. data/site/build/site/en/skin/CommonMessages_es.xml +23 -0
  50. data/site/build/site/en/skin/CommonMessages_fr.xml +23 -0
  51. data/site/build/site/en/skin/basic.css +166 -0
  52. data/site/build/site/en/skin/breadcrumbs-optimized.js +90 -0
  53. data/site/build/site/en/skin/breadcrumbs.js +237 -0
  54. data/site/build/site/en/skin/fontsize.js +166 -0
  55. data/site/build/site/en/skin/getBlank.js +40 -0
  56. data/site/build/site/en/skin/getMenu.js +45 -0
  57. data/site/build/site/en/skin/images/README.txt +1 -0
  58. data/site/build/site/en/skin/images/add.jpg +0 -0
  59. data/site/build/site/en/skin/images/built-with-forrest-button.png +0 -0
  60. data/site/build/site/en/skin/images/chapter.gif +0 -0
  61. data/site/build/site/en/skin/images/chapter_open.gif +0 -0
  62. data/site/build/site/en/skin/images/current.gif +0 -0
  63. data/site/build/site/en/skin/images/error.png +0 -0
  64. data/site/build/site/en/skin/images/external-link.gif +0 -0
  65. data/site/build/site/en/skin/images/fix.jpg +0 -0
  66. data/site/build/site/en/skin/images/forrest-credit-logo.png +0 -0
  67. data/site/build/site/en/skin/images/hack.jpg +0 -0
  68. data/site/build/site/en/skin/images/header_white_line.gif +0 -0
  69. data/site/build/site/en/skin/images/info.png +0 -0
  70. data/site/build/site/en/skin/images/instruction_arrow.png +0 -0
  71. data/site/build/site/en/skin/images/label.gif +0 -0
  72. data/site/build/site/en/skin/images/page.gif +0 -0
  73. data/site/build/site/en/skin/images/pdfdoc.gif +0 -0
  74. data/site/build/site/en/skin/images/poddoc.png +0 -0
  75. data/site/build/site/en/skin/images/printer.gif +0 -0
  76. data/site/build/site/en/skin/images/rc-b-l-15-1body-2menu-3menu.png +0 -0
  77. data/site/build/site/en/skin/images/rc-b-r-15-1body-2menu-3menu.png +0 -0
  78. data/site/build/site/en/skin/images/rc-b-r-5-1header-2tab-selected-3tab-selected.png +0 -0
  79. data/site/build/site/en/skin/images/rc-t-l-5-1header-2searchbox-3searchbox.png +0 -0
  80. data/site/build/site/en/skin/images/rc-t-l-5-1header-2tab-selected-3tab-selected.png +0 -0
  81. data/site/build/site/en/skin/images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png +0 -0
  82. data/site/build/site/en/skin/images/rc-t-r-15-1body-2menu-3menu.png +0 -0
  83. data/site/build/site/en/skin/images/rc-t-r-5-1header-2searchbox-3searchbox.png +0 -0
  84. data/site/build/site/en/skin/images/rc-t-r-5-1header-2tab-selected-3tab-selected.png +0 -0
  85. data/site/build/site/en/skin/images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png +0 -0
  86. data/site/build/site/en/skin/images/remove.jpg +0 -0
  87. data/site/build/site/en/skin/images/rss.png +0 -0
  88. data/site/build/site/en/skin/images/spacer.gif +0 -0
  89. data/site/build/site/en/skin/images/success.png +0 -0
  90. data/site/build/site/en/skin/images/txtdoc.png +0 -0
  91. data/site/build/site/en/skin/images/update.jpg +0 -0
  92. data/site/build/site/en/skin/images/valid-html401.png +0 -0
  93. data/site/build/site/en/skin/images/vcss.png +0 -0
  94. data/site/build/site/en/skin/images/warning.png +0 -0
  95. data/site/build/site/en/skin/images/xmldoc.gif +0 -0
  96. data/site/build/site/en/skin/menu.js +48 -0
  97. data/site/build/site/en/skin/note.txt +50 -0
  98. data/site/build/site/en/skin/print.css +54 -0
  99. data/site/build/site/en/skin/profile.css +163 -0
  100. data/site/build/site/en/skin/prototype.js +1257 -0
  101. data/site/build/site/en/skin/screen.css +587 -0
  102. data/site/build/site/en/svn.html +223 -0
  103. data/site/build/site/en/svn.pdf +239 -0
  104. data/site/build/site/en/wholesite.pdf +1686 -0
  105. data/site/build/tmp/brokenlinks.xml +2 -0
  106. data/site/build/tmp/build-info.xml +5 -0
  107. data/site/build/tmp/cocoon-work/cache-dir/cocoon-ehcache-1.data +0 -0
  108. data/site/build/tmp/cocoon-work/cache-dir/cocoon-ehcache-1.index +0 -0
  109. data/site/build/tmp/input.xmap +32 -0
  110. data/site/build/tmp/internal.xmap +32 -0
  111. data/site/build/tmp/locationmap.xml +29 -0
  112. data/site/build/tmp/output.xmap +38 -0
  113. data/site/build/tmp/pluginlist2fetchbuild.xml +144 -0
  114. data/site/build/tmp/plugins-1.xml +212 -0
  115. data/site/build/tmp/plugins-2.xml +347 -0
  116. data/site/build/tmp/projfilters.properties +41 -0
  117. data/site/build/tmp/resources.xmap +32 -0
  118. data/site/build/webapp/WEB-INF/logs/access.log +0 -0
  119. data/site/build/webapp/WEB-INF/logs/core.log +788 -0
  120. data/site/build/webapp/WEB-INF/logs/debug.log +0 -0
  121. data/site/build/webapp/WEB-INF/logs/error.log +248 -0
  122. data/site/build/webapp/WEB-INF/logs/flow.log +0 -0
  123. data/site/build/webapp/WEB-INF/logs/idgen.log +0 -0
  124. data/site/build/webapp/WEB-INF/logs/linkrewriter.log +0 -0
  125. data/site/build/webapp/WEB-INF/logs/locationmap.log +0 -0
  126. data/site/build/webapp/WEB-INF/logs/sitemap.log +0 -0
  127. data/site/build/webapp/WEB-INF/logs/xmlform.log +0 -0
  128. data/site/forrest.properties +152 -0
  129. data/site/forrest.properties.dispatcher.properties +25 -0
  130. data/site/forrest.properties.xml +29 -0
  131. data/site/src/documentation/README.txt +7 -0
  132. data/site/src/documentation/classes/CatalogManager.properties +62 -0
  133. data/site/src/documentation/content/locationmap.xml +72 -0
  134. data/site/src/documentation/content/xdocs/downloads.html +9 -0
  135. data/site/src/documentation/content/xdocs/geneticAlgorithms.xml +280 -0
  136. data/site/src/documentation/content/xdocs/index.xml +73 -0
  137. data/site/src/documentation/content/xdocs/machineLearning.xml +129 -0
  138. data/site/src/documentation/content/xdocs/neuralNetworks.xml +218 -0
  139. data/site/src/documentation/content/xdocs/site.xml +51 -0
  140. data/site/src/documentation/content/xdocs/svn.xml +31 -0
  141. data/site/src/documentation/content/xdocs/tabs.xml +35 -0
  142. data/site/src/documentation/resources/images/ai4r-logo.png +0 -0
  143. data/site/src/documentation/resources/images/c.png +0 -0
  144. data/site/src/documentation/resources/images/c_wbn.png +0 -0
  145. data/site/src/documentation/resources/images/c_wn.png +0 -0
  146. data/site/src/documentation/resources/images/ellipse-2.svg +30 -0
  147. data/site/src/documentation/resources/images/ero.gif +0 -0
  148. data/site/src/documentation/resources/images/europe2.png +0 -0
  149. data/site/src/documentation/resources/images/europe3.png +0 -0
  150. data/site/src/documentation/resources/images/fitness.png +0 -0
  151. data/site/src/documentation/resources/images/icon-a.png +0 -0
  152. data/site/src/documentation/resources/images/icon-b.png +0 -0
  153. data/site/src/documentation/resources/images/icon.png +0 -0
  154. data/site/src/documentation/resources/images/my_email.png +0 -0
  155. data/site/src/documentation/resources/images/project-logo.png +0 -0
  156. data/site/src/documentation/resources/images/rubyforge.png +0 -0
  157. data/site/src/documentation/resources/images/s.png +0 -0
  158. data/site/src/documentation/resources/images/s_wbn.png +0 -0
  159. data/site/src/documentation/resources/images/s_wn.png +0 -0
  160. data/site/src/documentation/resources/images/sigmoid.png +0 -0
  161. data/site/src/documentation/resources/images/sub-dir/icon-c.png +0 -0
  162. data/site/src/documentation/resources/images/t.png +0 -0
  163. data/site/src/documentation/resources/images/t_wbn.png +0 -0
  164. data/site/src/documentation/resources/images/t_wn.png +0 -0
  165. data/site/src/documentation/resources/schema/catalog.xcat +29 -0
  166. data/site/src/documentation/resources/schema/hello-v10.dtd +51 -0
  167. data/site/src/documentation/resources/schema/symbols-project-v10.ent +26 -0
  168. data/site/src/documentation/resources/stylesheets/hello2document.xsl +33 -0
  169. data/site/src/documentation/sitemap.xmap +66 -0
  170. data/site/src/documentation/skinconf.xml +418 -0
  171. data/site/src/documentation/translations/langcode.xml +29 -0
  172. data/site/src/documentation/translations/languages_de.xml +24 -0
  173. data/site/src/documentation/translations/languages_en.xml +24 -0
  174. data/site/src/documentation/translations/languages_es.xml +22 -0
  175. data/site/src/documentation/translations/languages_fr.xml +24 -0
  176. data/site/src/documentation/translations/languages_nl.xml +24 -0
  177. data/site/src/documentation/translations/menu.xml +33 -0
  178. data/site/src/documentation/translations/menu_af.xml +33 -0
  179. data/site/src/documentation/translations/menu_de.xml +33 -0
  180. data/site/src/documentation/translations/menu_es.xml +33 -0
  181. data/site/src/documentation/translations/menu_fr.xml +33 -0
  182. data/site/src/documentation/translations/menu_it.xml +33 -0
  183. data/site/src/documentation/translations/menu_nl.xml +33 -0
  184. data/site/src/documentation/translations/menu_no.xml +33 -0
  185. data/site/src/documentation/translations/menu_ru.xml +33 -0
  186. data/site/src/documentation/translations/menu_sk.xml +33 -0
  187. data/site/src/documentation/translations/tabs.xml +22 -0
  188. data/site/src/documentation/translations/tabs_de.xml +22 -0
  189. data/site/src/documentation/translations/tabs_es.xml +22 -0
  190. data/site/src/documentation/translations/tabs_fr.xml +22 -0
  191. data/site/src/documentation/translations/tabs_nl.xml +22 -0
  192. data/test/decision_tree/id3_test.rb +209 -0
  193. data/test/genetic_algorithm/chromosome_test.rb +55 -0
  194. data/test/genetic_algorithm/genetic_algorithm_test.rb +78 -0
  195. data/test/neural_network/backpropagation_test.rb +44 -0
  196. metadata +274 -0
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
19
+ "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
20
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.0"
21
+ width="300" height="150"
22
+ viewBox="0 0 1500 1000"
23
+ >
24
+ <desc>Ellipse</desc>
25
+ <rect x="1" y="1" width="1495" height="995"
26
+ fill="none" stroke="blue" stroke-width="5"/>
27
+ <ellipse transform="translate(200 200) rotate(-45)"
28
+ rx="200" ry="100"
29
+ fill="none" stroke="red" stroke-width="20"/>
30
+ </svg>
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
19
+ "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
20
+ <!-- OASIS XML Catalog for Forrest Documents -->
21
+ <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
22
+ prefer="public">
23
+ <!-- Example catalog entry -->
24
+ <public publicId="-//Acme//DTD Hello Document V1.0//EN"
25
+ uri="hello-v10.dtd"/>
26
+ <!-- Sets of symbols. e.g. for string replacements -->
27
+ <public publicId="-//Apache Forrest//ENTITIES Symbols Project v1.0//EN"
28
+ uri="symbols-project-v10.ent"/>
29
+ </catalog>
@@ -0,0 +1,51 @@
1
+ <!--
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ the License. You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ -->
17
+ <!-- ===================================================================
18
+
19
+ Apache Hello DTD (Version 1.0)
20
+
21
+ PURPOSE:
22
+
23
+
24
+ TYPICAL INVOCATION:
25
+
26
+ <!DOCTYPE greeting PUBLIC
27
+ "-//Acme//DTD Hello Document Vx.y//EN"
28
+ "hello.dtd">
29
+
30
+ where
31
+
32
+ x := major version
33
+ y := minor version
34
+
35
+ FIXME:
36
+
37
+ CHANGE HISTORY:
38
+ [Version 1.0]
39
+ 20041009 Initial version. (JJP)
40
+
41
+ ==================================================================== -->
42
+
43
+ <!-- =============================================================== -->
44
+ <!-- Greeting type element -->
45
+ <!-- =============================================================== -->
46
+
47
+ <!ELEMENT greeting (#PCDATA)>
48
+
49
+ <!-- =============================================================== -->
50
+ <!-- End of DTD -->
51
+ <!-- =============================================================== -->
@@ -0,0 +1,26 @@
1
+ <!--
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ the License. You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ -->
17
+
18
+ <!-- Typical invocation:
19
+ <!ENTITY % symbols-project
20
+ PUBLIC "-//Apache Forrest//ENTITIES Symbols Project v1.0//EN"
21
+ "symbols-project-v10.ent">
22
+ %symbols-project;
23
+ -->
24
+ <!ENTITY myp "My Project Name">
25
+ <!ENTITY myp-s "<strong>My Project Name</strong>">
26
+ <!ENTITY myp-t "My Project Name&trade;">
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <!--+
19
+ | Transforms Hello document format.
20
+ +-->
21
+ <xsl:stylesheet version="1.0"
22
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
23
+ <xsl:template match="/">
24
+ <document>
25
+ <header>
26
+ <title><xsl:value-of select="greeting"/></title>
27
+ </header>
28
+ <body>
29
+ <xsl:value-of select="greeting"/>
30
+ </body>
31
+ </document>
32
+ </xsl:template>
33
+ </xsl:stylesheet>
@@ -0,0 +1,66 @@
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
19
+ <map:components>
20
+ <map:actions>
21
+ <map:action logger="sitemap.action.sourcetype" name="sourcetype" src="org.apache.forrest.sourcetype.SourceTypeAction">
22
+ <sourcetype name="hello-v1.0">
23
+ <document-declaration public-id="-//Acme//DTD Hello Document V1.0//EN" />
24
+ </sourcetype>
25
+ </map:action>
26
+ </map:actions>
27
+ <map:selectors default="parameter">
28
+ <map:selector logger="sitemap.selector.parameter" name="parameter" src="org.apache.cocoon.selection.ParameterSelector" />
29
+ </map:selectors>
30
+ </map:components>
31
+ <map:resources>
32
+ <map:resource name="transform-to-document">
33
+ <map:act type="sourcetype" src="{src}">
34
+ <map:select type="parameter">
35
+ <map:parameter name="parameter-selector-test" value="{sourcetype}" />
36
+ <map:when test="hello-v1.0">
37
+ <map:generate src="{properties:content.xdocs}{../../1}.xml" />
38
+ <map:transform src="{properties:resources.stylesheets}/hello2document.xsl" />
39
+ <map:serialize type="xml-document"/>
40
+ </map:when>
41
+ </map:select>
42
+ </map:act>
43
+ </map:resource>
44
+ </map:resources>
45
+ <map:pipelines>
46
+ <map:pipeline>
47
+ <map:match pattern="old_site/*.html">
48
+ <map:select type="exists">
49
+ <map:when test="{properties:content}{1}.html">
50
+ <map:read src="{properties:content}{1}.html" mime-type="text/html"/>
51
+ <!--
52
+ Use this instead if you want JTidy to clean up your HTML
53
+ <map:generate type="html" src="{properties:content}/{0}" />
54
+ <map:serialize type="html"/>
55
+ -->
56
+ </map:when>
57
+ </map:select>
58
+ </map:match>
59
+ <map:match pattern="**.xml">
60
+ <map:call resource="transform-to-document">
61
+ <map:parameter name="src" value="{properties:content.xdocs}{1}.xml" />
62
+ </map:call>
63
+ </map:match>
64
+ </map:pipeline>
65
+ </map:pipelines>
66
+ </map:sitemap>
@@ -0,0 +1,418 @@
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <!--
19
+ Skin configuration file. This file contains details of your project,
20
+ which will be used to configure the chosen Forrest skin.
21
+ -->
22
+ <!DOCTYPE skinconfig PUBLIC "-//APACHE//DTD Skin Configuration V0.8-1//EN" "http://forrest.apache.org/dtd/skinconfig-v08-1.dtd">
23
+ <skinconfig>
24
+ <!-- To enable lucene search add provider="lucene" (default is google).
25
+ Add box-location="alt" to move the search box to an alternate location
26
+ (if the skin supports it) and box-location="all" to show it in all
27
+ available locations on the page. Remove the <search> element to show
28
+ no search box. @domain will enable sitesearch for the specific domain with google.
29
+ In other words google will search the @domain for the query string.
30
+ -->
31
+ <search name="MyProject" domain="mydomain" provider="google"/>
32
+ <!-- Disable the print link? If enabled, invalid HTML 4.0.1 -->
33
+ <disable-print-link>true</disable-print-link>
34
+ <!-- Disable the PDF link? -->
35
+ <disable-pdf-link>false</disable-pdf-link>
36
+ <!-- Disable the POD link? -->
37
+ <disable-pod-link>true</disable-pod-link>
38
+ <!-- Disable the Text link? FIXME: NOT YET IMPLEMENETED. -->
39
+ <disable-txt-link>true</disable-txt-link>
40
+ <!-- Disable the xml source link? -->
41
+ <!-- The xml source link makes it possible to access the xml rendition
42
+ of the source frim the html page, and to have it generated statically.
43
+ This can be used to enable other sites and services to reuse the
44
+ xml format for their uses. Keep this disabled if you don't want other
45
+ sites to easily reuse your pages.-->
46
+ <disable-xml-link>true</disable-xml-link>
47
+ <!-- Disable navigation icons on all external links? -->
48
+ <disable-external-link-image>false</disable-external-link-image>
49
+ <!-- Disable w3c compliance links?
50
+ Use e.g. align="center" to move the compliance links logos to
51
+ an alternate location default is left.
52
+ (if the skin supports it) -->
53
+ <disable-compliance-links>false</disable-compliance-links>
54
+ <!-- Render mailto: links unrecognisable by spam harvesters? -->
55
+ <obfuscate-mail-links>true</obfuscate-mail-links>
56
+ <obfuscate-mail-value>.at.</obfuscate-mail-value>
57
+ <!-- Disable the javascript facility to change the font size -->
58
+ <disable-font-script>true</disable-font-script>
59
+ <!-- mandatory project logo
60
+ default skin: renders it at the top -->
61
+ <project-name>ai4r</project-name>
62
+ <project-description>Artificial Intelligence for Ruby</project-description>
63
+ <project-url>http://ai4r.rubyforge.org/</project-url>
64
+ <project-logo>images/ai4r-logo.png</project-logo>
65
+ <!-- Alternative static image:
66
+ <project-logo>images/project-logo.gif</project-logo> -->
67
+ <!-- optional group logo
68
+ default skin: renders it at the top-left corner
69
+ <group-name>MyGroup</group-name>
70
+ <group-description>MyGroup Description</group-description>
71
+ <group-url>http://mygroup.org</group-url>
72
+ <group-logo>images/group.png</group-logo>-->
73
+ <!-- Alternative static image:
74
+ <group-logo>images/group-logo.gif</group-logo> -->
75
+ <!-- optional host logo (e.g. sourceforge logo)
76
+ default skin: renders it at the bottom-left corner -->
77
+ <host-url>http://rubyforge.org/projects/ai4r/</host-url>
78
+ <host-logo>images/rubyforge.png</host-logo>
79
+ <!-- relative url of a favicon file, normally favicon.ico -->
80
+ <favicon-url></favicon-url>
81
+ <!-- The following are used to construct a copyright statement -->
82
+ <disable-copyright-footer>false</disable-copyright-footer>
83
+ <!-- @inception enable automatic generation of a date-range to current date -->
84
+ <year inception="true">2007</year>
85
+ <vendor>Sergio Fierens</vendor>
86
+ <!-- The optional copyright-link URL will be used as a link in the
87
+ copyright statement
88
+ <copyright-link>http://www.example.org/</copyright-link>-->
89
+ <!-- Some skins use this to form a 'breadcrumb trail' of links.
90
+ Use location="alt" to move the trail to an alternate location
91
+ (if the skin supports it).
92
+ Omit the location attribute to display the trail in the default location.
93
+ Use location="none" to not display the trail (if the skin supports it).
94
+ For some skins just set the attributes to blank.
95
+
96
+ NOTE: If a breadcrumb entry points at a local file the href must
97
+ be complete, that is it must point to the file itself, not to a
98
+ directory.
99
+ -->
100
+ <trail location="none">
101
+ <link1 name="ai4r" href="http://ai4r.rubyforge.org/"/>
102
+ <link2 name="ai4r" href="http://ai4r.rubyforge.org/"/>
103
+ <link3 name="" href=""/>
104
+ </trail>
105
+
106
+ <!-- Configure the TOC, i.e. the Table of Contents.
107
+ @max-depth
108
+ how many "section" levels need to be included in the
109
+ generated Table of Contents (TOC).
110
+ @min-sections
111
+ Minimum required to create a TOC.
112
+ @location ("page","menu","page,menu", "none")
113
+ Where to show the TOC.
114
+ -->
115
+ <toc max-depth="2" min-sections="1" location="page"/>
116
+ <!-- Heading types can be clean|underlined|boxed -->
117
+ <headings type="boxed"/>
118
+ <!-- The optional feedback element will be used to construct a
119
+ feedback link in the footer with the page pathname appended:
120
+ <a href="@href">{@to}</a>
121
+
122
+ <feedback to="webmaster@foo.com"
123
+ href="mailto:webmaster@foo.com?subject=Feedback&#160;" >
124
+ Send feedback about the website to:
125
+ </feedback>-->
126
+ <!-- Optional message of the day (MOTD).
127
+ Note: This is only implemented in the pelt skin.
128
+ Note: Beware issue FOR-677 if you use an absolute path uri.
129
+ If the optional <motd> element is used, then messages will be appended
130
+ depending on the URI string pattern.
131
+ motd-option : Each option will match a pattern and apply its text.
132
+ The "pattern" attribute specifies the pattern to be matched.
133
+ This can be a specific page, or a general pattern to match a set of pages,
134
+ e.g. everything in the "samples" directory.
135
+ The @starts-with=true anchors the string to the start, otherwise contains
136
+ motd-title : This text will betadded in brackets after the <html><title>
137
+ and this can be empty.
138
+ motd-page : This text will be added in a panel on the face of the page,
139
+ with the "motd-page-url" being the hyperlink "More".
140
+ Values for the "location" attribute are:
141
+ page : on the face of the page, e.g. in the spare space of the toc
142
+ alt : at the bottom of the left-hand navigation panel
143
+ both : both
144
+
145
+ <motd>
146
+ <motd-option pattern="samples/sample.html">
147
+ <motd-title>sample</motd-title>
148
+ <motd-page location="both">
149
+ This is an example of a Message of the day (MOTD).
150
+ </motd-page>
151
+ <motd-page-url>faq.html</motd-page-url>
152
+ </motd-option>
153
+ <motd-option pattern="samples/faq.html">
154
+ <motd-page location="page">
155
+ How to enable this MOTD is on this page.
156
+ </motd-page>
157
+ <motd-page-url>http://forrest.apache.org/docs/faq.html</motd-page-url>
158
+ </motd-option>
159
+ </motd>-->
160
+ <!--
161
+ extra-css - here you can define custom css-elements that are
162
+ A) overriding the fallback elements or
163
+ B) adding the css definition from new elements that you may have
164
+ used in your documentation.
165
+ -->
166
+ <extra-css>
167
+ <!--Example of reason B:
168
+ To define the css definition of a new element that you may have used
169
+ in the class attribute of a <p> node.
170
+ e.g. <p class="quote"/>
171
+ -->
172
+ p.quote {
173
+ margin-left: 2em;
174
+ padding: .5em;
175
+ background-color: #f0f0f0;
176
+ font-family: monospace;
177
+ }
178
+ <!--Example:
179
+ To override the colours of links only in the footer.
180
+ -->
181
+ #footer a { color: #0F3660; }
182
+ #footer a:visited { color: #009999; }
183
+ #top :searchbox { height: 34px; background-color: #DDDDDD; }
184
+ </extra-css>
185
+ <colors>
186
+ <!-- These values are used for the generated CSS files.
187
+ They essentially "override" the default colors defined in the chosen skin.
188
+ There are four duplicate "groups" of colors below, denoted by comments:
189
+ Color group: Forrest, Krysalis, Collabnet, and Lenya using Pelt.
190
+ They are provided for example only. To customize the colors of any skin,
191
+ uncomment one of these groups of color elements and change the values
192
+ of the particular color elements that you wish to change.
193
+ Note that by default, all color groups are commented-out which means that
194
+ the default colors provided by the skin are being used.
195
+ -->
196
+ <!-- Color group: Forrest: example colors similar to forrest.apache.org
197
+ Some of the element names are obscure, so comments are added to show how
198
+ the "pelt" skin uses them, other skins might use these elements in a different way.
199
+ Tip: temporarily change the value of an element to red (#ff0000) and see the effect.
200
+ pelt: breadtrail: the strip at the top of the page and the second strip under the tabs
201
+ pelt: header: top strip containing project and group logos
202
+ pelt: heading|subheading: section headings within the content
203
+ pelt: navstrip: the strip under the tabs which contains the published date
204
+ pelt: menu: the left-hand navigation panel
205
+ pelt: toolbox: the selected menu item
206
+ pelt: searchbox: the background of the searchbox
207
+ pelt: border: line border around selected menu item
208
+ pelt: body: any remaining parts, e.g. the bottom of the page
209
+ pelt: footer: the second from bottom strip containing credit logos and published date
210
+ pelt: feedback: the optional bottom strip containing feedback link
211
+ -->
212
+ <!--
213
+ <color name="breadtrail" value="#cedfef" font="#0F3660" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
214
+ <color name="header" value="#294563"/>
215
+ <color name="tab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
216
+ <color name="tab-unselected" value="#b5c7e7" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
217
+ <color name="subtab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
218
+ <color name="subtab-unselected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
219
+ <color name="heading" value="#294563"/>
220
+ <color name="subheading" value="#4a6d8c"/>
221
+ <color name="published" value="#4C6C8F" font="#FFFFFF"/>
222
+ <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
223
+ <color name="navstrip" value="#4a6d8c" font="#ffffff" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
224
+ <color name="menu" value="#4a6d8c" font="#cedfef" link="#ffffff" vlink="#ffffff" hlink="#ffcf00"/>
225
+ <color name="toolbox" value="#4a6d8c"/>
226
+ <color name="border" value="#294563"/>
227
+ <color name="dialog" value="#4a6d8c"/>
228
+ <color name="searchbox" value="#4a6d8c" font="#000000"/>
229
+ <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>
230
+ <color name="table" value="#7099C5"/>
231
+ <color name="table-cell" value="#f0f0ff"/>
232
+ <color name="highlight" value="#ffff00"/>
233
+ <color name="fixme" value="#cc6600"/>
234
+ <color name="note" value="#006699"/>
235
+ <color name="warning" value="#990000"/>
236
+ <color name="code" value="#CFDCED"/>
237
+ <color name="footer" value="#cedfef"/>
238
+ -->
239
+ <!-- Color group: Krysalis -->
240
+ <!--
241
+ <color name="header" value="#FFFFFF"/>
242
+
243
+ <color name="tab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
244
+ <color name="tab-unselected" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
245
+ <color name="subtab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
246
+ <color name="subtab-unselected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
247
+
248
+ <color name="heading" value="#a5b6c6"/>
249
+ <color name="subheading" value="#CFDCED"/>
250
+
251
+ <color name="navstrip" value="#CFDCED" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
252
+ <color name="toolbox" value="#a5b6c6"/>
253
+ <color name="border" value="#a5b6c6"/>
254
+
255
+ <color name="menu" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
256
+ <color name="dialog" value="#F7F7F7"/>
257
+
258
+ <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>
259
+
260
+ <color name="table" value="#a5b6c6"/>
261
+ <color name="table-cell" value="#ffffff"/>
262
+ <color name="highlight" value="#ffff00"/>
263
+ <color name="fixme" value="#cc6600"/>
264
+ <color name="note" value="#006699"/>
265
+ <color name="warning" value="#990000"/>
266
+ <color name="code" value="#a5b6c6"/>
267
+
268
+ <color name="footer" value="#a5b6c6"/>
269
+ -->
270
+ <!-- Color group: Collabnet -->
271
+
272
+ <color name="header" value="#003366"/>
273
+
274
+ <color name="tab-selected" value="#dddddd" link="#555555" vlink="#555555" hlink="#555555"/>
275
+ <color name="tab-unselected" value="#999999" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
276
+ <color name="subtab-selected" value="#cccccc" link="#000000" vlink="#000000" hlink="#000000"/>
277
+ <color name="subtab-unselected" value="#cccccc" link="#555555" vlink="#555555" hlink="#555555"/>
278
+
279
+ <color name="heading" value="#003366"/>
280
+ <color name="subheading" value="#888888"/>
281
+
282
+ <color name="navstrip" value="#dddddd" font="#555555"/>
283
+ <color name="toolbox" value="#dddddd" font="#555555"/>
284
+ <color name="border" value="#999999"/>
285
+
286
+ <color name="menu" value="#ffffff"/>
287
+ <color name="dialog" value="#eeeeee"/>
288
+
289
+ <color name="body" value="#ffffff"/>
290
+
291
+ <color name="table" value="#ccc"/>
292
+ <color name="table-cell" value="#ffffff"/>
293
+ <color name="highlight" value="#ffff00"/>
294
+ <color name="fixme" value="#cc6600"/>
295
+ <color name="note" value="#006699"/>
296
+ <color name="warning" value="#990000"/>
297
+ <color name="code" value="#003366"/>
298
+
299
+ <color name="footer" value="#ffffff"/>
300
+
301
+ <!-- Color group: Lenya using pelt-->
302
+ <!--
303
+
304
+ <color name="header" value="#ffffff"/>
305
+
306
+ <color name="tab-selected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
307
+ <color name="tab-unselected" value="#F5F4E9" link="#000000" vlink="#000000" hlink="#000000"/>
308
+ <color name="subtab-selected" value="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
309
+ <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
310
+
311
+ <color name="heading" value="#E5E4D9"/>
312
+ <color name="subheading" value="#000000"/>
313
+ <color name="published" value="#000000"/>
314
+ <color name="navstrip" value="#E5E4D9" font="#000000"/>
315
+ <color name="toolbox" value="#CFDCED" font="#000000"/>
316
+ <color name="border" value="#999999"/>
317
+
318
+ <color name="menu" value="#E5E4D9" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
319
+ <color name="dialog" value="#CFDCED"/>
320
+ <color name="body" value="#ffffff" />
321
+
322
+ <color name="table" value="#ccc"/>
323
+ <color name="table-cell" value="#ffffff"/>
324
+ <color name="highlight" value="#ffff00"/>
325
+ <color name="fixme" value="#cc6600"/>
326
+ <color name="note" value="#006699"/>
327
+ <color name="warning" value="#990000"/>
328
+ <color name="code" value="#003366"/>
329
+
330
+ <color name="footer" value="#E5E4D9"/>
331
+ -->
332
+ </colors>
333
+ <!-- Settings specific to PDF output. -->
334
+ <pdf>
335
+ <!--
336
+ Supported page sizes are a0, a1, a2, a3, a4, a5, executive,
337
+ folio, legal, ledger, letter, quarto, tabloid (default letter).
338
+ Supported page orientations are portrait, landscape (default
339
+ portrait).
340
+ Supported text alignments are left, right, justify (default left).
341
+ -->
342
+ <page size="letter" orientation="portrait" text-align="left"/>
343
+ <!--
344
+ Pattern of the page numbering in the footer - Default is "Page x".
345
+ first occurrence of '1' digit represents the current page number,
346
+ second occurrence of '1' digit represents the total page number,
347
+ anything else is considered as the static part of the numbering pattern.
348
+ Examples : x is the current page number, y the total page number.
349
+ <page-numbering-format>none</page-numbering-format> Do not displays the page numbering
350
+ <page-numbering-format>1</page-numbering-format> Displays "x"
351
+ <page-numbering-format>p1.</page-numbering-format> Displays "px."
352
+ <page-numbering-format>Page 1/1</page-numbering-format> Displays "Page x/y"
353
+ <page-numbering-format>(1-1)</page-numbering-format> Displays "(x-y)"
354
+ -->
355
+ <page-numbering-format>Page 1</page-numbering-format>
356
+ <!--
357
+ Margins can be specified for top, bottom, inner, and outer
358
+ edges. If double-sided="false", the inner edge is always left
359
+ and the outer is always right. If double-sided="true", the
360
+ inner edge will be left on odd pages, right on even pages,
361
+ the outer edge vice versa.
362
+ Specified below are the default settings.
363
+ -->
364
+ <margins double-sided="false">
365
+ <top>1in</top>
366
+ <bottom>1in</bottom>
367
+ <inner>1.25in</inner>
368
+ <outer>1in</outer>
369
+ </margins>
370
+ <!--
371
+ Print the URL text next to all links going outside the file
372
+ -->
373
+ <show-external-urls>false</show-external-urls>
374
+ <!--
375
+ Disable the copyright footer on each page of the PDF.
376
+ A footer is composed for each page. By default, a "credit" with role=pdf
377
+ will be used, as explained below. Otherwise a copyright statement
378
+ will be generated. This latter can be disabled.
379
+ -->
380
+ <disable-copyright-footer>false</disable-copyright-footer>
381
+ </pdf>
382
+ <!--
383
+ Credits are typically rendered as a set of small clickable
384
+ images in the page footer.
385
+
386
+ Use box-location="alt" to move the credits to an alternate location
387
+ (if the skin supports it).
388
+
389
+ For example, pelt skin:
390
+ - box-location="alt" will place the logo at the end of the
391
+ left-hand coloured menu panel.
392
+ - box-location="alt2" will place them underneath that panel
393
+ in the left-hand whitespace.
394
+ - Otherwise they are placed next to the compatibility icons
395
+ at the bottom of the screen.
396
+
397
+ Comment out the whole <credit>-element if you want no credits in the
398
+ web pages
399
+ -->
400
+ <credits>
401
+ <credit box-location="alt">
402
+ <name>Built with Apache Forrest</name>
403
+ <url>http://forrest.apache.org/</url>
404
+ <image>images/built-with-forrest-button.png</image>
405
+ <width>88</width>
406
+ <height>31</height>
407
+ </credit>
408
+ <!-- A credit with @role="pdf" will be used to compose a footer
409
+ for each page in the PDF, using either "name" or "url" or both.
410
+ -->
411
+ <!--
412
+ <credit role="pdf">
413
+ <name>Built with Apache Forrest</name>
414
+ <url>http://forrest.apache.org/</url>
415
+ </credit>
416
+ -->
417
+ </credits>
418
+ </skinconfig>