Author: cdupoirieux Date: Wed Mar 14 05:58:17 2007 New Revision: 518122 URL: http://svn.apache.org/viewvc?view=rev&rev=518122 Log: Add of the Notice management.
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/xml/document-to-notice.xsl (with props) Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/dataModel.xmap Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/dataModel.xmap URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/dataModel.xmap?view=diff&rev=518122&r1=518121&r2=518122 ============================================================================== --- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/dataModel.xmap (original) +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/dataModel.xmap Wed Mar 14 05:58:17 2007 @@ -77,6 +77,14 @@ </map:match> </map:pipeline> <map:pipeline> + <map:match pattern="**.notice.xml"> + <map:generate src="cocoon://{1}.xml" /> + <map:transform + src="{lm:dataModel-xml-document-to-notice.xsl}" /> + <map:serialize /> + </map:match> + </map:pipeline> + <map:pipeline> <map:match pattern="**.authors.xml"> <map:generate src="cocoon://{1}.xml" /> <map:transform src="{lm:dataModel-xml-document-to-authors.xsl}" /> @@ -206,4 +214,4 @@ </map:match> </map:pipeline> </map:pipelines> -</map:sitemap> \ No newline at end of file +</map:sitemap> Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/xml/document-to-notice.xsl URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/xml/document-to-notice.xsl?view=auto&rev=518122 ============================================================================== --- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/xml/document-to-notice.xsl (added) +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/xml/document-to-notice.xsl Wed Mar 14 05:58:17 2007 @@ -0,0 +1,29 @@ +<?xml version="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. +--> +<!-- +This stylesheet contains templates for converting documentv11 to HTML. See the +imported document2html.xsl for details. +--> + +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:template match="document"> + <div class="notice"> + <xsl:value-of select="header/notice"/> + </div> + </xsl:template> +</xsl:stylesheet> Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/xml/document-to-notice.xsl ------------------------------------------------------------------------------ svn:eol-style = native