Author: reinhard Date: Thu Apr 14 02:03:52 2005 New Revision: 161249 URL: http://svn.apache.org/viewcvs?view=rev&rev=161249 Log: generate warning box at the top of a page using the '/meta/legacy'
Modified: cocoon/site/src/forrest-configuration/resources/stylesheets/doc-aggregate2v12.xsl cocoon/site/src/forrest-configuration/sitemap.xmap Modified: cocoon/site/src/forrest-configuration/resources/stylesheets/doc-aggregate2v12.xsl URL: http://svn.apache.org/viewcvs/cocoon/site/src/forrest-configuration/resources/stylesheets/doc-aggregate2v12.xsl?view=diff&r1=161248&r2=161249 ============================================================================== --- cocoon/site/src/forrest-configuration/resources/stylesheets/doc-aggregate2v12.xsl (original) +++ cocoon/site/src/forrest-configuration/resources/stylesheets/doc-aggregate2v12.xsl Thu Apr 14 02:03:52 2005 @@ -23,7 +23,7 @@ <xsl:variable name="meta" select="/aggregate/meta"/> <!-- status indicates a 2.1 legacy document --> - <xsl:variable name="legacy21" select="$meta//source = 'legacy.21'"/> + <xsl:variable name="legacy21" select="$meta/legacy"/> <xsl:template match="/"> <document> @@ -75,12 +75,14 @@ <xsl:copy> <xsl:copy-of select="@*"/> + <!-- add fixme box in the case of legacy docs --> <xsl:if test="$legacy21"> - <fixme author="dev@cocoon.apache.org"> + <warning> This document was copied as is from the Cocoon 2.1 documentation, but has not yet been fully reviewed or moved to its new home. - </fixme> + </warning> </xsl:if> + <xsl:apply-templates mode="content"/> </xsl:copy> </xsl:template> Modified: cocoon/site/src/forrest-configuration/sitemap.xmap URL: http://svn.apache.org/viewcvs/cocoon/site/src/forrest-configuration/sitemap.xmap?view=diff&r1=161248&r2=161249 ============================================================================== --- cocoon/site/src/forrest-configuration/sitemap.xmap (original) +++ cocoon/site/src/forrest-configuration/sitemap.xmap Thu Apr 14 02:03:52 2005 @@ -74,7 +74,7 @@ <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" element="meta"/> + <map:part src="{project:content.xdocs}{1}/meta.xml"/> <map:part src="cocoon:/comments/{1}"/> </map:aggregate> <map:transform src="{project:resources.stylesheets}doc-aggregate2v12.xsl"/>