Author: reinhard Date: Thu Mar 10 14:47:47 2005 New Revision: 157006 URL: http://svn.apache.org/viewcvs?view=rev&rev=157006 Log: support pre-generated docs; svn:eol-style
Added: cocoon/trunk/src/documentation/src/documentation/content/no-generated-document.xml (with props) Modified: cocoon/trunk/src/documentation/src/ (props changed) cocoon/trunk/src/documentation/src/documentation/ (props changed) cocoon/trunk/src/documentation/src/documentation/classes/ (props changed) cocoon/trunk/src/documentation/src/documentation/classes/CatalogManager.properties (props changed) cocoon/trunk/src/documentation/src/documentation/content/ (props changed) cocoon/trunk/src/documentation/src/documentation/content/no-comments.xml (props changed) cocoon/trunk/src/documentation/src/documentation/resources/ (props changed) cocoon/trunk/src/documentation/src/documentation/resources/stylesheets/ (props changed) cocoon/trunk/src/documentation/src/documentation/resources/stylesheets/correct-img-links.xsl (props changed) cocoon/trunk/src/documentation/src/documentation/resources/stylesheets/doc-aggregate2v12.xsl (contents, props changed) cocoon/trunk/src/documentation/src/documentation/sitemap.xmap (contents, props changed) cocoon/trunk/src/documentation/src/documentation/skinconf.xml (props changed) Propchange: cocoon/trunk/src/documentation/src/ ------------------------------------------------------------------------------ svn:eolstyle = native Propchange: cocoon/trunk/src/documentation/src/documentation/ ------------------------------------------------------------------------------ svn:eolstyle = native Propchange: cocoon/trunk/src/documentation/src/documentation/classes/ ------------------------------------------------------------------------------ svn:eolstyle = native Propchange: cocoon/trunk/src/documentation/src/documentation/classes/CatalogManager.properties ------------------------------------------------------------------------------ svn:eolstyle = native Propchange: cocoon/trunk/src/documentation/src/documentation/content/ ------------------------------------------------------------------------------ svn:eolstyle = native Propchange: cocoon/trunk/src/documentation/src/documentation/content/no-comments.xml ------------------------------------------------------------------------------ svn:eolstyle = native Added: cocoon/trunk/src/documentation/src/documentation/content/no-generated-document.xml URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/documentation/src/documentation/content/no-generated-document.xml?view=auto&rev=157006 ============================================================================== --- cocoon/trunk/src/documentation/src/documentation/content/no-generated-document.xml (added) +++ cocoon/trunk/src/documentation/src/documentation/content/no-generated-document.xml Thu Mar 10 14:47:47 2005 @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<!-- + 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. +--> +<html><body/></html> \ No newline at end of file Propchange: cocoon/trunk/src/documentation/src/documentation/content/no-generated-document.xml ------------------------------------------------------------------------------ svn:eolstyle = native Propchange: cocoon/trunk/src/documentation/src/documentation/resources/ ------------------------------------------------------------------------------ svn:eolstyle = native Propchange: cocoon/trunk/src/documentation/src/documentation/resources/stylesheets/ ------------------------------------------------------------------------------ svn:eolstyle = native Propchange: cocoon/trunk/src/documentation/src/documentation/resources/stylesheets/correct-img-links.xsl ------------------------------------------------------------------------------ svn:eolstyle = native Modified: cocoon/trunk/src/documentation/src/documentation/resources/stylesheets/doc-aggregate2v12.xsl URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/documentation/src/documentation/resources/stylesheets/doc-aggregate2v12.xsl?view=diff&r1=157005&r2=157006 ============================================================================== --- cocoon/trunk/src/documentation/src/documentation/resources/stylesheets/doc-aggregate2v12.xsl (original) +++ cocoon/trunk/src/documentation/src/documentation/resources/stylesheets/doc-aggregate2v12.xsl Thu Mar 10 14:47:47 2005 @@ -1,8 +1,25 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- + 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. +--> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:variable name="content" select="/aggregate/content/document/body"/> <xsl:variable name="content-header" select="/aggregate/content/document/header"/> <xsl:variable name="comments" select="/aggregate/comments"/> + <xsl:variable name="generated-before" select="/aggregate/generated-before"/> + <xsl:variable name="generated-after" select="/aggregate/generated-after"/> <xsl:template match="/"> <document> <header> @@ -11,7 +28,9 @@ </title> </header> <body> + <xsl:copy-of select="$generated-before/html/body/*"/> <xsl:copy-of select="$content/*"/> + <xsl:copy-of select="$generated-after/html/body/*"/> <xsl:apply-templates select="$comments"/> </body> </document> Propchange: cocoon/trunk/src/documentation/src/documentation/resources/stylesheets/doc-aggregate2v12.xsl ------------------------------------------------------------------------------ svn:eolstyle = native Modified: cocoon/trunk/src/documentation/src/documentation/sitemap.xmap URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/documentation/src/documentation/sitemap.xmap?view=diff&r1=157005&r2=157006 ============================================================================== --- cocoon/trunk/src/documentation/src/documentation/sitemap.xmap (original) +++ cocoon/trunk/src/documentation/src/documentation/sitemap.xmap Thu Mar 10 14:47:47 2005 @@ -28,7 +28,7 @@ <map:select type="exists"> <map:when test="{project:content.xdocs}{1}/content_en.xml"> <map:generate src="{project:content.xdocs}{1}/content_en.xml"/> - <map:transform src="{defaults:stylesheets}/html2document.xsl"/> + <map:transform src="{defaults:stylesheets}/html2document.xsl"/> </map:when> <map:otherwise> <map:generate src="{project:content.xdocs}{1}/content_en.html" type="local-html"/> @@ -37,6 +37,17 @@ </map:select> <map:serialize/> </map:match> + <map:match pattern="generated-*/*"> + <map:select type="exists"> + <map:when test="{project:content.xdocs}{2}/generated-{1}_en.xml"> + <map:generate src="{project:content.xdocs}{2}/generated-{1}_en.xml"/> + </map:when> + <map:otherwise> + <map:generate src="{project:content}no-generated-document.xml"/> + </map:otherwise> + </map:select> + <map:serialize/> + </map:match> <map:match pattern="comments/*"> <map:select type="exists"> <map:when test="{project:content.xdocs}{1}/comments_en.xml"> @@ -55,7 +66,9 @@ <map:select type="exists"> <map:when test="{project:content.xdocs}{1}/meta.xml"> <map:aggregate element="aggregate"> + <map:part src="cocoon:/generated-before/{1}" element="generated-before"/> <map:part src="cocoon:/html2document/{1}" element="content"/> + <map:part src="cocoon:/generated-after/{1}" element="generated-after"/> <map:part src="{project:content.xdocs}{1}/meta.xml"/> <map:part src="cocoon:/comments/{1}"/> </map:aggregate> Propchange: cocoon/trunk/src/documentation/src/documentation/sitemap.xmap ------------------------------------------------------------------------------ svn:eolstyle = native Propchange: cocoon/trunk/src/documentation/src/documentation/skinconf.xml ------------------------------------------------------------------------------ svn:eolstyle = native