You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by gm...@apache.org on 2008/07/19 13:13:05 UTC

svn commit: r678132 - in /forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b: xinclude-explanation.xml xinclude-input-sec2.xml xinclude.xml

Author: gmcdonald
Date: Sat Jul 19 04:13:05 2008
New Revision: 678132

URL: http://svn.apache.org/viewvc?rev=678132&view=rev
Log:
Add new filesfor xinclude example, due to Carlos Tejo, FOR-814

Added:
    forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-explanation.xml   (with props)
    forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-input-sec2.xml   (with props)
    forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude.xml   (with props)

Added: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-explanation.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-explanation.xml?rev=678132&view=auto
==============================================================================
--- forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-explanation.xml (added)
+++ forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-explanation.xml Sat Jul 19 04:13:05 2008
@@ -0,0 +1,40 @@
+<?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.
+-->
+<section>
+	<title>Section 1</title>
+	<p>
+	You can compose some types of raw content using <a href="http://www.w3.org/TR/xinclude/">xinclude</a> technology. For example, you can place two XML files in <code>src/documentation/content/xdocs/samples-b</code> and create a XML file that combine them using <a href="http://cocoon.apache.org/2.2/core-modules/core/2.2/985_1_1.html">Cocoon XInclude Transformer</a>.
+	</p>
+	<p>
+		<source>
+		<code>src/documentation/content/xdocs/samples-b/xinclude.xml</code>
+<![CDATA[
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
+<document xmlns:xi="http://www.w3.org/2001/XInclude">
+<header>
+	<title>Xinclude Example</title>
+</header>
+<body>
+	<xi:include href="cocoon://samples-b/xinclude-explanation.xml"/>
+	<xi:include href="cocoon://samples-b/xinclude-input-sec2.xml"/>
+</body>
+</document>]]>
+		</source>
+	</p>
+</section>
\ No newline at end of file

Propchange: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-explanation.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-input-sec2.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-input-sec2.xml?rev=678132&view=auto
==============================================================================
--- forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-input-sec2.xml (added)
+++ forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-input-sec2.xml Sat Jul 19 04:13:05 2008
@@ -0,0 +1,24 @@
+<?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.
+-->
+<section>
+	<title>Section 2</title>
+	<p>
+		Section 2 added from another XML file (xinclude-input-sec2.xml).
+	</p>
+</section>
+

Propchange: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude-input-sec2.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude.xml?rev=678132&view=auto
==============================================================================
--- forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude.xml (added)
+++ forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude.xml Sat Jul 19 04:13:05 2008
@@ -0,0 +1,28 @@
+<?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.
+-->
+
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
+<document xmlns:xi="http://www.w3.org/2001/XInclude">
+  <header>
+    <title>Xinclude Example</title>
+  </header>
+  <body>
+    <xi:include href="cocoon://samples-b/xinclude-explanation.xml"/>
+    <xi:include href="cocoon://samples-b/xinclude-input-sec2.xml"/>
+  </body>
+</document>

Propchange: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples-b/xinclude.xml
------------------------------------------------------------------------------
    svn:eol-style = native