forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From che...@apache.org
Subject svn commit: rev 56925 - in forrest/trunk: . main/fresh-site/src/documentation main/fresh-site/src/documentation/classes main/fresh-site/src/documentation/content/xdocs/samples main/fresh-site/src/documentation/resources main/fresh-site/src/documentation/resources/schema main/fresh-site/src/documentation/resources/stylesheets
Date Mon, 08 Nov 2004 13:31:06 GMT
Author: cheche
Date: Mon Nov  8 05:31:05 2004
New Revision: 56925

Added:
   forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/custom.xml
   forrest/trunk/main/fresh-site/src/documentation/resources/
   forrest/trunk/main/fresh-site/src/documentation/resources/schema/
   forrest/trunk/main/fresh-site/src/documentation/resources/schema/catalog.xcat
   forrest/trunk/main/fresh-site/src/documentation/resources/schema/hello-v10.dtd
   forrest/trunk/main/fresh-site/src/documentation/resources/stylesheets/
   forrest/trunk/main/fresh-site/src/documentation/resources/stylesheets/hello2document.xsl
   forrest/trunk/main/fresh-site/src/documentation/sitemap.xmap
Modified:
   forrest/trunk/main/fresh-site/src/documentation/classes/CatalogManager.properties
   forrest/trunk/status.xml
Log:
Added a custom xml example on the fresh-site 


Modified: forrest/trunk/main/fresh-site/src/documentation/classes/CatalogManager.properties
==============================================================================
--- forrest/trunk/main/fresh-site/src/documentation/classes/CatalogManager.properties	(original)
+++ forrest/trunk/main/fresh-site/src/documentation/classes/CatalogManager.properties	Mon
Nov  8 05:31:05 2004
@@ -47,5 +47,5 @@
 # directory separator is always slash (/) regardless of operating system
 #
 #catalogs=/home/me/forrest/my-site/src/documentation/resources/schema/catalog.xcat
-catalogs=
-
+catalogs=../resources/schema/catalog.xcat
+relative-catalogs=false

Added: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/custom.xml
==============================================================================
--- (empty file)
+++ forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/custom.xml	Mon Nov
 8 05:31:05 2004
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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.
+-->
+<!DOCTYPE greeting PUBLIC "-//Acme//DTD Hello Document V1.0//EN" "hello-v10.dtd">
+<greeting>
+Hello XML Custom World!!
+</greeting>

Added: forrest/trunk/main/fresh-site/src/documentation/resources/schema/catalog.xcat
==============================================================================
--- (empty file)
+++ forrest/trunk/main/fresh-site/src/documentation/resources/schema/catalog.xcat	Mon Nov
 8 05:31:05 2004
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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.
+-->
+<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
+"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
+
+<!-- OASIS XML Catalog for Forrest Documents -->
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
+         prefer="public">
+
+<!-- Download  -->
+<public publicId="-//Acme//DTD Hello Document V1.0//EN"
+        uri="hello-v10.dtd"/>
+
+</catalog>

Added: forrest/trunk/main/fresh-site/src/documentation/resources/schema/hello-v10.dtd
==============================================================================
--- (empty file)
+++ forrest/trunk/main/fresh-site/src/documentation/resources/schema/hello-v10.dtd	Mon Nov
 8 05:31:05 2004
@@ -0,0 +1,50 @@
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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.
+-->
+<!-- ===================================================================
+
+     Apache Hello DTD (Version 1.0)
+
+PURPOSE:
+  
+
+TYPICAL INVOCATION:
+
+  <!DOCTYPE greeting PUBLIC
+       "-//Acme//DTD Hello Document Vx.y//EN"
+       "hello.dtd">
+
+  where
+
+    x := major version
+    y := minor version
+
+FIXME:
+
+CHANGE HISTORY:
+[Version 1.0]
+  20041009 Initial version. (JJP)
+
+==================================================================== -->
+
+<!-- =============================================================== -->
+<!-- Greeting type element -->
+<!-- =============================================================== -->
+
+<!ELEMENT greeting (#PCDATA)>
+
+<!-- =============================================================== -->
+<!-- End of DTD -->
+<!-- =============================================================== -->

Added: forrest/trunk/main/fresh-site/src/documentation/resources/stylesheets/hello2document.xsl
==============================================================================
--- (empty file)
+++ forrest/trunk/main/fresh-site/src/documentation/resources/stylesheets/hello2document.xsl
Mon Nov  8 05:31:05 2004
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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.
+-->
+
+<!--+
+    | Transforms Hello document format.
+    +-->
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+  <xsl:template match="/">
+    <document>
+      <header>
+        <title>
+          <xsl:value-of select="greeting"/>
+        </title>
+      </header>
+      <body>
+          <xsl:value-of select="greeting"/>
+      </body>
+    </document>
+  </xsl:template>
+ 
+</xsl:stylesheet>

Added: forrest/trunk/main/fresh-site/src/documentation/sitemap.xmap
==============================================================================
--- (empty file)
+++ forrest/trunk/main/fresh-site/src/documentation/sitemap.xmap	Mon Nov  8 05:31:05 2004
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+ <map:pipelines>
+  <map:pipeline>
+   <map:match pattern="**custom.xml">
+    <map:generate src="{project:content.xdocs}{1}custom.xml" />
+    <map:transform src="{project:resources.stylesheets}/hello2document.xsl" />
+    <map:serialize type="xml"/>
+   </map:match>
+  </map:pipeline>
+ </map:pipelines>
+</map:sitemap>

Modified: forrest/trunk/status.xml
==============================================================================
--- forrest/trunk/status.xml	(original)
+++ forrest/trunk/status.xml	Mon Nov  8 05:31:05 2004
@@ -44,6 +44,9 @@
 
   <changes>
     <release version="0.7-dev" date="not yet released">
+      <action dev="JJP" type="add" context="docs">
+        Added custom xml sample on the fresh-site directory
+      </action>
       <action dev="DC" type="add" context="docs"
         due-to="Stephan E. Schlierf" fixes-bug="FOR-351">
         Added 

Mime
View raw message