|
|
Choosing A Webhost: |
svn commit: r519893 - in /lenya/trunk/src/webapp: global-sitemap.xmap lenya: msg#00010cms.lenya.cvs
Author: andreas Date: Mon Mar 19 03:16:34 2007 New Revision: 519893 URL: http://svn.apache.org/viewvc?view=rev&rev=519893 Log: Don't show menubar when viewing a revision Added: lenya/trunk/src/webapp/lenya/xslt/util/identity.xsl Modified: lenya/trunk/src/webapp/global-sitemap.xmap Modified: lenya/trunk/src/webapp/global-sitemap.xmap URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/global-sitemap.xmap?view=diff&rev=519893&r1=519892&r2=519893 ============================================================================== --- lenya/trunk/src/webapp/global-sitemap.xmap (original) +++ lenya/trunk/src/webapp/global-sitemap.xmap Mon Mar 19 03:16:34 2007 @@ -123,11 +123,18 @@ <map:match pattern="lenya/**"> <map:mount uri-prefix="lenya" src="lenya/lenya.xmap" check-reload="true" reload-method="synchron"/> </map:match> - + <!-- Lenya page transformation for adding a Lenya menu --> <!-- lenya-page/{publication-id}/{area}/... --> <map:match pattern="lenya-page/*/*/**"> + + <!-- no menu for revisions --> + <map:match type="request-parameter" pattern="lenya.revision"> + <map:generate src="lenya/xslt/util/identity.xsl"/> + <map:serialize type="xml"/> + </map:match> + <map:aggregate element="menu" ns="http://apache.org/cocoon/lenya/menubar/1.0"> <map:part src="cocoon:/menu-xml/{1}/{2}/{3}" strip-root="true"/> <map:part src="cocoon:/menu-xml/modules/{1}/{2}.xml" strip-root="true"/> Added: lenya/trunk/src/webapp/lenya/xslt/util/identity.xsl URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/xslt/util/identity.xsl?view=auto&rev=519893 ============================================================================== --- lenya/trunk/src/webapp/lenya/xslt/util/identity.xsl (added) +++ lenya/trunk/src/webapp/lenya/xslt/util/identity.xsl Mon Mar 19 03:16:34 2007 @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + 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. +--> + +<!-- +Identity transformation. +--> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <xsl:template match="@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> \ No newline at end of file
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | svn commit: r519886 - /lenya/trunk/src/modules/resource/java/src/org/apache/lenya/cms/site/usecases/CreateResource.java, andreas |
|---|---|
| Next by Date: | svn commit: r519928 - in /lenya/trunk/src/modules/bxe: sitemap.xmap xslt/link.xsl, andreas |
| Previous by Thread: | svn commit: r519886 - /lenya/trunk/src/modules/resource/java/src/org/apache/lenya/cms/site/usecases/CreateResource.java, andreas |
| Next by Thread: | svn commit: r519928 - in /lenya/trunk/src/modules/bxe: sitemap.xmap xslt/link.xsl, andreas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |