You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2018/01/23 14:05:19 UTC
commons-statistics git commit: Web site files.
Repository: commons-statistics
Updated Branches:
refs/heads/master 19079dec5 -> 0db6c9cca
Web site files.
Project: http://git-wip-us.apache.org/repos/asf/commons-statistics/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-statistics/commit/0db6c9cc
Tree: http://git-wip-us.apache.org/repos/asf/commons-statistics/tree/0db6c9cc
Diff: http://git-wip-us.apache.org/repos/asf/commons-statistics/diff/0db6c9cc
Branch: refs/heads/master
Commit: 0db6c9ccab66b460c0add58941e1b6c35c2f0050
Parents: 19079de
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
Authored: Tue Jan 23 15:02:41 2018 +0100
Committer: Gilles Sadowski <gi...@harfang.homelinux.org>
Committed: Tue Jan 23 15:02:41 2018 +0100
----------------------------------------------------------------------
.../src/site/resources/profile.jacoco | 17 ++
src/assembly/bin.xml | 48 ++++
src/assembly/src.xml | 41 +++
.../images/commons_statistics.small.png | Bin 0 -> 66857 bytes
src/site/resources/profile.jacoco | 17 ++
src/site/resources/style/project.css | 18 ++
src/site/site.xml | 47 ++++
src/site/xdoc/developers.xml | 277 +++++++++++++++++++
src/site/xdoc/download_statistics.xml | 73 +++++
src/site/xdoc/index.xml | 44 +++
src/site/xdoc/issue-tracking.xml | 102 +++++++
src/site/xdoc/mail-lists.xml | 205 ++++++++++++++
src/site/xdoc/userguide/distribution.xml | 81 ++++++
src/site/xdoc/userguide/index.xml | 41 +++
src/site/xdoc/userguide/xdoc.xsl | 68 +++++
15 files changed, 1079 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/commons-statistics-distribution/src/site/resources/profile.jacoco
----------------------------------------------------------------------
diff --git a/commons-statistics-distribution/src/site/resources/profile.jacoco b/commons-statistics-distribution/src/site/resources/profile.jacoco
new file mode 100644
index 0000000..a12755f
--- /dev/null
+++ b/commons-statistics-distribution/src/site/resources/profile.jacoco
@@ -0,0 +1,17 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+# -----------------------------------------------------------------------------
+#
+# Empty file used to automatically trigger JaCoCo profile from commons parent pom
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/src/assembly/bin.xml b/src/assembly/bin.xml
new file mode 100644
index 0000000..a5ff153
--- /dev/null
+++ b/src/assembly/bin.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+
+<assembly>
+ <id>bin</id>
+ <formats>
+ <format>tar.gz</format>
+ <format>zip</format>
+ </formats>
+ <includeSiteDirectory>false</includeSiteDirectory>
+ <fileSets>
+ <fileSet>
+ <includes>
+ <include>LICENSE*</include>
+ <include>NOTICE*</include>
+ <include>RELEASE-NOTES.txt</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>target</directory>
+ <outputDirectory></outputDirectory>
+ <includes>
+ <include>*.jar</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>target/site</directory>
+ <outputDirectory>docs</outputDirectory>
+ <excludes>
+ </excludes>
+ </fileSet>
+ </fileSets>
+</assembly>
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/assembly/src.xml
----------------------------------------------------------------------
diff --git a/src/assembly/src.xml b/src/assembly/src.xml
new file mode 100644
index 0000000..a78f24f
--- /dev/null
+++ b/src/assembly/src.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+<assembly>
+ <id>src</id>
+ <formats>
+ <format>tar.gz</format>
+ <format>zip</format>
+ </formats>
+ <baseDirectory>
+ ${project.artifactId}-${commons.release.version}-src
+ </baseDirectory>
+ <fileSets>
+ <fileSet>
+ <includes>
+ <include>*.txt</include>
+ <include>*.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>src</directory>
+ <excludes>
+ </excludes>
+ </fileSet>
+ </fileSets>
+</assembly>
+
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/resources/images/commons_statistics.small.png
----------------------------------------------------------------------
diff --git a/src/site/resources/images/commons_statistics.small.png b/src/site/resources/images/commons_statistics.small.png
new file mode 100644
index 0000000..f42d945
Binary files /dev/null and b/src/site/resources/images/commons_statistics.small.png differ
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/resources/profile.jacoco
----------------------------------------------------------------------
diff --git a/src/site/resources/profile.jacoco b/src/site/resources/profile.jacoco
new file mode 100644
index 0000000..a12755f
--- /dev/null
+++ b/src/site/resources/profile.jacoco
@@ -0,0 +1,17 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+# -----------------------------------------------------------------------------
+#
+# Empty file used to automatically trigger JaCoCo profile from commons parent pom
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/resources/style/project.css
----------------------------------------------------------------------
diff --git a/src/site/resources/style/project.css b/src/site/resources/style/project.css
new file mode 100644
index 0000000..bd137e4
--- /dev/null
+++ b/src/site/resources/style/project.css
@@ -0,0 +1,18 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+@import url("http://commons.apache.org/style/commons-maven.css");
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/site.xml
----------------------------------------------------------------------
diff --git a/src/site/site.xml b/src/site/site.xml
new file mode 100644
index 0000000..f7ecb29
--- /dev/null
+++ b/src/site/site.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+<project name="Statistics">
+ <bannerRight>
+ <name>Apache Commons Statistics</name>
+ <src>/images/commons_statistics.small.png</src>
+ <href>/index.html</href>
+ </bannerRight>
+
+ <body>
+ <menu name="Statistics">
+ <item name="Overview" href="/index.html"/>
+ <item name="Downloads" href="http://commons.apache.org/statistics/download_statistics.cgi"/>
+ <item name="Issue Tracking" href="/issue-tracking.html"/>
+ <item name="Source Repository (current)"
+ href="http://git-wip-us.apache.org/repos/asf/commons-statistics.git"/>
+ <!-- <item name="Wiki" -->
+ <!-- href="http://wiki.apache.org/commons/Statistics"/> -->
+ <item name="Developers Guide" href="/developers.html"/>
+ </menu>
+
+ <menu name="User Guide">
+ <item name="Contents" href="/userguide/index.html"/>
+ </menu>
+
+ <head>
+ <![CDATA[<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+ </script>]]>
+ </head>
+
+ </body>
+</project>
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/xdoc/developers.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/developers.xml b/src/site/xdoc/developers.xml
new file mode 100644
index 0000000..b817221
--- /dev/null
+++ b/src/site/xdoc/developers.xml
@@ -0,0 +1,277 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+ -->
+
+<document>
+ <properties>
+ <title>Developers Guide</title>
+ </properties>
+
+ <body>
+
+ <section name="Aims">
+ <p>
+ Maintenance of a library by decentralized team requires communication.
+ It is important that developers follow guidelines laid down by the community
+ to ensure that the code they create can be successfully maintained by others.
+ </p>
+ </section>
+
+ <section name='Guidelines'>
+ <p>
+ Developers are asked to comply with the following development guidelines.
+ Code that does not comply with the guidelines including the word <i>must</i>
+ will not be committed. Our aim will be to fix all of the exceptions to the
+ "<i>should</i>" guidelines prior to a release.
+ </p>
+ <subsection name="Contributing">
+ <p><strong>Getting Started</strong></p>
+ <p>
+ <ol>
+ <li>
+ Download the Commons Statistics source code. Follow the instructions
+ under the heading "Repository Checkout" on the
+ <a href="https://git-wip-us.apache.org/">Git at the ASF page</a>.
+ The git url for the current development sources of Commons Statistics
+ is <source>http://git-wip-us.apache.org/repos/asf/commons-rng.git</source>
+ for anonymous read-only access and
+ <source>https://apacheid@git-wip-us.apache.org/repos/asf/commons-rng.git</source>
+ (where apacheid should be replaced by each committer Apache ID) for committers
+ read-write access.
+ </li>
+ <li>
+ Like most commons components, Commons Statistics uses Apache Maven as our
+ build tool. The sources can also be built using Ant (a working
+ Ant build.xml is included in the top level project directory).
+ To build Commons Statistics using Maven, you can follow the instructions for
+ <a href="http://maven.apache.org/run-maven/index.html">Building a
+ project with Maven</a>.
+ Launch Maven from the top-level directory
+ in the checkout of Commons Statistics trunk. No special setup is required,
+ except that currently to build the site (i.e. to execute Maven's
+ "site" goal), you may need to increase the default memory allocation
+ (e.g. <code>export MAVEN_OPTS=-Xmx512m</code>) before launching
+ Maven.
+ </li>
+ <li>
+ Have a look at the new features that users and developers have requested
+ on the <a href="http://wiki.apache.org/commons/RngWishList">
+ Statistics Wish List Wiki Page.</a>
+ </li>
+ <li>
+ Be sure to join the commons-dev and commons-user
+ <a href="mail-lists.html">
+ email lists</a> and use them appropriately (make sure the string
+ "[Statistics]" starts the Subject line of all your postings).
+ Make any proposals here where the group can comment on them.
+ </li>
+ <li>
+ <a href="https://issues.apache.org/jira/secure/Signup!default.jspa">
+ Setup an account on JIRA
+ </a>
+ and use it to submit patches and
+ identify bugs. Read the
+ <a href="http://issues.apache.org/bugwritinghelp.html">
+ directions</a>
+ for submitting bugs and search the database to
+ determine if an issue exists or has already been dealt with.
+ <p>
+ See the <a href="http://commons.apache.org/rng/issue-tracking.html">
+ Commons Statistics Issue Tracking Page</a>
+ for more information on how to
+ search for or submit bugs or enhancement requests.
+ </p>
+ <li>
+ Generating patches: The requested format for generating patches is
+ the Unified Diff format, which can be easily generated using the git
+ client or various IDEs.
+ <source>git diff -p > patch </source>
+ Run this command from the top-level project directory (where pom.xml
+ resides).
+ </li>
+ </li>
+ </ol>
+ </p>
+ <p><strong>Contributing ideas and code</strong></p>
+ <p>
+ Follow the steps below when making suggestions for additions or
+ enhancements to Commons Statistics. This will make it easier for the community
+ to comment on your ideas and for the committers to keep track of them.
+ Thanks in advance!
+ <ol>
+ <li>Start with a post to the commons-dev mailing list, with [Statistics] at
+ the beginning of the subject line, followed by a short title
+ describing the new feature or enhancement; for example, "[Statistics]
+ New cryptographically secure generator".
+ The body of the post should include each of the following items
+ (but be <strong>as brief as possible</strong>):
+ <ul>
+ <li>A concise description of the new feature / enhancement</li>
+ <li>References to definitions and algorithms. Using standard
+ definitions and algorithms makes communication much easier and will
+ greatly increase the chances that we will accept the code / idea</li>
+ <li>Some indication of why the addition / enhancement is practically
+ useful</li>
+ </ul></li>
+ <li>Assuming a generally favorable response to the idea on commons-dev,
+ the next step is to add an entry to the
+ <a href="http://wiki.apache.org/commons/RngWishList">Statistics Wish
+ List</a> corresponding to the idea. Include a reference to the
+ discussion thread. </li>
+ <li>Create a JIRA ticket using the the feature title as the short
+ description. Incorporate feedback from the initial posting in the
+ description. Add a reference to the JIRA ticket to the WishList entry.
+ </li>
+ <li>Submit code as attachments to the JIRA ticket. Please use one
+ ticket for each feature, adding multiple patches to the ticket
+ as necessary. Use the git diff command to generate your patches as
+ diffs. Please do not submit modified copies of existing java files. Be
+ patient (but not <strong>too</strong> patient) with committers reviewing
+ patches. Post a *nudge* message to commons-dev with a reference to the
+ ticket if a patch goes more than a few days with no comment or commit.
+ </li>
+ </ol>
+ </p>
+ </subsection>
+
+ <subsection name='Coding Style'>
+ <p>
+ Commons Statistics follows <a href="http://java.sun.com/docs/codeconv/">Code
+ Conventions for the Java Programming Language</a>. As part of the maven
+ build process, style checking is performed using the Checkstyle plugin,
+ using the properties specified in <code>checkstyle.xml</code>.
+ Committed code <i>should</i> generate no Checkstyle errors. One thing
+ that Checkstyle will complain about is tabs included in the source code.
+ Please make sure to set your IDE or editor to use spaces instead of tabs.
+ </p>
+ <p>
+ Committers should configure the <source>user.name</source>,
+ <source>user.email</source> and <source>core.autocrlf</source>
+ git repository or global settings with <source>git config</source>.
+ The first two settings define the identity and mail of the committer.
+ The third setting deals with line endings to achieve consistency
+ in line endings. Windows users should configure this setting to
+ <source>true</source> (thus forcing git to convert CR/LF line endings
+ in the workspace while maintaining LF only line endings in the repository)
+ while OS X and Linux users should configure it to <source>input</source>
+ (thus forcing git to only strip accidental CR/LF when committing into
+ the repository, but never when cheking out files from the repository). See <a
+ href="http://www.git-scm.com/book/en/Customizing-Git-Git-Configuration">Customizing
+ Git - Git Configuration</a> in the git book for explanation about how to
+ configure these settings and more.
+ </p>
+ </subsection>
+ <subsection name='Documentation'>
+ <ul>
+ <li>
+ Committed code <i>must</i> include full javadoc.
+ </li>
+ <li>
+ All component contracts <i>must</i> be fully specified in the javadoc class,
+ interface or method comments, including specification of acceptable ranges
+ of values, exceptions or special return values.
+ </li>
+ <li>
+ External references or full statements of definitions for all the
+ terms used in component documentation <i>must</i> be provided.
+ </li>
+ <li>
+ Commons rng javadoc generation supports embedded LaTeX formulas via the
+ <a href="http://www.mathjax.org">MathJax</a> javascript display engine.
+ To embed mathematical expressions formatted in LaTeX in javadoc, simply surround
+ the expression to be formatted with either <code>\(</code> and <code>\)</code>
+ for inline formulas (or <code>\[</code> and <code>\]</code> to have the formula
+ appear on a separate line).
+ For example,
+ <code>\(</code><code>a^2 + b^2 = c^2</code><code>\)</code>
+ will render an in-line formula
+ saying that (a, b, c) is a Pythagorean triplet: \( a^2 + b^2 = c^2 \).
+ <br/>
+ See the MathJax and LaTex documentation for details on how to represent formulas
+ and escape special characters.
+ </li>
+ <li>
+ Implementations <i>should</i> use standard algorithms and
+ references or full descriptions of all algorithms <i>should</i> be
+ provided.
+ </li>
+ <li>
+ Additions and enhancements <i>should</i> include updates to the User
+ Guide.
+ </li>
+ </ul>
+ </subsection>
+ <subsection name='Exceptions'>
+ <ul>
+ <li>
+ Exceptions generated by Commons Statistics are all unchecked.
+ </li>
+ <li>
+ All public methods advertise all exceptions that they can generate.
+ Exceptions <i>must</i> be documented in Javadoc and the documentation
+ <i>must</i> include full description of the conditions under which
+ exceptions are thrown.
+ </li>
+ </ul>
+ </subsection>
+ <subsection name='Unit Tests'>
+ <ul>
+ <li>
+ Committed code <i>must</i> include unit tests.
+ </li>
+ <li>
+ Unit tests <i>should</i> provide full path coverage.
+ </li>
+ <li>
+ Unit tests <i>should</i> verify all boundary conditions specified in
+ interface contracts, including verification that exceptions are thrown or
+ special values (e.g. Double.NaN, Double.Infinity) are returned as
+ expected.
+ </li>
+ </ul>
+ </subsection>
+ <subsection name='Licensing and copyright'>
+ <ul>
+ <li>
+ All new source file submissions <i>must</i> include the Apache Software
+ License in a comment that begins the file.
+ </li>
+ <li>
+ All contributions must comply with the terms of the Apache
+ <a href="http://www.apache.org/licenses/cla.pdf">Contributor License
+ Agreement (CLA)</a>.
+ </li>
+ <li>
+ Patches <i>must</i> be accompanied by a clear reference to a "source"
+ - if code has been "ported" from another language, clearly state the
+ source of the original implementation. If the "expression" of a given
+ algorithm is derivative, please note the original source (textbook,
+ paper, etc.).
+ </li>
+ <li>
+ References to source materials covered by restrictive proprietary
+ licenses should be avoided. In particular, contributions should not
+ implement or include references to algorithms in
+ <a href="http://www.nr.com/">Numerical Recipes (NR)</a>.
+ Any questions about copyright or patent issues should be raised on
+ the commons-dev mailing list before contributing or committing code.
+ </li>
+ </ul>
+ </subsection>
+ </section>
+ </body>
+</document>
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/xdoc/download_statistics.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/download_statistics.xml b/src/site/xdoc/download_statistics.xml
new file mode 100644
index 0000000..1e4e5a5
--- /dev/null
+++ b/src/site/xdoc/download_statistics.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You 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.
+-->
+<!--
+ +======================================================================+
+ |**** ****|
+ |**** THIS FILE IS GENERATED BY THE COMMONS BUILD PLUGIN ****|
+ |**** DO NOT EDIT DIRECTLY ****|
+ |**** ****|
+ +======================================================================+
+ | TEMPLATE FILE: download-page-template.xml |
+ | commons-build-plugin/trunk/src/main/resources/commons-xdoc-templates |
+ +======================================================================+
+ | |
+ | 1) Re-generate using: mvn commons:download-page |
+
+ Do NOT re-generate before an actual release can be downloaded.
+
+ | |
+ | 2) Set the following properties in the component's pom: |
+ | - commons.componentid (required, alphabetic, lower case) |
+ | - commons.release.version (required) |
+ | - commons.release.name (required) |
+ | - commons.binary.suffix (optional) |
+ | (defaults to "-bin", set to "" for pre-maven2 releases) |
+ | - commons.release.desc (optional) |
+ | - commons.release.subdir (optional) |
+ | |
+ | - commons.release.2/3.version (conditional) |
+ | - commons.release.2/3.name (conditional) |
+ | - commons.release.2/3.binary.suffix (optional) |
+ | - commons.release.2/3.desc (optional) |
+ | - commons.release.2/3.subdir (optional) |
+ | |
+ | 3) Example Properties |
+ | (commons.release.name inherited by parent: |
+ | ${project.artifactId}-${commons.release.version} |
+ | |
+ | <properties> |
+ | <commons.componentid>math</commons.componentid> |
+ | <commons.release.version>1.2</commons.release.version> |
+ | </properties> |
+ | |
+ +======================================================================+
+-->
+<document>
+ <properties>
+ <title>Download Apache Commons Statistics</title>
+ <author email="dev@commons.apache.org">Apache Commons Documentation Team</author>
+ </properties>
+ <body>
+ <section name="Download Apache Commons Statistics">
+ <p>
+ "Commons Statistics" is a new component split off "Commons Math".
+ There is no release yet. Come and help to make it happen!
+ </p>
+ </section>
+ </body>
+</document>
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/xdoc/index.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
new file mode 100644
index 0000000..8d92600
--- /dev/null
+++ b/src/site/xdoc/index.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+ -->
+
+<document>
+
+ <properties>
+ <title>Commons RNG</title>
+ </properties>
+
+ <body>
+
+ <section name="Apache Commons Statistics" href="summary">
+
+ </section>
+
+ <section name="Download Apache Commons Statistics">
+ <subsection name="Releases">
+ <p>
+ Download the
+ <a href="http://commons.apache.org/rng/download_statistics.cgi">
+ latest release</a> of Apache Commons Statistics.
+ </p>
+ </subsection>
+ </section>
+
+ </body>
+
+</document>
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/xdoc/issue-tracking.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/issue-tracking.xml b/src/site/xdoc/issue-tracking.xml
new file mode 100644
index 0000000..285f930
--- /dev/null
+++ b/src/site/xdoc/issue-tracking.xml
@@ -0,0 +1,102 @@
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You 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.
+-->
+<!--
+ +======================================================================+
+ |**** ****|
+ |**** THIS FILE IS GENERATED BY THE COMMONS BUILD PLUGIN ****|
+ |**** DO NOT EDIT DIRECTLY ****|
+ |**** ****|
+ +======================================================================+
+ | TEMPLATE FILE: issue-tracking-template.xml |
+ | commons-build-plugin/trunk/src/main/resources/commons-xdoc-templates |
+ +======================================================================+
+ | |
+ | 1) Re-generate using: mvn commons:jira-page |
+ | |
+ | 2) Set the following properties in the component's pom: |
+ | - commons.jira.id (required, alphabetic, upper case) |
+ | - commons.jira.pid (required, numeric) |
+ | |
+ | 3) Example Properties |
+ | |
+ | <properties> |
+ | <commons.jira.id>MATH</commons.jira.id> |
+ | <commons.jira.pid>12310485</commons.jira.pid> |
+ | </properties> |
+ | |
+ +======================================================================+
+-->
+<document>
+ <properties>
+ <title>Apache Commons Statistics Issue tracking</title>
+ <author email="dev@commons.apache.org">Apache Commons Documentation Team</author>
+ </properties>
+ <body>
+
+ <section name="Apache Commons Statistics Issue tracking">
+ <p>
+ Apache Commons Statistics uses <a href="https://issues.apache.org/jira/">ASF JIRA</a> for tracking issues.
+ See the <a href="https://issues.apache.org/jira/browse/STATISTICS">Apache Commons Statistics JIRA project page</a>.
+ </p>
+
+ <p>
+ To use JIRA you may need to <a href="https://issues.apache.org/jira/secure/Signup!default.jspa">create an account</a>
+ (if you have previously created/updated Commons issues using Bugzilla an account will have been automatically
+ created and you can use the <a href="https://issues.apache.org/jira/secure/ForgotPassword!default.jspa">Forgot Password</a>
+ page to get a new password).
+ </p>
+
+ <p>
+ If you would like to report a bug, or raise an enhancement request with
+ Apache Commons Statistics please do the following:
+ <ol>
+ <li><a href="https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12321632&sorter/field=issuekey&sorter/order=DESC&status=1&status=3&status=4">Search existing open bugs</a>.
+ If you find your issue listed then please add a comment with your details.</li>
+ <li><a href="mail-lists.html">Search the mailing list archive(s)</a>.
+ You may find your issue or idea has already been discussed.</li>
+ <li>Decide if your issue is a bug or an enhancement.</li>
+ <li>Submit either a <a href="https://issues.apache.org/jira/secure/CreateIssueDetails!init.jspa?pid=12321632&issuetype=1&priority=4&assignee=-1">bug report</a>
+ or <a href="https://issues.apache.org/jira/secure/CreateIssueDetails!init.jspa?pid=12321632&issuetype=4&priority=4&assignee=-1">enhancement request</a>.</li>
+ </ol>
+ </p>
+
+ <p>
+ Please also remember these points:
+ <ul>
+ <li>the more information you provide, the better we can help you</li>
+ <li>test cases are vital, particularly for any proposed enhancements</li>
+ <li>the developers of Apache Commons Statistics are all unpaid volunteers</li>
+ </ul>
+ </p>
+
+ <p>
+ For more information on subversion and creating patches see the
+ <a href="http://www.apache.org/dev/contributors.html">Apache Contributors Guide</a>.
+ </p>
+
+ <p>
+ You may also find these links useful:
+ <ul>
+ <li><a href="https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12321632&sorter/field=issuekey&sorter/order=DESC&status=1&status=3&status=4">All Open Apache Commons Statistics bugs</a></li>
+ <li><a href="https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12321632&sorter/field=issuekey&sorter/order=DESC&status=5&status=6">All Resolved Apache Commons Statistics bugs</a></li>
+ <li><a href="https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12321632&sorter/field=issuekey&sorter/order=DESC">All Apache Commons Statistics bugs</a></li>
+ </ul>
+ </p>
+ </section>
+ </body>
+</document>
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/xdoc/mail-lists.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/mail-lists.xml b/src/site/xdoc/mail-lists.xml
new file mode 100644
index 0000000..08ffaaa
--- /dev/null
+++ b/src/site/xdoc/mail-lists.xml
@@ -0,0 +1,205 @@
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You 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.
+-->
+<!--
+ +======================================================================+
+ |**** ****|
+ |**** THIS FILE IS GENERATED BY THE COMMONS BUILD PLUGIN ****|
+ |**** DO NOT EDIT DIRECTLY ****|
+ |**** ****|
+ +======================================================================+
+ | TEMPLATE FILE: mail-lists-template.xml |
+ | commons-build-plugin/trunk/src/main/resources/commons-xdoc-templates |
+ +======================================================================+
+ | |
+ | 1) Re-generate using: mvn commons:mail-page |
+ | |
+ | 2) Set the following properties in the component's pom: |
+ | - commons.componentid (required, alphabetic, lower case) |
+ | |
+ | 3) Example Properties |
+ | |
+ | <properties> |
+ | <commons.componentid>math</commons.componentid> |
+ | </properties> |
+ | |
+ +======================================================================+
+-->
+<document>
+ <properties>
+ <title>Apache Commons Statistics Mailing Lists</title>
+ <author email="dev@commons.apache.org">Apache Commons Documentation Team</author>
+ </properties>
+ <body>
+
+ <section name="Overview">
+ <p>
+ <a href="index.html">Apache Commons Statistics</a> shares mailing lists with all the other
+ <a href="http://commons.apache.org/components.html">Commons Components</a>.
+ To make it easier for people to only read messages related to components they are interested in,
+ the convention in Commons is to prefix the subject line of messages with the component's name,
+ for example:
+ <ul>
+ <li>[statistics] Problem with the ...</li>
+ </ul>
+ </p>
+ <p>
+ Questions related to the usage of Apache Commons Statistics should be posted to the
+ <a href="http://mail-archives.apache.org/mod_mbox/commons-user/">User List</a>.
+ <br />
+ The <a href="http://mail-archives.apache.org/mod_mbox/commons-dev/">Developer List</a>
+ is for questions and discussion related to the development of Apache Commons Statistics.
+ <br />
+ Please do not cross-post; developers are also subscribed to the user list.
+ <br />
+ You must be subscribed to post to the mailing lists. Follow the Subscribe links below
+ to subscribe.
+ </p>
+ <p>
+ <strong>Note:</strong> please don't send patches or attachments to any of the mailing lists.
+ Patches are best handled via the <a href="issue-tracking.html">Issue Tracking</a> system.
+ Otherwise, please upload the file to a public server and include the URL in the mail.
+ </p>
+ </section>
+
+ <section name="Apache Commons Statistics Mailing Lists">
+ <p>
+ <strong>Please prefix the subject line of any messages for <a href="index.html">Apache Commons Statistics</a>
+ with <i>[statistics]</i></strong> - <i>thanks!</i>
+ <br />
+ <br />
+ </p>
+
+ <table>
+ <tr>
+ <th>Name</th>
+ <th>Subscribe</th>
+ <th>Unsubscribe</th>
+ <th>Post</th>
+ <th>Archive</th>
+ <th>Other Archives</th>
+ </tr>
+
+
+ <tr>
+ <td>
+ <strong>Commons User List</strong>
+ <br /><br />
+ Questions on using Apache Commons Statistics.
+ <br /><br />
+ </td>
+ <td><a href="mailto:user-subscribe@commons.apache.org">Subscribe</a></td>
+ <td><a href="mailto:user-unsubscribe@commons.apache.org">Unsubscribe</a></td>
+ <td><a href="mailto:user@commons.apache.org?subject=[statistics]">Post</a></td>
+ <td><a href="http://mail-archives.apache.org/mod_mbox/commons-user/">mail-archives.apache.org</a></td>
+ <td><a href="http://markmail.org/list/org.apache.commons.users/">markmail.org</a><br />
+ <a href="http://www.mail-archive.com/user@commons.apache.org/">www.mail-archive.com</a><br />
+ <a href="http://news.gmane.org/gmane.comp.jakarta.commons.devel">news.gmane.org</a>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td>
+ <strong>Commons Developer List</strong>
+ <br /><br />
+ Discussion of development of Apache Commons Statistics.
+ <br /><br />
+ </td>
+ <td><a href="mailto:dev-subscribe@commons.apache.org">Subscribe</a></td>
+ <td><a href="mailto:dev-unsubscribe@commons.apache.org">Unsubscribe</a></td>
+ <td><a href="mailto:dev@commons.apache.org?subject=[statistics]">Post</a></td>
+ <td><a href="http://mail-archives.apache.org/mod_mbox/commons-dev/">mail-archives.apache.org</a></td>
+ <td><a href="http://markmail.org/list/org.apache.commons.dev/">markmail.org</a><br />
+ <a href="http://www.mail-archive.com/dev@commons.apache.org/">www.mail-archive.com</a><br />
+ <a href="http://news.gmane.org/gmane.comp.jakarta.commons.devel">news.gmane.org</a>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td>
+ <strong>Commons Issues List</strong>
+ <br /><br />
+ Only for e-mails automatically generated by the <a href="issue-tracking.html">issue tracking</a> system.
+ <br /><br />
+ </td>
+ <td><a href="mailto:issues-subscribe@commons.apache.org">Subscribe</a></td>
+ <td><a href="mailto:issues-unsubscribe@commons.apache.org">Unsubscribe</a></td>
+ <td><i>read only</i></td>
+ <td><a href="http://mail-archives.apache.org/mod_mbox/commons-issues/">mail-archives.apache.org</a></td>
+ <td><a href="http://markmail.org/list/org.apache.commons.issues/">markmail.org</a><br />
+ <a href="http://www.mail-archive.com/issues@commons.apache.org/">www.mail-archive.com</a>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td>
+ <strong>Commons Commits List</strong>
+ <br /><br />
+ Only for e-mails automatically generated by the <a href="source-repository.html">source control</a> sytem.
+ <br /><br />
+ </td>
+ <td><a href="mailto:commits-subscribe@commons.apache.org">Subscribe</a></td>
+ <td><a href="mailto:commits-unsubscribe@commons.apache.org">Unsubscribe</a></td>
+ <td><i>read only</i></td>
+ <td><a href="http://mail-archives.apache.org/mod_mbox/commons-commits/">mail-archives.apache.org</a></td>
+ <td><a href="http://markmail.org/list/org.apache.commons.commits/">markmail.org</a><br />
+ <a href="http://www.mail-archive.com/commits@commons.apache.org/">www.mail-archive.com</a>
+ </td>
+ </tr>
+
+ </table>
+
+ </section>
+ <section name="Apache Mailing Lists">
+ <p>
+ Other mailing lists which you may find useful include:
+ </p>
+
+ <table>
+ <tr>
+ <th>Name</th>
+ <th>Subscribe</th>
+ <th>Unsubscribe</th>
+ <th>Post</th>
+ <th>Archive</th>
+ <th>Other Archives</th>
+ </tr>
+ <tr>
+ <td>
+ <strong>Apache Announce List</strong>
+ <br /><br />
+ General announcements of Apache project releases.
+ <br /><br />
+ </td>
+ <td><a class="externalLink" href="mailto:announce-subscribe@apache.org">Subscribe</a></td>
+ <td><a class="externalLink" href="mailto:announce-unsubscribe@apache.org">Unsubscribe</a></td>
+ <td><i>read only</i></td>
+ <td><a class="externalLink" href="http://mail-archives.apache.org/mod_mbox/www-announce/">mail-archives.apache.org</a></td>
+ <td><a class="externalLink" href="http://markmail.org/list/org.apache.announce/">markmail.org</a><br />
+ <a class="externalLink" href="http://old.nabble.com/Apache-News-and-Announce-f109.html">old.nabble.com</a><br />
+ <a class="externalLink" href="http://www.mail-archive.com/announce@apache.org/">www.mail-archive.com</a><br />
+ <a class="externalLink" href="http://news.gmane.org/gmane.comp.apache.announce">news.gmane.org</a>
+ </td>
+ </tr>
+ </table>
+
+ </section>
+ </body>
+</document>
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/xdoc/userguide/distribution.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/userguide/distribution.xml b/src/site/xdoc/userguide/distribution.xml
new file mode 100644
index 0000000..da6ea75
--- /dev/null
+++ b/src/site/xdoc/userguide/distribution.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+ -->
+
+<?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
+<document url="distribution.html">
+ <properties>
+ <title>The Commons Math User Guide - Distributions</title>
+ </properties>
+ <body>
+ <section name="1 Probability Distributions">
+ <subsection name="1.1 Overview" href="overview">
+ <p>
+ The distributions package provides a framework and implementations for some commonly used
+ probability distributions. Continuous univariate distributions are represented by implementations of
+ the <a href="../commons-statistics-distribution/apidocs/org/apache/commons/statistics/distribution/ContinuousDistribution.html">ContinuousDistribution</a>
+ interface. Discrete distributions implement
+ <a href="../commons-statistics-distribution/apidocs/org/apache/commons/statistics/distribution/DiscreteDistribution.html">DiscreteDistribution</a>
+ (values must be mapped to integers).
+ </p>
+ </subsection>
+ <subsection name="1.2 API" href="distributions">
+ <p>
+ The distribution framework provides the means to compute probability density,
+ probability mass and cumulative probability functions for several well-known
+ discrete (integer-valued) and continuous probability distributions.
+ The API also allows for the computation of inverse cumulative probabilities
+ and sampling from distributions.
+ </p>
+ <p>
+ For an instance <code>f</code> of a distribution <code>F</code>,
+ and a domain value, <code>x</code>, <code>f.cumulativeProbability(x)</code>
+ computes <code>P(X <= x)</code> where <code>X</code> is a random variable distributed
+ as <code>F</code>.
+ For <a href="../commons-statistics-distribution/apidocs/org/apache/commons/statistics/distribution/DiscreteDistribution.html">discrete</a>
+ <code>F</code>, the probability mass function is given by <code>f.probability(x)</code>.
+ For <a href="../commons-statistics-distribution/apidocs/org/apache/commons/statistics/distribution/ContinuousDistribution.html">continuous</a>
+ <code>F</code>, the probability density function is given by <code>f.density(x)</code>.
+ Continuous distributions also implement <code>f.probability(x1, x2)</code> for computing
+ <code>P(x1 <= X <= x2)</code>.
+ </p>
+<source>TDistribution t = new TDistribution(29);
+double lowerTail = t.cumulativeProbability(-2.656); // P(T(29) <= -2.656)
+double upperTail = 1.0 - t.cumulativeProbability(2.75); // P(T(29) >= 2.75)</source>
+ <p>
+ All distributions implement a <code>createSampler(UniformRandomProvider rng)</code>
+ method to support random sampling from the distribution, where <code>UniformRandomProvider</code>
+ is an interface defined in <a href="https://commons.apache.org/rng">Commons RNG</a>.
+ </p>
+ <p>
+ Inverse distribution functions can be computed using the
+ <code>inverseCumulativeProbability</code> methods. For continuous <code>f</code>
+ and <code>p</code> a probability, <code>f.inverseCumulativeProbability(p)</code> returns
+ <ul>
+ <li><code>inf{x in R | P(X ≤ x) ≥ p} for 0 < p < 1},</code></li>
+ <li><code>inf{x in R | P(X ≤ x) > 0} for p = 0}.</code></li>
+ </ul>
+ where <code>X</code> is distributed as <code>F</code>.<br/>
+ For discrete <code>F</code>, the definition is the same, with <code>Z</code> (the integers)
+ in place of <code>R</code> (but note that, in the discrete case, the ≥ in the definition
+ can make a difference when <code>p</code> is an attained value of the distribution).
+ </p>
+ </subsection>
+ </section>
+ </body>
+</document>
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/xdoc/userguide/index.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/userguide/index.xml b/src/site/xdoc/userguide/index.xml
new file mode 100644
index 0000000..3999aca
--- /dev/null
+++ b/src/site/xdoc/userguide/index.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+ -->
+
+<?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
+<document url="index.html">
+ <properties>
+ <title>The Commons Statistics User Guide - Table of Contents</title>
+ </properties>
+
+ <body>
+ <section name="Table of Contents" href="toc">
+
+ <ul>
+
+ <li>
+ <a href="distribution.html">
+ 1. Distributions</a>
+ </li>
+ </ul>
+
+ </section>
+
+ </body>
+
+</document>
http://git-wip-us.apache.org/repos/asf/commons-statistics/blob/0db6c9cc/src/site/xdoc/userguide/xdoc.xsl
----------------------------------------------------------------------
diff --git a/src/site/xdoc/userguide/xdoc.xsl b/src/site/xdoc/userguide/xdoc.xsl
new file mode 100644
index 0000000..cfbd5f5
--- /dev/null
+++ b/src/site/xdoc/userguide/xdoc.xsl
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+ -->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="/">
+ <html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <head>
+ <xsl:apply-templates select="/document/properties/title"/>
+ <xsl:apply-templates select="/document/meta"/>
+ <style type="text/css">
+ @import url("../style/tigris.css");
+ @import url("../style/maven.css");
+ @import url("../style/project.css");
+ </style>
+ <link rel="stylesheet" href="../style/print.css" type="text/css" media="print"></link>
+ </head>
+ <xsl:apply-templates select="/document/body"/>
+ </html>
+ </xsl:template>
+ <xsl:template match="body">
+ <body>
+ <div class="app">
+ <xsl:apply-templates/>
+ </div>
+ </body>
+ </xsl:template>
+ <xsl:template match="section">
+ <div>
+ <h3><xsl:value-of select="@name"/></h3>
+ <xsl:apply-templates/>
+ </div>
+ </xsl:template>
+ <xsl:template match="subsection">
+ <div>
+ <h4><xsl:value-of select="@name"/></h4>
+ <xsl:apply-templates/>
+ </div>
+ </xsl:template>
+ <xsl:template match="source">
+ <div id="source">
+ <pre>
+ <xsl:apply-templates/>
+ </pre>
+ </div>
+ </xsl:template>
+ <xsl:template match="node()|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>