You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by de...@lenya.apache.org on 2008/06/16 17:37:35 UTC

Document changed: Publication Templating

Document: Publication Templating
URL: https://lenya.zones.apache.org/cms/docu/authoring/docu20/reference/publications/publication-templating.html
Changed by user: Andreas Hartmann (andreas)


----
Removed: /comment()

  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.

----
Removed: /document/body/section[2]/ul/li[3]/text()[1]
When a file is requested using the templating mechanism (
----
Added: /document/body/section[2]/ul/li[3]/text()[1]
When a file is requested using the one of the 
----
Added: /document/body/section[2]/ul/li[3]/a
<a> (null)
----
Added: /document/body/section[2]/ul/li[3]/a/@href
[attr] href=lenya-document:3cb076e0-3bb5-11dd-b7ca-bdf80b7786f3 (null)
----
Added: /document/body/section[2]/ul/li[3]/a/text()
fallback protocols
----
Added: /document/body/section[2]/ul/li[3]/text()[3]
 (e.g., 
----
Removed: /document/body/section[3]/source/text()
<publication>
  ...
  <templates>
    <template id="my-template"/>
  </templates>
  ...
</publication>
----
Added: /document/body/section[3]/source/text()
<publication>  ...  <templates>    <template id="my-template"/>  </templates>  ...</publication>
----
Removed: /document/body/section[6]/source/text()
<!-- Enter the actual publication -->
<map:match pattern="*/**">
  <map:mount uri-prefix="{1}" src="{fallback:sitemap.xmap}"/>
</map:match>
----
Added: /document/body/section[6]/source/text()
<!-- Enter the actual publication --><map:match pattern="*/**">  <map:mount uri-prefix="{1}" src="{fallback:sitemap.xmap}"/></map:match>
----
Removed: /document/body/section[7]/source[1]/text()
<map:match type="usecase" pattern="*">
  <map:mount src="{usecase-fallback:{1}}" uri-prefix=""/>
</map:match>
----
Added: /document/body/section[7]/source[1]/text()
<map:match type="usecase" pattern="*">  <map:mount src="{usecase-fallback:{1}}" uri-prefix=""/></map:match>
----
Removed: /document/body/section[7]/source[2]/text()
<publication>
  ...
  <usecases>
    <usecase name="create"/>
  </usecases>
  ...
</publication>
----
Added: /document/body/section[7]/source[2]/text()
<publication>  ...  <usecases>    <usecase name="create"/>  </usecases>  ...</publication>
----
Removed: /document/body/section[8]/section[1]/source/text()
package org.myproject.lenya;

public class MyInstantiator extends AbstractLogEnabled implements Instantiator {

    public void instantiate(Publication template, String newPublicationId, String name)
            throws Exception {
        ...
    }

}
----
Added: /document/body/section[8]/section[1]/source/text()
package org.myproject.lenya;public class MyInstantiator extends AbstractLogEnabled implements Instantiator {    public void instantiate(Publication template, String newPublicationId, String name)            throws Exception {        ...    }}
----
Removed: /document/body/section[8]/section[2]/source/text()
<xconf xpath="/cocoon/template-instantiators"
       unless="/cocoon/template-instantiators/component-instance[@name = 'default']">

    <component-instance name="mypub"
                        logger="myproject.publication"
                        class="org.myproject.lenya.MyInstantiator"/>

</xconf>
----
Added: /document/body/section[8]/section[2]/source/text()
<xconf xpath="/cocoon/template-instantiators"       unless="/cocoon/template-instantiators/component-instance[@name = 'default']">    <component-instance name="mypub"                        logger="myproject.publication"                        class="org.myproject.lenya.MyInstantiator"/></xconf>
----
Removed: /document/body/section[8]/source/text()
<publication>
  ...
  <template-instantiator name="mypub"/>
  ...
</publication>
----
Added: /document/body/section[8]/source/text()
<publication>  ...  <template-instantiator name="mypub"/>  ...</publication>
----

  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org