svn commit: r755992 [3/5] - in /lenya/contributions/2_0_X/pubs: ./ defaultfiredocs/ defaultfiredocs/config/ defaultfiredocs/config/access-control/ defaultfiredocs/config/access-control/passwd/ defaultfiredocs/config/access-control/policies/ defaultfire...

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/index/index_en.meta
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/index/index_en.meta?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/index/index_en.meta (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/index/index_en.meta Thu Mar 19 13:29:18 2009
@@ -0,0 +1,47 @@
+<?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.
+-->
+<!-- $Id: index_en.meta 557603 2007-07-19 12:48:31Z andreas $ -->
+<lenya:document xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<lenya:meta>
+    <lenya:custom>
+      <lenya:myMeta>Add your own metadata to lenya.</lenya:myMeta>
+    </lenya:custom>
+<lenya:internal>
+<lenya:resourceType>homepage</lenya:resourceType>
+<lenya:contentType>xml</lenya:contentType>
+  <lenya:mimeType>application/xhtml+xml</lenya:mimeType>
+</lenya:internal>
+<lenya:dc>
+        <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Welcome to the Lenya default publication</dc:title>
+        <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Development Team</dc:creator>
+        <dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya default publication</dc:subject>
+        <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">The start page of the Lenya default publication</dc:description>
+        <dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">Apache Software Foundation</dc:publisher>
+        <dc:contributor xmlns:dc="http://purl.org/dc/elements/1.1/" />
+        <dc:date xmlns:dc="http://purl.org/dc/elements/1.1/">2005-01-31</dc:date>
+        <dc:type xmlns:dc="http://purl.org/dc/elements/1.1/" />
+        <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/" />
+        <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/" />
+        <dc:source xmlns:dc="http://purl.org/dc/elements/1.1/" />
+        <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">en</dc:language>
+        <dc:relation xmlns:dc="http://purl.org/dc/elements/1.1/" />
+        <dc:coverage xmlns:dc="http://purl.org/dc/elements/1.1/" />
+        <dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">All rights reserved</dc:rights>
+</lenya:dc>
+</lenya:meta>
+</lenya:document>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_de
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_de?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_de (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_de Thu Mar 19 13:29:18 2009
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+
+<links xmlns="http://apache.org/lenya/pubs/default/1.0">
+  <title>Links zu Apache Lenya</title>
+  <link href="http://lenya.apache.org/">Apache Lenya Website</link>
+  <link href="http://wiki.apache.org/lenya/">Apache Lenya Wiki</link>
+</links>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_de.meta
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_de.meta?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_de.meta (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_de.meta Thu Mar 19 13:29:18 2009
@@ -0,0 +1,31 @@
+<?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.
+-->
+<!-- $Id: index_en.meta 473861 2006-11-12 03:51:14Z gregor $ -->
+<lenya:document xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<lenya:meta>
+<lenya:internal>
+<lenya:resourceType>links</lenya:resourceType>
+<lenya:contentType>xml</lenya:contentType>
+  <lenya:mimeType>application/xml</lenya:mimeType>
+</lenya:internal>
+<lenya:dc>
+        <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya links</dc:title>
+        <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Development Team</dc:creator>
+</lenya:dc>
+</lenya:meta>
+</lenya:document>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_en
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_en?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_en (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_en Thu Mar 19 13:29:18 2009
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+
+<links xmlns="http://apache.org/lenya/pubs/default/1.0">
+  <title>Apache Lenya Links</title>
+  <link href="http://lenya.apache.org/">Apache Lenya Website</link>
+  <link href="http://wiki.apache.org/lenya/">Apache Lenya Wiki</link>
+</links>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_en.meta
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_en.meta?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_en.meta (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/links/index_en.meta Thu Mar 19 13:29:18 2009
@@ -0,0 +1,31 @@
+<?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.
+-->
+<!-- $Id: index_en.meta 557603 2007-07-19 12:48:31Z andreas $ -->
+<lenya:document xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<lenya:meta>
+<lenya:internal>
+<lenya:resourceType>links</lenya:resourceType>
+<lenya:contentType>xml</lenya:contentType>
+  <lenya:mimeType>application/xml</lenya:mimeType>
+</lenya:internal>
+<lenya:dc>
+        <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya links</dc:title>
+        <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Development Team</dc:creator>
+</lenya:dc>
+</lenya:meta>
+</lenya:document>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_de
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_de?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_de (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_de Thu Mar 19 13:29:18 2009
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<col:collection xmlns:col="http://apache.org/cocoon/lenya/collection/1.0" type="children" includeItems="3"/>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_de.meta
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_de.meta?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_de.meta (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_de.meta Thu Mar 19 13:29:18 2009
@@ -0,0 +1,44 @@
+<?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.
+-->
+<!-- $Id: index_en.meta 473861 2006-11-12 03:51:14Z gregor $ -->
+<lenya:document xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<lenya:meta>
+<lenya:internal>
+<lenya:resourceType>news</lenya:resourceType>
+<lenya:contentType>xml</lenya:contentType>
+  <lenya:mimeType>application/xml</lenya:mimeType>
+</lenya:internal>
+<lenya:dc>
+        <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">News</dc:title>
+        <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Development Team</dc:creator>
+        <dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">News</dc:subject>
+        <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">A news page</dc:description>
+        <dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">Apache Software Foundation</dc:publisher>
+        <dc:contributor xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:date xmlns:dc="http://purl.org/dc/elements/1.1/">2007-03-22 15:53:25</dc:date>
+        <dc:type xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:source xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">de</dc:language>
+        <dc:relation xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:coverage xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">All rights reserved</dc:rights>
+</lenya:dc>
+</lenya:meta>
+</lenya:document>
\ No newline at end of file

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_en
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_en?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_en (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_en Thu Mar 19 13:29:18 2009
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<col:collection xmlns:col="http://apache.org/cocoon/lenya/collection/1.0" type="children" includeItems="3"/>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_en.meta
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_en.meta?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_en.meta (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/index_en.meta Thu Mar 19 13:29:18 2009
@@ -0,0 +1,44 @@
+<?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.
+-->
+<!-- $Id: index_en.meta 473861 2006-11-12 03:51:14Z gregor $ -->
+<lenya:document xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<lenya:meta>
+<lenya:internal>
+<lenya:resourceType>news</lenya:resourceType>
+<lenya:contentType>xml</lenya:contentType>
+  <lenya:mimeType>application/xml</lenya:mimeType>
+</lenya:internal>
+<lenya:dc>
+        <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">News</dc:title>
+        <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Development Team</dc:creator>
+        <dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">News</dc:subject>
+        <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">A news page</dc:description>
+        <dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">Apache Software Foundation</dc:publisher>
+        <dc:contributor xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:date xmlns:dc="http://purl.org/dc/elements/1.1/">2007-03-22 15:53:25</dc:date>
+        <dc:type xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:source xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">en</dc:language>
+        <dc:relation xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:coverage xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">All rights reserved</dc:rights>
+</lenya:dc>
+</lenya:meta>
+</lenya:document>
\ No newline at end of file

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_de
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_de?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_de (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_de Thu Mar 19 13:29:18 2009
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<html xmlns="http://www.w3.org/1999/xhtml" 
+xmlns:xhtml="http://www.w3.org/1999/xhtml" 
+xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/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.
+-->
+
+<!-- $Id: index_en 473861 2006-11-12 03:51:14Z gregor $ -->
+  <head>
+    <title>Lenya erfolgreich installiert</title>
+  </head>
+  <body>
+  
+    <h1>Lenya erfolgreich installiert</h1>
+
+    <p>Herzlichen Glückwunsch, Sie haben Lenya erfolgreich installiert und den Beispiel-Inhalt importiert!</p>
+
+    <p>Dieser Text wird nicht auf der News-Übersicht erscheinen, da dort nur der erste Absatz dargestellt wird.</p>
+
+  </body>
+</html>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_de.meta
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_de.meta?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_de.meta (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_de.meta Thu Mar 19 13:29:18 2009
@@ -0,0 +1,44 @@
+<?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.
+-->
+<!-- $Id: index_en.meta 473861 2006-11-12 03:51:14Z gregor $ -->
+<lenya:document xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<lenya:meta>
+<lenya:internal>
+<lenya:resourceType>xhtml</lenya:resourceType>
+<lenya:contentType>xml</lenya:contentType>
+  <lenya:mimeType>application/xhtml+xml</lenya:mimeType>
+</lenya:internal>
+<lenya:dc>
+        <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya erfolgreich installiert</dc:title>
+        <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Development Team</dc:creator>
+        <dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya erfolgreich installiert</dc:subject>
+        <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">A news message.</dc:description>
+        <dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">Apache Software Foundation</dc:publisher>
+        <dc:contributor xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:date xmlns:dc="http://purl.org/dc/elements/1.1/">2007-03-22 15:54:35</dc:date>
+        <dc:type xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:source xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">de</dc:language>
+        <dc:relation xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:coverage xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">All rights reserved</dc:rights>
+</lenya:dc>
+</lenya:meta>
+</lenya:document>
\ No newline at end of file

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_en
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_en?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_en (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_en Thu Mar 19 13:29:18 2009
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<html xmlns="http://www.w3.org/1999/xhtml" 
+xmlns:xhtml="http://www.w3.org/1999/xhtml" 
+xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/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.
+-->
+
+<!-- $Id: index_en 473861 2006-11-12 03:51:14Z gregor $ -->
+  <head>
+    <title>Lenya Successfully Installed</title>
+  </head>
+  <body>
+  
+    <h1>Lenya Successfully Installed</h1>
+
+    <p>Congratulations, you have successfully installed Lenya and imported the example content!</p>
+
+    <p>This text will not appear in the news overview, since only the first paragraph is displayed there.</p>
+
+  </body>
+</html>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_en.meta
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_en.meta?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_en.meta (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/news/installed/index_en.meta Thu Mar 19 13:29:18 2009
@@ -0,0 +1,44 @@
+<?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.
+-->
+<!-- $Id: index_en.meta 473861 2006-11-12 03:51:14Z gregor $ -->
+<lenya:document xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<lenya:meta>
+<lenya:internal>
+<lenya:resourceType>xhtml</lenya:resourceType>
+<lenya:contentType>xml</lenya:contentType>
+  <lenya:mimeType>application/xhtml+xml</lenya:mimeType>
+</lenya:internal>
+<lenya:dc>
+        <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Successfully Installed</dc:title>
+        <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Development Team</dc:creator>
+        <dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Successfully Installed</dc:subject>
+        <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">A news message.</dc:description>
+        <dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">Apache Software Foundation</dc:publisher>
+        <dc:contributor xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:date xmlns:dc="http://purl.org/dc/elements/1.1/">2007-03-22 15:54:35</dc:date>
+        <dc:type xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:source xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">en</dc:language>
+        <dc:relation xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:coverage xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">All rights reserved</dc:rights>
+</lenya:dc>
+</lenya:meta>
+</lenya:document>
\ No newline at end of file

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_de
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_de?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_de (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_de Thu Mar 19 13:29:18 2009
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<usecase xmlns="http://apache.org/lenya/usecase/1.0" name="lucene.search"/>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_de.meta
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_de.meta?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_de.meta (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_de.meta Thu Mar 19 13:29:18 2009
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<lenya:document xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<lenya:meta>
+<lenya:custom>
+<lenya:myMeta/>
+</lenya:custom>
+<lenya:dc>
+<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Suche</dc:title>
+<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lenya</dc:creator>
+<dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+<dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+<dc:date xmlns:dc="http://purl.org/dc/elements/1.1/">2006-06-12 13:43:14</dc:date>
+<dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">de</dc:language>
+<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+</lenya:dc>
+<lenya:internal>
+<lenya:resourceType>usecase</lenya:resourceType>
+<lenya:contentType>xml</lenya:contentType>
+<lenya:extension>xml</lenya:extension>
+  <lenya:mimeType>application/xml</lenya:mimeType>
+</lenya:internal>
+</lenya:meta>
+</lenya:document>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_en
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_en?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_en (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_en Thu Mar 19 13:29:18 2009
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<usecase xmlns="http://apache.org/lenya/usecase/1.0" name="lucene.search"/>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_en.meta
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_en.meta?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_en.meta (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/search/index_en.meta Thu Mar 19 13:29:18 2009
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<lenya:document xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<lenya:meta>
+<lenya:custom>
+<lenya:myMeta/>
+</lenya:custom>
+<lenya:dc>
+<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Search</dc:title>
+<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lenya</dc:creator>
+<dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+<dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+<dc:date xmlns:dc="http://purl.org/dc/elements/1.1/">2006-06-12 13:43:14</dc:date>
+<dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">en</dc:language>
+<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+</lenya:dc>
+<lenya:internal>
+<lenya:resourceType>usecase</lenya:resourceType>
+<lenya:contentType>xml</lenya:contentType>
+<lenya:extension>xml</lenya:extension>
+  <lenya:mimeType>application/xml</lenya:mimeType>
+</lenya:internal>
+</lenya:meta>
+</lenya:document>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/sitetree.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/sitetree.xml?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/sitetree.xml (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/sitetree.xml Thu Mar 19 13:29:18 2009
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<site i18n:attr="label" label="Authoring"
+    xmlns="http://apache.org/cocoon/lenya/sitetree/1.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation=
+        "http://apache.org/cocoon/lenya/sitetree/1.0
+        ../../../../resources/entities/sitetree.xsd"
+    xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+>
+    
+  <node id="index">
+    <label xml:lang="en">Home</label>
+    <label xml:lang="de">Home</label>
+  </node>
+  
+  <node id="tutorial">
+    <label xml:lang="en">Tutorial</label>
+    <label xml:lang="de">Tutorial</label>
+  </node>
+
+  <node id="concepts">
+    <label xml:lang="en">Concepts</label>
+    <label xml:lang="de">Konzepte</label>
+  </node>
+
+  <node id="links">
+    <label xml:lang="en">Apache Lenya Links</label>
+    <label xml:lang="de">Links zu Apache Lenya</label>
+  </node>
+  
+  <node id="features">
+    <label xml:lang="en">Features</label>
+    <label xml:lang="de">Funktionen</label>
+  </node>
+
+  <node id="doctypes">
+    <label xml:lang="en">Resource Type Examples</label>
+    <label xml:lang="de">Beispiele für Ressource-Typen</label>
+
+    <node id="xhtml-document">
+      <label xml:lang="en">XHTML Resource Type</label>
+      <label xml:lang="de">XHTML-Ressource-Typ</label>
+    </node>
+
+    <node id="links">
+      <label xml:lang="en">Links Resource Type</label>
+      <label xml:lang="de">Links-Ressource-Typ</label>
+    </node>
+
+    <node id="opendocument">
+      <label xml:lang="en">OpenDocument Resource Type</label>
+      <label xml:lang="de">OpenDocument-Ressource-Typ</label>
+    </node>
+
+    <node id="cforms" visibleinnav="true">
+      <label xml:lang="en">CForms Resource Type</label>
+      <label xml:lang="de">CForms-Ressource-Typ</label>
+    </node>
+ </node>
+
+  <node id="search" visibleinnav="false">
+    <label xml:lang="en">Search</label>
+    <label xml:lang="de">Suche</label>
+  </node>
+  
+  <node id="news" visibleinnav="true">
+    <label xml:lang="en">News</label>
+    <label xml:lang="de">News</label>
+    <node id="installed" visibleinnav="false">
+      <label xml:lang="en">Lenya installed</label>
+      <label xml:lang="de">Lenya installiert</label>
+    </node>
+  </node>
+  
+</site>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_de
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_de?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_de (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_de Thu Mar 19 13:29:18 2009
@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<html xmlns="http://www.w3.org/1999/xhtml" 
+xmlns:xhtml="http://www.w3.org/1999/xhtml" 
+xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/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.
+-->
+
+<!-- $Id: index_de 528434 2007-04-13 10:42:52Z andreas $ -->
+  <head>
+    <title>Lenya Tutorial</title>
+  </head>
+  <body>
+    <h1>Tutorial</h1>
+
+    <p>Das folgende Tutorial gibt eine kurze Einführung in das Content Management
+    System Apache Lenya. Wir betrachten typische Anwendungsfälle,
+    wie zum Beispiel ein neues Dokument erstellen, bearbeiten und publizieren.</p>
+
+    <h2>Ein neues Dokument erstellen</h2>
+    
+    <p>
+      Um ein neues Dokument zu erstellen, klicken Sie auf den Menüpunkt
+      <em>Datei -> Neues XHTML-Dokument</em>. Sie erhalten ein Formular,
+      das Sie auffordert, einen Knoten-Namen und Navigationstitel für das
+      neue Dokument einzugeben. Der Knoten-Name wird zur Identifikation des
+      Dokumentes in der URL verwendet. Der Navigationstitel wird links im
+      Menü erscheinen.
+    </p>
+    <p>
+      Geben Sie "helloworld" als Knoten-Name und "Hello World" als Navigationstitel
+      ein und klicken Sie auf den "Erstellen"-Button. Sie werden zur neu erstellten
+      "Hello World"-Seite weitergeleitet. Links im Navigationsmenü können Sie
+      den neuen Eintrag sehen. Da Sie im "Erstellen"-Formular die Standard-Einstellung
+      "child" gewählt haben, wurde das neue Dokument als Kind-Dokument des
+      Ausgangs-Dokumentes eingefügt.
+    </p>
+
+    <h2>Ein Dokument bearbeiten</h2>
+    
+    <p>
+      Wie Sie sehen enthält das "Hello World"-Dokument bereits ein wenig
+      Beispiel-Inhalt. Um diesen zu ändern, können Sie das Dokument mit einem
+      der eingebauten Editoren bearbeiten:
+    </p>
+
+    <ul>
+      <li>Kupu: Eine gute Wahl für Internet-Explorer-Nutzer.</li>
+      <li>BXE: Eine gute Wahl für Firefox-Nutzer.</li>
+      <li>Formwizard: Eine gute Wahl für Mosaic-Nutzer. ;-)</li>
+      <li>Formulareditor: Für Nutzer, die die volle Kontrolle benötigen.</li>
+    </ul>
+    
+    <p>
+      Wählen Sie einen Editor aus dem "Bearbeiten"-Menü (abhängig von Ihrer Plattform)
+      und beginnen Sie, das neu erstellte Dokument zu bearbeiten.
+      In diesem Beispiel verwenden wir den BXE-Editor.
+      Das Lenya-Menü wird verschwinden und der BXE-Toolbar erscheint stattdessen.
+      Mit der rechten Maustaste erhalten Sie ein Kontext-Menü,
+      mit Hilfe dessen Sie Textbausteine kopieren, ausschneiden und einfügen können.
+      Sie können auch neue Elemente mittels des Kontext-Menüs in das Dokument
+      einfügen. Sobald Sie ihre Änderungen abgeschlossen haben, klicken Sie auf
+      "Save &amp; Exit" um zurück zur Lenya-Ansicht des Dokumentes zu gelangen.
+      Dort können Sie Ihre Änderungen betrachten.
+    </p>
+
+    <h2>Ein Dokument veröffentlichen</h2>
+    
+    <p>
+      Sobald Sie mit dem Inhalt Ihres Dokumentes zufrieden sind, können Sie
+      es publizieren, um es in der Live-Umgebung sichtbar zu machen.
+    </p>
+
+    <h3>Workflow</h3>
+    
+    <p>
+      Die Default-Publikation verwendet einen einfachen Workflow, der die Rollen
+      eines Editors und einen Prüfers involviert. Der Editor erstellt und
+      bearbeitet neue Dokumente und reicht sie zur Prüfung ein. Der Prüfer
+      überprüft das Dokument und publiziert es, so dass es auf der Live-Website
+      erscheint. 
+    </p>
+    
+    <p>
+      Der Nutzer <em>lenya</em>, mit dem Sie sich wahrscheinlich eingeloggt
+      haben, besitzt die Editor-Rolle, d.h. er kann neue Dokumente erstellen und
+      zur Prüfung einreichen. Die Nutzerin <em>alice</em> besitzt die Prüfer-Rolle,
+      die es ihr erlaubt, Dokumente zu prüfen und zu publizieren.
+    </p>
+    
+    <p>
+      Um Ihr neu erstelltes Dokument zu veröffentlichen, loggen Sie sich (falls
+      nötig) als Nutzer <em>lenya</em> ein und klicken Sie auf den Menüpunkt
+      <em>Arbeitsfluss -> Einreichen</em>. Loggen Sie sich nun aus (<em>Datei
+      -> Abmelden</em>) und loggen Sie sich als Nutzer <em>alice</em> ein.
+      Nun können Sie das Dokument mittels des Menüpunkts <em>Arbeitsfluss ->
+      Publizieren</em> veröffentlichen. Gegebenenfalls werden Sie auf dem
+      Bestätigungs-Bildschirm darauf hingewiesen, dass die zuerst das übergeordnete
+      Dokument publizieren müssen, da es sich noch nicht in der Live-Area
+      befindet. Um zu sehen, wie das Dokument in der Live-Ansicht aussieht,
+      klicken Sie auf den "Live"-Reiter im Lenya-Menü. Dieser wird ein neues
+      Browser-Fenster bzw. -Tab öffnen, das Ihnen die Seite in der Live-Area
+      zeigt.
+    </p>
+
+    <h2>Zeitsteuerung</h2>
+    
+    <p>
+      Apache Lenya erlaubt es, ein Dokument zu einem spezifischen Zeitpunkt zu
+      veröffentlichen. Wählen Sie dazu den Menüpunkt <em>Arbeitsfluss ->
+      Publizieren</em>. Anstatt jedoch unmittelbar auf "Publizieren" zu klicken,
+      geben Sie zunächst eine Zeit ein, zu der das Dokument veröffentlicht werden
+      soll. Im Reiter "Zeitsteuerung" in der Site-Area erhalten Sie einen Überblick
+      über die anstehenden Aufträge und deren Status. 
+    </p>
+    
+    <h2>Versionierung</h2>
+    
+    <p>
+      Jedes Mal wenn Sie ein Dokument editieren und den Editor verlassen, wird
+      eine neue Revision des Dokumentes angelegt. Alte Revisionen werden
+      aufbewahrt, Sie können sie auf dem Reiter "Revisionen" in der Site-Area
+      betrachten und ggf. das Dokument durch eine ältere Revision ersetzen.
+    </p>
+
+  </body>
+</html>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_de.meta
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_de.meta?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_de.meta (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_de.meta Thu Mar 19 13:29:18 2009
@@ -0,0 +1,44 @@
+<?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.
+-->
+<!-- $Id: index_de.meta 557603 2007-07-19 12:48:31Z andreas $ -->
+<lenya:document xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<lenya:meta>
+<lenya:internal>
+<lenya:resourceType>xhtml</lenya:resourceType>
+<lenya:contentType>xml</lenya:contentType>
+  <lenya:mimeType>application/xhtml+xml</lenya:mimeType>
+</lenya:internal>
+<lenya:dc>
+        <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Ein kurzes Lenya Tutorial</dc:title>
+        <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Development Team</dc:creator>
+        <dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Tutorial</dc:subject>
+        <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">Ein kurzes Tutorial zur Benutzung von Lenya</dc:description>
+        <dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">Apache Software Foundation</dc:publisher>
+        <dc:contributor xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:date xmlns:dc="http://purl.org/dc/elements/1.1/">2005-01-31</dc:date>
+        <dc:type xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:source xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">de</dc:language>
+        <dc:relation xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:coverage xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">Alle Rechte vorbehalten</dc:rights>
+</lenya:dc>
+</lenya:meta>
+</lenya:document>
\ No newline at end of file

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_en
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_en?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_en (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_en Thu Mar 19 13:29:18 2009
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<html xmlns="http://www.w3.org/1999/xhtml" 
+xmlns:xhtml="http://www.w3.org/1999/xhtml" 
+xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/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.
+-->
+
+<!-- $Id: index_en 542914 2007-05-30 19:13:43Z rfrovarp $ -->
+  <head>
+    <title>Lenya Tutorial</title>
+  </head>
+  <body>
+    <h1>Tutorial</h1>
+
+    <p>This tutorial gives you a short introduction into the Apache
+    Lenya content management system. We'll look at a typical use case
+    where we create a new document, edit and publish it.</p>
+
+    <h2>Creating a new document</h2>
+
+    <p>To create a new document, go to the <code>File -> New
+    XHTML Document</code> menu entry. You'll get a new screen that asks you
+    for an id and a name for this new document. The id will be used
+    internally as an identifier for the document and the name will be
+    used in the navigation. Let's use "helloworld" as id and "Hello World" as the
+    name of the new document. Now press <code>Create</code>. You will
+    be redirected back to the page where you originally invoked the
+    creation and you'll notice that the new document "Hello World" now shows
+    up as a sub-document of the Tutorial document in the
+    navigation.</p>
+
+    <p>This illustrates the fact that a new document is always created
+    as a sub-document of the document you're currently looking at. You
+    also notice how the navigation is built automatically.</p>
+
+    <h2>Editing a document</h2>
+
+    <p>To look at the newly created document click on the "Hello World" entry
+    in the navigation. You'll notice that the "Hello World" document already
+    contains some content. It was created from a sample XML
+    document. To change this sample content you will have to edit the
+    document. You can pick on of the following web-based WYSIWYG
+    editors:</p>
+
+    <ul>
+      <li>Kupu: This is a good choice for users of Internet Explorer.</li>
+      <li>BXE: This is a good choice for users of Mozilla.</li>
+      <li>HTML Forms: This is a good choice for users of Mosaic ;-)</li>
+      <li>One Form: For the power user who needs all the control</li>
+    </ul>
+
+    <p>Pick your choice of editor (based on your platform) and start
+    editing the newly created document by selecting the
+    <code>Edit->Edit with BXE</code> menu button. The Lenya menu will
+    disappear and the Bitflux toolbar will appear instead. You can use
+    the right mouse button to get a context sensitive menu from where
+    you can copy, cut and paste. You're also able to insert new
+    elements into the document from the context sensitive menu. Once
+    you're done with all your changes, press
+    <code>Save&amp;Exit</code> to get back. You'll see your changes in
+    the document.</p>
+    
+    <h2>Lenya Meta Data</h2>
+    
+    <p>The LenyaMetaDataGenerator lets you receive the meta data for any given document. In
+      this pub there is an example in the sitemap.xmap (pattern="meta") it only should
+      demonstrate one possible usage (you would need to edit this match for your own use case).
+      See the meta data from this page with <a href="meta?docid=/tutorial&amp;lang=en">
+      meta?docid=/tutorial&amp;lang=en</a>.</p>
+    
+    <h2>Publishing a document</h2>
+
+    <p>Once you are satisfied with the content of the document you
+    want to publish it to make it visible in the live area.</p> 
+
+    <h3>Workflow</h3>
+
+    <p>The default publication has a simple workflow configured which
+    involves an author and a reviewer. The author creates and edits a
+    new document and submits it for approval. The reviewer (obviously
+    :-)) reviews the document and publishes it so that it will appear
+    on the live site.
+
+    The user lenya (which you are probably currently logged in as) has
+    the role edit, i.e. he can create new documents and submit them
+    for approval (with <code>Workflow->Submit for review</code>). The
+    user alice has the role review which allows her to approve,
+    i.e. publish documents.</p>
+
+    <p>In order to publish your newly created document simply press
+    <code>Workflow->Sumbit</code> (as user lenya) to submit the
+    current document for approval. Now log out
+    (<code>File->Logout</code>), log back in as alice (use the same
+    password as for user lenya) and publish the current document by
+    selecting <code>Workflow->Publish</code>. You will get a
+    confirmation screen where you confirm your intention to publish
+    the document "Hello World" by pressing <code>Publish Now</code>. You might
+    have to publish the parent document ("Tutorial") first, as the
+    "Hello World" document will not be published if the parent document is not
+    in the live area yet.</p> <p>To check how the "Hello World" document looks
+    like in the live site click on the <code>live</code> tab in the
+    Lenya menu. This will open a new browser window showing you the
+    live site.</p>
+    
+    <h2>Scheduling</h2>
+    
+    <p>Apache Lenya allows you to publish a document at a specific
+    date. To do this select the <code>Workflow->Publish</code> menu
+    entry. Now instead of pressing <code>Publish</code> immediately,
+    specify the date and the time at which you wish to publish the
+    document first. Your document will be published at
+    the specified date. Use the <code>Scheduler</code> tab in the site
+    area to see the pending tasks and their status.</p>
+
+    <h2>Revision Control</h2>
+
+    <p>Every time you edit a document and exit the editor a new
+    revision of the document is stored. Old versions of the document
+    are kept and you can go back to an older version if you want to
+    undo some of the changes you applied to it. To see all available
+    versions of the current document press
+    <code>Tools->Rollback</code>. This will give you a list of all
+    previous versions. You can view a specific old version or rollback
+    to a specific old version by clicking on the appropriate links.</p>
+
+  </body>
+</html>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_en.meta
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_en.meta?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_en.meta (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/example-content/tutorial/index_en.meta Thu Mar 19 13:29:18 2009
@@ -0,0 +1,44 @@
+<?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.
+-->
+<!-- $Id: index_en.meta 557603 2007-07-19 12:48:31Z andreas $ -->
+<lenya:document xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<lenya:meta>
+<lenya:internal>
+<lenya:resourceType>xhtml</lenya:resourceType>
+<lenya:contentType>xml</lenya:contentType>
+  <lenya:mimeType>application/xhtml+xml</lenya:mimeType>
+</lenya:internal>
+<lenya:dc>
+        <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">A short Lenya Tutorial</dc:title>
+        <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Development Team</dc:creator>
+        <dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">Lenya Tutorial</dc:subject>
+        <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">A short tutorial on using Apache Lenya</dc:description>
+        <dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">Apache Software Foundation</dc:publisher>
+        <dc:contributor xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:date xmlns:dc="http://purl.org/dc/elements/1.1/">2005-01-31</dc:date>
+        <dc:type xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:source xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">en</dc:language>
+        <dc:relation xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:coverage xmlns:dc="http://purl.org/dc/elements/1.1/"/>
+        <dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">All rights reserved</dc:rights>
+</lenya:dc>
+</lenya:meta>
+</lenya:document>
\ No newline at end of file

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java Thu Mar 19 13:29:18 2009
@@ -0,0 +1,415 @@
+/*
+ * 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.
+ *
+ */
+package org.apache.lenya.defaultpub.cms.publication.templating;
+
+import java.io.IOException;
+import java.io.OutputStream;
+import java.io.OutputStreamWriter;
+import java.net.MalformedURLException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerException;
+
+import org.apache.avalon.framework.configuration.Configuration;
+import org.apache.avalon.framework.configuration.MutableConfiguration;
+import org.apache.avalon.framework.configuration.ConfigurationException;
+import org.apache.avalon.framework.configuration.DefaultConfiguration;
+import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;
+import org.apache.avalon.framework.configuration.DefaultConfigurationSerializer;
+import org.apache.avalon.framework.logger.AbstractLogEnabled;
+import org.apache.avalon.framework.parameters.ParameterException;
+import org.apache.avalon.framework.parameters.Parameterizable;
+import org.apache.avalon.framework.parameters.Parameters;
+import org.apache.avalon.framework.service.ServiceException;
+import org.apache.avalon.framework.service.ServiceManager;
+import org.apache.avalon.framework.service.Serviceable;
+import org.apache.cocoon.components.search.components.IndexManager;
+import org.apache.excalibur.source.ModifiableSource;
+import org.apache.excalibur.source.Source;
+import org.apache.excalibur.source.SourceNotFoundException;
+import org.apache.excalibur.source.SourceResolver;
+import org.apache.excalibur.source.impl.FileSource;
+import org.apache.lenya.cms.publication.Publication;
+import org.apache.lenya.cms.publication.PublicationManager;
+// import org.apache.lenya.cms.publication.PublicationConfiguration;
+import org.apache.lenya.util.Assert;
+import org.apache.lenya.xml.DocumentHelper;
+import org.apache.lenya.xml.NamespaceHelper;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.xml.sax.SAXException;
+
+/**
+ * Instantiate the publication.
+ * 
+ * @version $Id: Instantiator.java 611198 2008-01-11 15:06:38Z andreas $
+ */
+public class Instantiator extends AbstractLogEnabled implements
+        org.apache.lenya.cms.publication.templating.Instantiator, Serviceable, Parameterizable {
+
+    protected static final String[] sourcesToCopy = {
+            "config/publication.xml",
+            "config/access-control/access-control.xml",
+            "config/access-control/policies/",
+            "config/access-control/usecase-policies.xml",
+            "config/workflow/workflow.xml",
+            "config/"
+                    + org.apache.cocoon.components.search.components.impl.IndexManagerImpl.INDEX_CONF_FILE };
+
+    // the following stuff should actually come from PublicationConfiguration,
+    // but there's currently no way to get at it.
+    // the correct solution suggested by andreas is not to meddle with config
+    // files here at all, but instead implement
+    // appropriate setter functions in the Publication class. postponed to after
+    // 2.0.
+    // thus, don't waste too much effort on this file, it's all an intermediate
+    // hack.
+    private static final String CONFIGURATION_FILE = "config/publication.xml";
+    private static final String CONFIGURATION_NAMESPACE = "http://apache.org/cocoon/lenya/publication/1.1";
+    private static final String ACCESS_CONTROL_FILE = "config/access-control/access-control.xml";
+    private static final String ELEMENT_NAME = "name";
+    private static final String ELEMENT_TEMPLATE = "template";
+    private static final String ATTRIBUTE_ID = "id";
+    private static final String ELEMENT_RESOURCE_TYPES = "resource-types";// *
+    private static final String ELEMENT_RESOURCE_TYPE = "resource-type";// *
+    private static final String ELEMENT_MODULES = "modules";// *
+    private static final String ELEMENT_MODULE = "module";// *
+
+    /**
+     * @see org.apache.lenya.cms.publication.templating.Instantiator#instantiate(org.apache.lenya.cms.publication.Publication,
+     *      java.lang.String, java.lang.String)
+     */
+    public void instantiate(Publication template, String newPublicationId, String name)
+            throws Exception {
+        
+        Assert.notNull("template", template);
+        Assert.notNull("publication ID", newPublicationId);
+        Assert.notNull("name", name);
+        
+        if (name.equals("")) {
+            name = newPublicationId;
+        }
+
+        SourceResolver resolver = null;
+        Source publicationsSource = null;
+        PublicationManager pubManager = null;
+        try {
+            resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
+
+            publicationsSource = resolver.resolveURI("context://"
+                    + Publication.PUBLICATION_PREFIX_URI);
+            String publicationsUri = publicationsSource.getURI();
+            
+            List sources = new ArrayList(Arrays.asList(sourcesToCopy));
+            
+            if (this.copyAccreditables) {
+                sources.add("config/access-control/passwd/");
+            }
+
+            for (Iterator i = sources.iterator(); i.hasNext(); ) {
+
+                String source = (String) i.next();
+                if (source.endsWith("/")) {
+                    copyDirSource(template, newPublicationId, resolver, publicationsUri, source);
+                } else {
+                    copySource(template, newPublicationId, resolver, publicationsUri, source);
+                }
+            }
+            
+            updateMetaData(resolver, newPublicationId, name, publicationsUri);
+
+            configureSearchIndex(resolver, template, newPublicationId, publicationsUri);
+
+            updateConfiguration(resolver, template, newPublicationId, publicationsUri);
+
+            updateAccessControl(resolver, template, newPublicationId, publicationsUri);
+
+            pubManager = (PublicationManager) this.manager.lookup(PublicationManager.ROLE);
+            pubManager.addPublication(newPublicationId);
+
+        } finally {
+            if (resolver != null) {
+                this.manager.release(resolver);
+                if (publicationsSource != null) {
+                    resolver.release(publicationsSource);
+                }
+            }
+            if (pubManager != null) {
+                this.manager.release(pubManager);
+            }
+        }
+
+    }
+
+    protected void updateMetaData(SourceResolver resolver, String newPublicationId, String name,
+            String publicationsUri) throws MalformedURLException, IOException,
+            ParserConfigurationException, SAXException, SourceNotFoundException,
+            TransformerConfigurationException, TransformerException {
+        ModifiableSource metaSource = null;
+        try {
+            metaSource = (ModifiableSource) resolver.resolveURI(publicationsUri + "/"
+                    + newPublicationId + "/" + CONFIGURATION_FILE);
+            Document metaDoc = DocumentHelper.readDocument(metaSource.getInputStream());
+            NamespaceHelper helper = new NamespaceHelper(CONFIGURATION_NAMESPACE, "", metaDoc);
+            Element nameElement = helper.getFirstChild(metaDoc.getDocumentElement(), ELEMENT_NAME);
+            DocumentHelper.setSimpleElementText(nameElement, name);
+
+            save(metaDoc, metaSource);
+        } finally {
+            if (resolver != null) {
+                if (metaSource != null) {
+                    resolver.release(metaSource);
+                }
+            }
+        }
+    }
+
+    protected void updateConfiguration(SourceResolver resolver, Publication template,
+            String newPublicationId, String publicationsUri) throws MalformedURLException,
+            IOException, SAXException, ConfigurationException, SourceNotFoundException {
+        ModifiableSource configSource = null;
+        try {
+
+            configSource = (ModifiableSource) resolver.resolveURI(publicationsUri + "/"
+                    + newPublicationId + "/" + CONFIGURATION_FILE);
+
+            final boolean ENABLE_XML_NAMESPACES = true;
+            DefaultConfiguration config = (DefaultConfiguration) new DefaultConfigurationBuilder(
+                    ENABLE_XML_NAMESPACES).build(configSource.getInputStream());
+            addTemplateConfiguration(template, config);
+
+            removeChildren(config.getMutableChild(ELEMENT_MODULES), ELEMENT_MODULE);
+            removeChildren(config.getMutableChild(ELEMENT_RESOURCE_TYPES), ELEMENT_RESOURCE_TYPE);
+
+            saveConfiguration(config, configSource);
+        } finally {
+            if (resolver != null) {
+                if (configSource != null) {
+                    resolver.release(configSource);
+                }
+            }
+        }
+    }
+
+    protected void addTemplateConfiguration(Publication template, DefaultConfiguration config)
+            throws ConfigurationException {
+        Configuration[] templateConfigs = config.getChildren(ELEMENT_TEMPLATE);
+        for (int i = 0; i < templateConfigs.length; i++) {
+            config.removeChild(templateConfigs[i]);
+        }
+        DefaultConfiguration templateConfig = new DefaultConfiguration(ELEMENT_TEMPLATE, null,
+                CONFIGURATION_NAMESPACE, "");
+        templateConfig.setAttribute(ATTRIBUTE_ID, template.getId());
+        config.addChild(templateConfig);
+    }
+
+    protected void removeChildren(MutableConfiguration config, String name)
+            throws ConfigurationException {
+        MutableConfiguration[] moduleConfigs = config.getMutableChildren(name);
+        for (int i = 0; i < moduleConfigs.length; i++) {
+            config.removeChild(moduleConfigs[i]);
+        }
+    }
+
+    protected void configureSearchIndex(SourceResolver resolver, Publication template,
+            String newPublicationId, String publicationsUri) throws MalformedURLException,
+            IOException, ParserConfigurationException, SAXException, SourceNotFoundException,
+            TransformerConfigurationException, TransformerException, ServiceException,
+            ConfigurationException {
+        ModifiableSource indexSource = null;
+        IndexManager indexManager = null;
+        try {
+
+            // RGE: Soc addition
+            // First, patch the xconf patchfile with the new publication name
+
+            String indexDir = "lenya/pubs/" + newPublicationId + "/work/lucene/index";
+
+            indexSource = (ModifiableSource) resolver
+                    .resolveURI(publicationsUri
+                            + "/"
+                            + newPublicationId
+                            + "/config/"
+                            + org.apache.cocoon.components.search.components.impl.IndexManagerImpl.INDEX_CONF_FILE);
+            Document indexDoc = DocumentHelper.readDocument(indexSource.getInputStream());
+            Element[] indexElement = DocumentHelper.getChildren(indexDoc.getDocumentElement(),
+                    null, "index");
+
+            for (int i = 0; i < indexElement.length; i++) {
+                String id = indexElement[i].getAttribute("id");
+                String area = id.split("-")[1];
+                indexElement[i].setAttribute("id", newPublicationId + "-" + area);
+                indexElement[i].setAttribute("directory", indexDir + "/" + area + "/index");
+            }
+
+            save(indexDoc, indexSource);
+
+            // Second, configure the index and add it to the IndexManager
+
+            indexManager = (IndexManager) manager.lookup(IndexManager.ROLE);
+
+            indexManager.addIndexes(indexSource);
+
+            // TODO: release all objects!
+
+            // RGE: End Soc addition
+
+        } finally {
+            if (indexManager != null) {
+                this.manager.release(indexManager);
+            }
+            if (resolver != null) {
+                this.manager.release(resolver);
+                if (indexSource != null) {
+                    resolver.release(indexSource);
+                }
+            }
+        }
+    }
+
+    protected void updateAccessControl(SourceResolver resolver, Publication template,
+            String newPublicationId, String publicationsUri) throws MalformedURLException,
+            IOException, SAXException, ConfigurationException, SourceNotFoundException {
+        ModifiableSource configSource = null;
+        try {
+
+            configSource = (ModifiableSource) resolver.resolveURI(publicationsUri + "/"
+                    + newPublicationId + "/" + ACCESS_CONTROL_FILE);
+
+            final boolean ENABLE_XML_NAMESPACES = true;
+            DefaultConfiguration config = (DefaultConfiguration) new DefaultConfigurationBuilder(
+                    ENABLE_XML_NAMESPACES).build(configSource.getInputStream());
+            DefaultConfiguration acreditableDirectory = (DefaultConfiguration) config.getChild(
+                    "accreditable-manager", false).getChild("parameter", false);
+
+            if (this.copyAccreditables) {
+                acreditableDirectory.setAttribute("value", "context:///lenya/pubs/"
+                        + newPublicationId + "/config/access-control/passwd");
+            }
+
+            DefaultConfiguration policyDirectory = (DefaultConfiguration) config.getChild(
+                    "policy-manager", false).getChild("policy-manager", false).getChild(
+                    "parameter", false);
+            policyDirectory.setAttribute("value", "context:///lenya/pubs/" + newPublicationId
+                    + "/config/access-control/policies");
+
+            saveConfiguration(config, configSource);
+        } finally {
+            if (resolver != null) {
+                if (configSource != null) {
+                    resolver.release(configSource);
+                }
+            }
+        }
+    }
+
+    protected void saveConfiguration(DefaultConfiguration config, ModifiableSource source)
+            throws IOException, SAXException, ConfigurationException {
+        OutputStream oStream = source.getOutputStream();
+        new DefaultConfigurationSerializer().serialize(oStream, config);
+        if (oStream != null) {
+            oStream.flush();
+            try {
+                oStream.close();
+            } catch (Throwable t) {
+                if (getLogger().isDebugEnabled()) {
+                    getLogger().debug("Exception closing output stream: ", t);
+                }
+                throw new RuntimeException("Could not write document: ", t);
+            }
+        }
+    }
+
+    protected void copySource(Publication template, String publicationId, SourceResolver resolver,
+            String publicationsUri, String source) throws MalformedURLException, IOException {
+        Source templateSource = null;
+        ModifiableSource targetSource = null;
+        try {
+            templateSource = resolver.resolveURI(publicationsUri + "/" + template.getId() + "/"
+                    + source);
+            targetSource = (ModifiableSource) resolver.resolveURI(publicationsUri + "/"
+                    + publicationId + "/" + source);
+
+            org.apache.lenya.cms.cocoon.source.SourceUtil.copy(templateSource, targetSource, false);
+        } finally {
+            if (templateSource != null) {
+                resolver.release(templateSource);
+            }
+            if (targetSource != null) {
+                resolver.release(targetSource);
+            }
+        }
+    }
+
+    protected void copyDirSource(Publication template, String publicationId,
+            SourceResolver resolver, String publicationsUri, String source)
+            throws MalformedURLException, IOException {
+        FileSource directory = new FileSource(publicationsUri + "/" + template.getId() + "/"
+                + source);
+        Collection files = directory.getChildren();
+        for (Iterator iter = files.iterator(); iter.hasNext();) {
+            FileSource filesource = (FileSource) iter.next();
+            if (filesource.isCollection()) {
+                copyDirSource(template, publicationId, resolver, publicationsUri, source + "/"
+                        + filesource.getName());
+            } else {
+                copySource(template, publicationId, resolver, publicationsUri, source + "/"
+                        + filesource.getName());
+            }
+        }
+    }
+
+    protected void save(Document metaDoc, ModifiableSource metaSource) throws IOException,
+            TransformerConfigurationException, TransformerException {
+        OutputStream oStream = metaSource.getOutputStream();
+        DocumentHelper.writeDocument(metaDoc, new OutputStreamWriter(oStream));
+        if (oStream != null) {
+            oStream.flush();
+            try {
+                oStream.close();
+            } catch (Throwable t) {
+                if (getLogger().isDebugEnabled()) {
+                    getLogger().debug("Exception closing output stream: ", t);
+                }
+                throw new RuntimeException("Could not write document: ", t);
+            }
+        }
+    }
+
+    private ServiceManager manager;
+
+    private boolean copyAccreditables;
+
+    /**
+     * @see org.apache.avalon.framework.service.Serviceable#service(org.apache.avalon.framework.service.ServiceManager)
+     */
+    public void service(ServiceManager manager) throws ServiceException {
+        this.manager = manager;
+    }
+
+    public void parameterize(Parameters params) throws ParameterException {
+        this.copyAccreditables = params.getParameterAsBoolean("copyAccreditables", false);
+    }
+
+}

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya.properties.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya.properties.xml?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya.properties.xml (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya.properties.xml Thu Mar 19 13:29:18 2009
@@ -0,0 +1,25 @@
+<?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.
+-->
+<properties>
+  <!-- Note: You can define and override properties and use them  
+    in your sitemap like {properties:pubs.default.author} -->
+  
+  <!-- http://localhost:8888/default/authoring/index.html will show in the first heading: 
+    "Welcome to the Default Publication from {properties:pubs.default.author}!"-->
+  <property name="pubs.default.author" value="Me"/>
+</properties>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/content/publishing/publish-screen.xsp
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/content/publishing/publish-screen.xsp?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/content/publishing/publish-screen.xsp (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/content/publishing/publish-screen.xsp Thu Mar 19 13:29:18 2009
@@ -0,0 +1,59 @@
+<?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.
+-->
+
+<!-- $Id: publish-screen.xsp 586495 2007-10-19 15:13:36Z rfrovarp $ -->
+
+<xsp:page
+       language="java"
+       xmlns:xsp="http://apache.org/xsp"
+       xmlns:input="http://apache.org/cocoon/xsp/input/1.0"
+       xmlns:usecase="http://apache.org/cocoon/lenya/usecase/1.0"
+       xmlns:sch="http://apache.org/cocoon/lenya/scheduler/1.0"
+       xmlns:xsp-request="http://apache.org/xsp/request/2.0"
+       >
+
+<usecase:publish>
+
+  <usecase:document-uuid><input:get-attribute module="page-envelope" name="document-uuid" as="string"/></usecase:document-uuid>
+  <usecase:uris><xsp-request:get-uri/></usecase:uris>
+  <usecase:sources><input:get-attribute module="page-envelope" as="string" name="document-path"/></usecase:sources>
+  <usecase:publication-id><input:get-attribute module="page-envelope" name="publication-id" as="string"/></usecase:publication-id>
+  <usecase:context-prefix><input:get-attribute module="page-envelope" name="context-prefix" as="string"/></usecase:context-prefix>
+  <usecase:area><input:get-attribute module="page-envelope" name="area" as="string"/></usecase:area>
+  <usecase:language><input:get-attribute module="page-envelope" name="document-language" as="string"/></usecase:language>
+  
+  <!-- FIXME: this should be defined in the workflow schema -->
+  <usecase:task-id>publish</usecase:task-id>
+
+  <!-- add date for scheduler -->
+  <xsp:logic>
+    java.util.GregorianCalendar calendar = new java.util.GregorianCalendar();
+  </xsp:logic>
+  
+  <sch:current-date>
+    <sch:year><xsp:expr>calendar.get(java.util.Calendar.YEAR)</xsp:expr></sch:year>
+    <sch:month><xsp:expr>calendar.get(java.util.Calendar.MONTH) + 1</xsp:expr></sch:month>
+    <sch:day><xsp:expr>calendar.get(java.util.Calendar.DAY_OF_MONTH)</xsp:expr></sch:day>
+    <sch:hour><xsp:expr>calendar.get(java.util.Calendar.HOUR_OF_DAY)</xsp:expr></sch:hour>
+    <sch:minute><xsp:expr>calendar.get(java.util.Calendar.MINUTE)</xsp:expr></sch:minute>
+    <sch:second><xsp:expr>calendar.get(java.util.Calendar.SECOND)</xsp:expr></sch:second>
+  </sch:current-date>
+  
+</usecase:publish>
+
+</xsp:page>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/modules/editors/usecases/forms/homepage.xsl
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/modules/editors/usecases/forms/homepage.xsl?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/modules/editors/usecases/forms/homepage.xsl (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/modules/editors/usecases/forms/homepage.xsl Thu Mar 19 13:29:18 2009
@@ -0,0 +1,30 @@
+<?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.
+-->
+
+<!-- $Id: xhtml.xsl 42703 2004-03-13 12:57:53Z gregor $ -->
+
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xhtml="http://www.w3.org/1999/xhtml"
+  xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"
+  xmlns:dc="http://purl.org/dc/elements/1.1/"
+>
+
+<xsl:import href="xhtml.xsl"/>
+
+</xsl:stylesheet>  

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/modules/editors/usecases/forms/links.xsl
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/modules/editors/usecases/forms/links.xsl?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/modules/editors/usecases/forms/links.xsl (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/lenya/modules/editors/usecases/forms/links.xsl Thu Mar 19 13:29:18 2009
@@ -0,0 +1,41 @@
+<?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.
+-->
+
+<!-- $Id: links.xsl 473861 2006-11-12 03:51:14Z gregor $ -->
+
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns="http://apache.org/lenya/pubs/default/1.0"
+  xmlns:links="http://apache.org/lenya/pubs/default/1.0"
+>
+
+<xsl:import href="../../../../../../usecases/edit/forms/form.xsl"/>
+
+<xsl:template match="links:links">
+  
+<namespace prefix="" uri="http://apache.org/lenya/pubs/default/1.0"/>
+  
+<node name="Title" select="links/title[@tagID='{title/@tagID}']">
+  <content><input type="text" name="&lt;xupdate:update select=&quot;/links/title[@tagID='{title/@tagID}']&quot;&gt;" size="40"><xsl:attribute name="value"><xsl:value-of select="title"/></xsl:attribute></input></content>
+</node>
+
+<xsl:apply-templates select="link"/>
+
+</xsl:template>
+
+</xsl:stylesheet>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.