Author: wsmoak Date: Mon Jul 18 19:04:17 2005 New Revision: 219597 URL: http://svn.apache.org/viewcvs?rev=219597&view=rev Log: - Added Google SiteSearch to User Guide and FAQs (inspired by Tomcat: http://jakarta.apache.org/tomcat/faq/) See: http://www.google.com/searchcode.html - Fixed links - Changed example to 1.3 DTD
Modified: struts/core/trunk/doc/faqs/index.xml struts/core/trunk/doc/faqs/project.xml struts/core/trunk/doc/index.xml struts/core/trunk/doc/learning.xml struts/core/trunk/doc/stylesheets/struts.xsl struts/core/trunk/doc/userGuide/index.xml Modified: struts/core/trunk/doc/faqs/index.xml URL: http://svn.apache.org/viewcvs/struts/core/trunk/doc/faqs/index.xml?rev=219597&r1=219596&r2=219597&view=diff ============================================================================== --- struts/core/trunk/doc/faqs/index.xml (original) +++ struts/core/trunk/doc/faqs/index.xml Mon Jul 18 19:04:17 2005 @@ -114,4 +114,10 @@ </section> +<section name="Search"> + <search label="Search the Struts FAQs and HowTos" + site="http://struts.apache.org/faqs" + domains="http://struts.apache.org/faqs;http://struts.apache.org/userGuide"/> +</section> + </body></document> Modified: struts/core/trunk/doc/faqs/project.xml URL: http://svn.apache.org/viewcvs/struts/core/trunk/doc/faqs/project.xml?rev=219597&r1=219596&r2=219597&view=diff ============================================================================== --- struts/core/trunk/doc/faqs/project.xml (original) +++ struts/core/trunk/doc/faqs/project.xml Mon Jul 18 19:04:17 2005 @@ -58,11 +58,13 @@ <item name="Welcome" href="../index.html"/> - <item name="User and Developer Guides" href="../userGuide/index.html" /> + <item + name="FAQs and HowTos *" + href="index.html"/> </menu> </project> Modified: struts/core/trunk/doc/index.xml URL: http://svn.apache.org/viewcvs/struts/core/trunk/doc/index.xml?rev=219597&r1=219596&r2=219597&view=diff ============================================================================== --- struts/core/trunk/doc/index.xml (original) +++ struts/core/trunk/doc/index.xml Mon Jul 18 19:04:17 2005 @@ -94,8 +94,8 @@ <pre><code><![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC - "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" - "http://struts.apache.org/dtds/struts-config_1_2.dtd"> + "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" + "http://struts.apache.org/dtds/struts-config_1_3.dtd"> <struts-config> <form-beans> <form-bean @@ -180,15 +180,15 @@ </section> <section> - <p> - Next: <a href="learning.html">Learning About Struts</a> - </p> -</section> - -<section> <p> <a href="faqs/kickstart.html#jsf">What about JSTL and JavaServer Faces?</a> </p> +</section> + +<section> + <p class="right"> + Next: <a href="learning.html">Learning About Struts</a> + </p> </section> </body> Modified: struts/core/trunk/doc/learning.xml URL: http://svn.apache.org/viewcvs/struts/core/trunk/doc/learning.xml?rev=219597&r1=219596&r2=219597&view=diff ============================================================================== --- struts/core/trunk/doc/learning.xml (original) +++ struts/core/trunk/doc/learning.xml Mon Jul 18 19:04:17 2005 @@ -131,7 +131,7 @@ to <em>use the source</em>. For the complete, buildable source code to the entire Struts framework, see the "src" folder in - <a href="http://struts.apache.org/acquiring.html"><strong>your source + <a href="acquiring.html"><strong>your source distribution</strong></a>. </p> Modified: struts/core/trunk/doc/stylesheets/struts.xsl URL: http://svn.apache.org/viewcvs/struts/core/trunk/doc/stylesheets/struts.xsl?rev=219597&r1=219596&r2=219597&view=diff ============================================================================== --- struts/core/trunk/doc/stylesheets/struts.xsl (original) +++ struts/core/trunk/doc/stylesheets/struts.xsl Mon Jul 18 19:04:17 2005 @@ -404,6 +404,38 @@ </xsl:template> + <!-- Process a Search section --> + <xsl:template match="search"> + <xsl:variable name="site"> + <xsl:value-of select="@site"/> + </xsl:variable> + <xsl:variable name="domains"> + <xsl:value-of select="@domains"/> + </xsl:variable> + <!-- SiteSearch Google --> + <form method="GET" action="http://www.google.com/search"> + <input type="hidden" name="ie" value="UTF-8"/> + <input type="hidden" name="oe" value="UTF-8"/> + <table class="noborder"> + <tr> + <td> + <a href="http://www.google.com/"> + <img src="http://www.google.com/logos/Logo_40wht.gif" border="0" alt="Google"/> + </a> + </td> + <td> + <input type="text" name="q" size="31" maxlength="255" value=""/> + <input type="submit" name="btnG" value="Google Search"/> + <input type="hidden" name="domains" value="{$domains}"/><br/> + <input type="hidden" name="sitesearch" value="{$site}"/> + <xsl:value-of select="@label"/><br/> + </td> + </tr> + </table> + </form> + <!-- SiteSearch Google --> + </xsl:template> + <!-- Process everything else by just passing it through --> <xsl:template match="*|@*"> <xsl:copy> Modified: struts/core/trunk/doc/userGuide/index.xml URL: http://svn.apache.org/viewcvs/struts/core/trunk/doc/userGuide/index.xml?rev=219597&r1=219596&r2=219597&view=diff ============================================================================== --- struts/core/trunk/doc/userGuide/index.xml (original) +++ struts/core/trunk/doc/userGuide/index.xml Mon Jul 18 19:04:17 2005 @@ -165,6 +165,12 @@ </section> + <section name="Search"> + <search label="Search the Struts User and Developers Guides" + site="http://struts.apache.org/userGuide" + domains="http://struts.apache.org/userGuide;http://struts.apache.org/faqs"/> + </section> + <section> <p class="right"> Next: <a href="preface.html">Preface</a> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]