You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2005/09/07 00:57:35 UTC
svn commit: r279169 -
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/content-main.ft
Author: rgardler
Date: Tue Sep 6 15:57:17 2005
New Revision: 279169
URL: http://svn.apache.org/viewcvs?rev=279169&view=rev
Log:
All 'core' templates will be a part of this plugin - until Thorsten says they shouldn't be ;-). This one is completely untested, I'm just showing my intent to see how folk react
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/content-main.ft
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/content-main.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/content-main.ft?rev=279169&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/content-main.ft (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/content-main.ft Tue Sep 6 15:57:17 2005
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2005 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ 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.
+-->
+<forrest:contract
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ name="content-main" type="nugget">
+ <description>
+ content-main - Template will output the main body of a document.
+ </description>
+ <usage><![CDATA[<forrest:contract name="content-main"/>]]></usage>
+ <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+ format="xhtml" name="content-main" inputFormat="xsl" body="true" head="false">
+ <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template name="content-main-body" >
+ <xsl:comment>+
+ |start content-main
+ +</xsl:comment>
+ <!-- FIXME: remove the following "debug" line -->
+ <h1>This comes from the content-main contract</h1>
+ <xsl:copy-of select="body/*"/>
+<xsl:comment>+
+ |end content-main
+ +</xsl:comment>
+ </xsl:template>
+ </xsl:stylesheet>
+ </forrest:template>
+</forrest:contract>
Re: svn commit: r279169
- /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/content-main.ft
Posted by Thorsten Scherler <th...@apache.org>.
On Wed, 2005-09-07 at 13:15 +0100, Ross Gardler wrote:
> Thorsten Scherler wrote:
> > On Tue, 2005-09-06 at 22:57 +0000, rgardler@apache.org wrote:
> >
> >>Author: rgardler
> >>Date: Tue Sep 6 15:57:17 2005
> >>New Revision: 279169
> >>
> >>URL: http://svn.apache.org/viewcvs?rev=279169&view=rev
> >>Log:
> >>All 'core' templates will be a part of this plugin - until Thorsten says they shouldn't be ;-). This one is completely untested, I'm just showing my intent to see how folk react
> >
> >
> > Actually I do not think that contracts are part of the *internal*
> > plugin. They are dedicated for output, so IMO they do not belong in
> > here.
>
> We had a discussion about this on IRC. We agreed to proceed until we
> decide otherwise, they can be moved easily with svn move.
>
> > BTW sorry that I could not be online. My provider had technical problems
> > and I could not go online. :(
>
> We really needed you, it was hard going wihtout your knowledge of views.
> Damn your provider!
>
+1
Damn him to hell!!!
I was crying all night, my wife even told me to go to my office
again. ;-)
> Ross
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
Re: svn commit: r279169 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/content-main.ft
Posted by Ross Gardler <rg...@apache.org>.
Thorsten Scherler wrote:
> On Tue, 2005-09-06 at 22:57 +0000, rgardler@apache.org wrote:
>
>>Author: rgardler
>>Date: Tue Sep 6 15:57:17 2005
>>New Revision: 279169
>>
>>URL: http://svn.apache.org/viewcvs?rev=279169&view=rev
>>Log:
>>All 'core' templates will be a part of this plugin - until Thorsten says they shouldn't be ;-). This one is completely untested, I'm just showing my intent to see how folk react
>
>
> Actually I do not think that contracts are part of the *internal*
> plugin. They are dedicated for output, so IMO they do not belong in
> here.
We had a discussion about this on IRC. We agreed to proceed until we
decide otherwise, they can be moved easily with svn move.
> BTW sorry that I could not be online. My provider had technical problems
> and I could not go online. :(
We really needed you, it was hard going wihtout your knowledge of views.
Damn your provider!
Ross
Re: svn commit: r279169 -
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.xhtml2/templates/content-main.ft
Posted by Thorsten Scherler <th...@apache.org>.
On Tue, 2005-09-06 at 22:57 +0000, rgardler@apache.org wrote:
> Author: rgardler
> Date: Tue Sep 6 15:57:17 2005
> New Revision: 279169
>
> URL: http://svn.apache.org/viewcvs?rev=279169&view=rev
> Log:
> All 'core' templates will be a part of this plugin - until Thorsten says they shouldn't be ;-). This one is completely untested, I'm just showing my intent to see how folk react
Actually I do not think that contracts are part of the *internal*
plugin. They are dedicated for output, so IMO they do not belong in
here.
BTW sorry that I could not be online. My provider had technical problems
and I could not go online. :(
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)