Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

svn commit: r519893 - in /lenya/trunk/src/webapp: global-sitemap.xmap lenya: msg#00010

cms.lenya.cvs

Subject: svn commit: r519893 - in /lenya/trunk/src/webapp: global-sitemap.xmap lenya/xslt/util/identity.xsl

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>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation