|
|
Choosing A Webhost: |
svn commit: r201778 - /lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/de: msg#00255cms.lenya.cvs
Author: gregor Date: Sat Jun 25 11:27:46 2005 New Revision: 201778 URL: http://svn.apache.org/viewcvs?rev=201778&view=rev Log: Added search usecase to default publication. Thanks to Paul Ercolino, this makes searching work out of the box on Windows for the first time. Added: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/navigation/search.xsl Added: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/navigation/search.xsl URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/navigation/search.xsl?rev=201778&view=auto ============================================================================== --- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/navigation/search.xsl (added) +++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/navigation/search.xsl Sat Jun 25 11:27:46 2005 @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!-- + 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. +--> + +<!-- $Id: search.xsl 76018 2004-11-16 20:12:54Z gregor $ --> + +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:nav="http://apache.org/cocoon/lenya/navigation/1.0" + xmlns="http://www.w3.org/1999/xhtml" + exclude-result-prefixes="nav" + > + +<xsl:param name="area"/> +<xsl:param name="root"/> +<xsl:param name="chosenlanguage"/> + +<xsl:template match="nav:site"> + <div id="search"> + <form><input type="hidden" name="lenya.usecase" value="search"/><input type="hidden" name="language" value="{$chosenlanguage}"/><input class="searchfield" type="text" name="query" alt="Search field"/><input class="searchsubmit" type="submit" value="Search" name="find"/></form> + </div> +</xsl:template> + +<xsl:template match="@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> +</xsl:template> + +</xsl:stylesheet>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | svn commit: r201782 - /lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/content/search/search-and-results.xsp, gregor |
|---|---|
| Next by Date: | svn commit: r201777 - /lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl, gregor |
| Previous by Thread: | svn commit: r201782 - /lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/content/search/search-and-results.xsp, gregor |
| Next by Thread: | svn commit: r201777 - /lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl, gregor |
| 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 |