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: r314943 - in /lenya/trunk/src/webapp: global-sitemap.xmap lenya: msg#00044

cms.lenya.cvs

Subject: svn commit: r314943 - in /lenya/trunk/src/webapp: global-sitemap.xmap lenya/xslt/cforms/forms-samples-styling.xsl

Author: chestnut
Date: Wed Oct 12 08:21:35 2005
New Revision: 314943

URL: http://svn.apache.org/viewcvs?rev=314943&view=rev
Log:
Checks if the xml contains cforms elements, and fixes inclusion of ajax libs
Thanks to a patch by Felix Röthenbacher, fixes Bug 37050

Modified:
lenya/trunk/src/webapp/global-sitemap.xmap
lenya/trunk/src/webapp/lenya/xslt/cforms/forms-samples-styling.xsl

Modified: lenya/trunk/src/webapp/global-sitemap.xmap
URL:
http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/global-sitemap.xmap?rev=314943&r1=314942&r2=314943&view=diff
==============================================================================
--- lenya/trunk/src/webapp/global-sitemap.xmap (original)
+++ lenya/trunk/src/webapp/global-sitemap.xmap Wed Oct 12 08:21:35 2005
@@ -126,6 +126,13 @@
</map:match>
</map:pipeline>

+ <!-- ajax -->
+ <map:pipeline>
+ <map:match pattern="cforms/ajax/**">
+ <map:read src="resource://org/apache/cocoon/ajax/resources/{1}"/>
+ </map:match>
+ </map:pipeline>
+
<!-- cforms -->
<map:pipeline>
<map:match pattern="cforms/**">

Modified: lenya/trunk/src/webapp/lenya/xslt/cforms/forms-samples-styling.xsl
URL:
http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/xslt/cforms/forms-samples-styling.xsl?rev=314943&r1=314942&r2=314943&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/xslt/cforms/forms-samples-styling.xsl
(original)
+++ lenya/trunk/src/webapp/lenya/xslt/cforms/forms-samples-styling.xsl Wed Oct
12 08:21:35 2005
@@ -1,49 +1,50 @@
-<?xml version="1.0"?>
-<!--
- Copyright 1999-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 version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
-
- <!--+ Include styling stylesheets, one for the widgets, the other one for the
- | page. As 'forms-advanced-field-styling.xsl' is a specialization of
- | 'forms-field-styling.xsl' the latter one is imported there. If you
don't
- | want advanced styling of widgets, change it here!
- | See xsl:include as composition and xsl:import as extension/inheritance.
- +-->
- <xsl:include
href="resource://org/apache/cocoon/forms/resources/forms-page-styling.xsl"/>
- <xsl:include
href="resource://org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl"/>
-
- <!-- Location of the resources directory, where JS libs and icons are stored
-->
- <xsl:param name="resources-uri"/>
-
- <xsl:template match="head">
- <head>
- <xsl:apply-templates/>
- <xsl:apply-templates select="." mode="forms-page"/>
- <xsl:apply-templates select="." mode="forms-field"/>
- </head>
- </xsl:template>
-
- <xsl:template match="body">
- <body>
- <!--+ !!! If template with mode 'forms-page' adds text or elements
- | template with mode 'forms-field' can no longer add
attributes!!!
- +-->
- <xsl:apply-templates select="." mode="forms-page"/>
- <xsl:apply-templates select="." mode="forms-field"/>
- <xsl:apply-templates/>
- </body>
- </xsl:template>
-</xsl:stylesheet>
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-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 version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+ xmlns:fi="http://apache.org/cocoon/forms/1.0#instance";>
+
+ <!--+ Include styling stylesheets, one for the widgets, the other one for the
+ | page. As 'forms-advanced-field-styling.xsl' is a specialization of
+ | 'forms-field-styling.xsl' the latter one is imported there. If you
don't
+ | want advanced styling of widgets, change it here!
+ | See xsl:include as composition and xsl:import as extension/inheritance.
+ +-->
+ <xsl:include
href="resource://org/apache/cocoon/forms/resources/forms-page-styling.xsl"/>
+ <xsl:include
href="resource://org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl"/>
+
+ <!-- Location of the resources directory, where JS libs and icons are stored
-->
+ <xsl:param name="resources-uri"/>
+
+ <xsl:template match="head[//fi:*]">
+ <head>
+ <xsl:apply-templates/>
+ <xsl:apply-templates select="." mode="forms-page"/>
+ <xsl:apply-templates select="." mode="forms-field"/>
+ </head>
+ </xsl:template>
+
+ <xsl:template match="body[//fi:*]">
+ <body>
+ <!--+ !!! If template with mode 'forms-page' adds text or elements
+ | template with mode 'forms-field' can no longer add
attributes!!!
+ +-->
+ <xsl:apply-templates select="." mode="forms-page"/>
+ <xsl:apply-templates select="." mode="forms-field"/>
+ <xsl:apply-templates/>
+ </body>
+ </xsl:template>
+</xsl:stylesheet>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
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