You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by in...@apache.org on 2018/03/27 17:34:55 UTC
[4/5] hadoop git commit: HDFS-13352. RBF: Add xsl stylesheet for
hdfs-rbf-default.xml. Contributed by Takanobu Asanuma.
HDFS-13352. RBF: Add xsl stylesheet for hdfs-rbf-default.xml. Contributed by Takanobu Asanuma.
(cherry picked from commit 4cef01147f98451de8acaa90f42a4d4cd4d0af45)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/6b187d2e
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/6b187d2e
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/6b187d2e
Branch: refs/heads/branch-2
Commit: 6b187d2ee0147e773c6da49137c1e056fe2b2b33
Parents: 90609f3
Author: Inigo Goiri <in...@apache.org>
Authored: Tue Mar 27 10:31:03 2018 -0700
Committer: Inigo Goiri <in...@apache.org>
Committed: Tue Mar 27 10:33:31 2018 -0700
----------------------------------------------------------------------
hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml | 1 +
.../src/main/xsl/configuration.xsl | 37 ++++++++++++++++++++
2 files changed, 38 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/6b187d2e/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml
index 8ef3bb7..81ce307 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml
@@ -172,6 +172,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<configuration>
<tasks>
<copy file="src/main/resources/hdfs-rbf-default.xml" todir="src/site/resources"/>
+ <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
</tasks>
</configuration>
</execution>
http://git-wip-us.apache.org/repos/asf/hadoop/blob/6b187d2e/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/xsl/configuration.xsl
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/xsl/configuration.xsl b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/xsl/configuration.xsl
new file mode 100644
index 0000000..d23168f
--- /dev/null
+++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/xsl/configuration.xsl
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. See accompanying LICENSE file.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:output method="html"/>
+<xsl:template match="configuration">
+<html>
+<body>
+<table border="1">
+<tr>
+ <td>name</td>
+ <td>value</td>
+ <td>description</td>
+</tr>
+<xsl:for-each select="property">
+<tr>
+ <td><a name="{name}"><xsl:value-of select="name"/></a></td>
+ <td><xsl:value-of select="value"/></td>
+ <td><xsl:value-of select="description"/></td>
+</tr>
+</xsl:for-each>
+</table>
+</body>
+</html>
+</xsl:template>
+</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org