cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/webapp/docs/samples/xscript simple.xsp soap-getquote1.xsp soap-getquote2.xsp soap-getquote3.xsp
Date Sun, 14 Apr 2002 00:38:34 GMT
vgritsenko    02/04/13 17:38:34

  Modified:    src/webapp/docs/samples/xscript simple.xsp
                        soap-getquote1.xsp soap-getquote2.xsp
                        soap-getquote3.xsp
  Log:
  nice identing
  
  Revision  Changes    Path
  1.2       +9 -13     xml-cocoon2/src/webapp/docs/samples/xscript/simple.xsp
  
  Index: simple.xsp
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/docs/samples/xscript/simple.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- simple.xsp	3 Jan 2002 12:31:42 -0000	1.1
  +++ simple.xsp	14 Apr 2002 00:38:34 -0000	1.2
  @@ -1,23 +1,20 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   
  +<!-- CVS: $Id: simple.xsp,v 1.2 2002/04/14 00:38:34 vgritsenko Exp $ -->
  +
   <!--
     Author: Ovidiu Predescu "ovidiu@cup.hp.com"
   
     Date: September 18, 2001
    -->
  -
   <xsp:page language="java"
  -  xmlns:xsp="http://apache.org/xsp"
  -  xmlns:xsp-request="http://apache.org/xsp/request/2.0"
  -  xmlns:xscript="http://apache.org/xsp/xscript/1.0"
  ->
  -
  +          xmlns:xsp="http://apache.org/xsp"
  +          xmlns:xsp-request="http://apache.org/xsp/request/2.0"
  +          xmlns:xscript="http://apache.org/xsp/xscript/1.0">
     <page>
  -
       <title>Inline XScript variable</title>
   
       <content>
  -
         <para>
           This is a simple XSP page demonstrating how to work with
           inline XScript variables. This example show how one can create
  @@ -38,11 +35,10 @@
           longer available.
         </para>
   
  -      <xscript:remove name="my-var"/>
  -
  -      <xscript:get name="my-var"/>
  -
  +      <para>
  +        <xscript:remove name="my-var"/>
  +        <xscript:get name="my-var"/>
  +      </para>
       </content>
  -
     </page>
   </xsp:page>
  
  
  
  1.2       +45 -54    xml-cocoon2/src/webapp/docs/samples/xscript/soap-getquote1.xsp
  
  Index: soap-getquote1.xsp
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/docs/samples/xscript/soap-getquote1.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- soap-getquote1.xsp	3 Jan 2002 12:31:42 -0000	1.1
  +++ soap-getquote1.xsp	14 Apr 2002 00:38:34 -0000	1.2
  @@ -1,65 +1,56 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   
  +<!-- CVS: $Id: soap-getquote1.xsp,v 1.2 2002/04/14 00:38:34 vgritsenko Exp $ -->
  +
   <!--
     Author: Ovidiu Predescu "ovidiu@cup.hp.com"
   
     Date: October 9, 2001
    -->
  -
  -<xsp:page
  -  language="java"
  -  xmlns:xsp="http://apache.org/xsp"
  -  xmlns:xsp-request="http://apache.org/xsp/request/2.0"
  -  xmlns:xscript="http://apache.org/xsp/xscript/1.0"
  -  xmlns:soap="http://apache.org/xsp/soap/3.0"
  -  >
  -  
  +<xsp:page language="java"
  +          xmlns:xsp="http://apache.org/xsp"
  +          xmlns:xsp-request="http://apache.org/xsp/request/2.0"
  +          xmlns:xscript="http://apache.org/xsp/xscript/1.0"
  +          xmlns:soap="http://apache.org/xsp/soap/3.0">
     <page>
  +    <title>SOAP Stock Quote Example 1</title>
   
  -   <title>SOAP Stock Quote Example 1</title>
  -
  -   <content>
  -
  -   <xsp:logic>
  -    String symbol = request.getParameter("symbol");
  -
  -    if (symbol == null || symbol.equals("")) {
  -
  -       <para>This page demonstrates the SOAP logicsheet for
  -       Cocoon2. It accesses a SOAP service that provides stock quotes
  -       and displays the result.</para>
  -
  -       <para>The SOAP result is placed in the generated page, and the
  -       stock price is extracted from it using an external XSLT
  -       stylesheet. Compare this approach with the one used in
  -       <code>soap-getquote2.xsp</code>, which uses an internal XScript
  -       stylesheet to extract the stock price.</para>
  -
  -       <para>Please enter the stock ticker: </para>
  -       <form href="soap-getquote">
  -         <input name="symbol" type="text" value="HWP"/>
  -         <input value="Do it!" type="submit"/>
  -       </form>
  -    }
  -    else {
  -      <para>The stock price for <xsp:expr>symbol</xsp:expr> is 
  -
  -      <soap:call url="http://services.xmethods.net:80/soap">
  -        <ns1:getQuote xmlns:ns1="urn:xmethods-delayed-quotes">
  -          <soap:enc/>
  -          <symbol xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"><xsp-request:get-parameter name="symbol"/></symbol>
  -        </ns1:getQuote>
  -      </soap:call>
  -
  -      </para>
  -
  -      <form href="soap-getquote">
  -        <input value="Back" type="submit"/>
  -      </form>
  -    }
  -  </xsp:logic>
  -
  -  </content>
  -
  +    <content>
  +      <xsp:logic>
  +        String symbol = request.getParameter("symbol");
  +
  +        if (symbol == null || symbol.equals("")) {
  +           <para>This page demonstrates the SOAP logicsheet for
  +           Cocoon2. It accesses a SOAP service that provides stock quotes
  +           and displays the result.</para>
  +
  +           <para>The SOAP result is placed in the generated page, and the
  +           stock price is extracted from it using an external XSLT
  +           stylesheet. Compare this approach with the one used in
  +           <code>soap-getquote2.xsp</code>, which uses an internal XScript
  +           stylesheet to extract the stock price.</para>
  +
  +           <para>Please enter the stock ticker: </para>
  +           <form href="soap-getquote">
  +             <input name="symbol" type="text" value="HWP"/>
  +             <input value="Do it!" type="submit"/>
  +           </form>
  +        } else {
  +          <para>The stock price for <xsp:expr>symbol</xsp:expr> is 
  +
  +            <soap:call url="http://services.xmethods.net:80/soap">
  +              <ns1:getQuote xmlns:ns1="urn:xmethods-delayed-quotes">
  +                <soap:enc/>
  +                <symbol xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"><xsp-request:get-parameter name="symbol"/></symbol>
  +              </ns1:getQuote>
  +            </soap:call>
  +          </para>
  +
  +          <form href="soap-getquote">
  +            <input value="Back" type="submit"/>
  +          </form>
  +        }
  +      </xsp:logic>
  +    </content>
     </page>
   </xsp:page>
  
  
  
  1.2       +61 -72    xml-cocoon2/src/webapp/docs/samples/xscript/soap-getquote2.xsp
  
  Index: soap-getquote2.xsp
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/docs/samples/xscript/soap-getquote2.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- soap-getquote2.xsp	3 Jan 2002 12:31:42 -0000	1.1
  +++ soap-getquote2.xsp	14 Apr 2002 00:38:34 -0000	1.2
  @@ -1,84 +1,73 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   
  +<!-- CVS: $Id: soap-getquote2.xsp,v 1.2 2002/04/14 00:38:34 vgritsenko Exp $ -->
  +
   <!--
     Author: Ovidiu Predescu "ovidiu@cup.hp.com"
   
     Date: October 9, 2001
    -->
  +<xsp:page language="java"
  +          xmlns:xsp="http://apache.org/xsp"
  +          xmlns:xsp-request="http://apache.org/xsp/request/2.0"
  +          xmlns:xscript="http://apache.org/xsp/xscript/1.0"
  +          xmlns:soap="http://apache.org/xsp/soap/3.0">
   
  -<xsp:page
  -  language="java"
  -  xmlns:xsp="http://apache.org/xsp"
  -  xmlns:xsp-request="http://apache.org/xsp/request/2.0"
  -  xmlns:xscript="http://apache.org/xsp/xscript/1.0"
  -  xmlns:soap="http://apache.org/xsp/soap/3.0"
  -  >
  -  
     <page>
  +    <title>SOAP Stock Quote Example 2</title>
   
  -   <title>SOAP Stock Quote Example 2</title>
  -
  -   <content>
  -
  -   <xsp:logic>
  -    String symbol = request.getParameter("symbol");
  -
  -    if (symbol == null || symbol.equals("")) {
  -
  -       <para>This page demonstrates the SOAP logicsheet for
  -       Cocoon2. It accesses a SOAP service that provides stock quotes
  -       and displays the result.</para>
  -
  -       <para>This example uses an inline XSLT stylesheet and an
  -       XScript <code>transform</code> instruction to extract the stock
  -       price. Compare this with the approach used in
  -       <code>soap-getquote1.xsp</code>, which uses a sitemap XSLT
  -       transformer to achieve the same thing.</para>
  -
  -       <para>Please enter the stock ticker: </para>
  -       <form href="soap-getquote">
  -         <input name="symbol" type="text" value="HWP"/>
  -         <input value="Do it!" type="submit"/>
  -       </form>
  -    }
  -    else {
  -      <para>The stock price for <xsp:expr>symbol</xsp:expr> is 
  -
  -    <xscript:variable name="soap-result">
  -      <soap:call url="http://services.xmethods.net:80/soap">
  -        <ns1:getQuote xmlns:ns1="urn:xmethods-delayed-quotes">
  -          <soap:enc/>
  -          <symbol xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"><xsp-request:get-parameter name="symbol"/></symbol>
  -        </ns1:getQuote>
  -      </soap:call>
  -    </xscript:variable>
  -
  -    <xscript:variable name="stylesheet">
  -      <xsl:stylesheet
  -        version="1.0"
  -        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  -        xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
  -        xmlns:n="urn:xmethods-delayed-quotes"
  -        exclude-result-prefixes="soap n"
  -      >
  -
  -        <xsl:template match="/">
  -          <b><xsl:value-of select="/soap:Envelope/soap:Body/n:getQuoteResponse/Result"/></b>
  -        </xsl:template>
  -      </xsl:stylesheet>
  -    </xscript:variable>
  -
  -    <xscript:transform name="soap-result" stylesheet="stylesheet"/>
  -
  -      </para>
  -
  -      <form href="soap-getquote">
  -        <input value="Back" type="submit"/>
  -      </form>
  -    }
  -  </xsp:logic>
  -
  -  </content>
  -
  +    <content>
  +      <xsp:logic>
  +        String symbol = request.getParameter("symbol");
  +        if (symbol == null || symbol.equals("")) {
  +          <para>This page demonstrates the SOAP logicsheet for
  +          Cocoon2. It accesses a SOAP service that provides stock quotes
  +          and displays the result.</para>
  +
  +          <para>This example uses an inline XSLT stylesheet and an
  +          XScript <code>transform</code> instruction to extract the stock
  +          price. Compare this with the approach used in
  +          <code>soap-getquote1.xsp</code>, which uses a sitemap XSLT
  +          transformer to achieve the same thing.</para>
  +
  +          <para>Please enter the stock ticker: </para>
  +          <form href="soap-getquote">
  +            <input name="symbol" type="text" value="HWP"/>
  +            <input value="Do it!" type="submit"/>
  +          </form>
  +        } else {
  +          <para>The stock price for <xsp:expr>symbol</xsp:expr> is 
  +            <xscript:variable name="soap-result">
  +              <soap:call url="http://services.xmethods.net:80/soap">
  +                <ns1:getQuote xmlns:ns1="urn:xmethods-delayed-quotes">
  +                  <soap:enc/>
  +                  <symbol xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"><xsp-request:get-parameter name="symbol"/></symbol>
  +                </ns1:getQuote>
  +              </soap:call>
  +            </xscript:variable>
  +
  +            <xscript:variable name="stylesheet">
  +              <xsl:stylesheet version="1.0"
  +                              xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  +                              xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
  +                              xmlns:n="urn:xmethods-delayed-quotes"
  +                              exclude-result-prefixes="soap n">
  +                <xsl:template match="/">
  +                  <b>
  +                    <xsl:value-of select="/soap:Envelope/soap:Body/n:getQuoteResponse/Result"/>
  +                  </b>
  +                </xsl:template>
  +              </xsl:stylesheet>
  +            </xscript:variable>
  +
  +            <xscript:transform name="soap-result" stylesheet="stylesheet"/>
  +          </para>
  +
  +          <form href="soap-getquote">
  +            <input value="Back" type="submit"/>
  +          </form>
  +        }
  +      </xsp:logic>
  +    </content>
     </page>
   </xsp:page>
  
  
  
  1.2       +52 -60    xml-cocoon2/src/webapp/docs/samples/xscript/soap-getquote3.xsp
  
  Index: soap-getquote3.xsp
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/docs/samples/xscript/soap-getquote3.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- soap-getquote3.xsp	3 Jan 2002 12:31:42 -0000	1.1
  +++ soap-getquote3.xsp	14 Apr 2002 00:38:34 -0000	1.2
  @@ -1,72 +1,64 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   
  +<!-- CVS: $Id: soap-getquote3.xsp,v 1.2 2002/04/14 00:38:34 vgritsenko Exp $ -->
  +
   <!--
     Author: Ovidiu Predescu "ovidiu@cup.hp.com"
   
     Date: October 9, 2001
    -->
  -
  -<xsp:page
  -  language="java"
  -  xmlns:xsp="http://apache.org/xsp"
  -  xmlns:xsp-request="http://apache.org/xsp/request/2.0"
  -  xmlns:xscript="http://apache.org/xsp/xscript/1.0"
  -  xmlns:soap="http://apache.org/xsp/soap/3.0"
  -  >
  -  
  +<xsp:page language="java"
  +          xmlns:xsp="http://apache.org/xsp"
  +          xmlns:xsp-request="http://apache.org/xsp/request/2.0"
  +          xmlns:xscript="http://apache.org/xsp/xscript/1.0"
  +          xmlns:soap="http://apache.org/xsp/soap/3.0">
     <page>
  +    <title>SOAP Stock Quote Example 3</title>
   
  -   <title>SOAP Stock Quote Example 3</title>
  -
  -   <content>
  -
  -   <xsp:logic>
  -    String symbol = request.getParameter("symbol");
  -
  -    if (symbol == null || symbol.equals("")) {
  -
  -       <para>This page demonstrates the SOAP logicsheet for
  -       Cocoon2. It accesses a SOAP service that provides stock quotes
  -       and displays the result.</para>
  -
  -       <para>This is yet another example of the XScript and SOAP
  -       logicsheets. This sample is very similar with
  -       <code>soap-getquote2.xsp</code>, except that the stylesheet is
  -       defined in an external file.
  -       </para>
  -
  -       <para>Please enter the stock ticker: </para>
  -       <form href="soap-getquote">
  -         <input name="symbol" type="text" value="HWP"/>
  -         <input value="Do it!" type="submit"/>
  -       </form>
  -    }
  -    else {
  -      <para>The stock price for <xsp:expr>symbol</xsp:expr> is 
  -
  -    <xscript:variable name="soap-result">
  -      <soap:call url="http://services.xmethods.net:80/soap">
  -        <ns1:getQuote xmlns:ns1="urn:xmethods-delayed-quotes">
  -          <soap:enc/>
  -          <symbol xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"><xsp-request:get-parameter name="symbol"/></symbol>
  -        </ns1:getQuote>
  -      </soap:call>
  -    </xscript:variable>
  -
  -    <xscript:variable name="stylesheet"
  -                      href="docs/samples/xscript/soap-getquote3.xsl"/>
  -
  -    <xscript:transform name="soap-result" stylesheet="stylesheet"/>
  -
  -      </para>
  -
  -      <form href="soap-getquote">
  -        <input value="Back" type="submit"/>
  -      </form>
  -    }
  -  </xsp:logic>
  -
  -  </content>
  +    <content>
   
  +      <xsp:logic>
  +        String symbol = request.getParameter("symbol");
  +        if (symbol == null || symbol.equals("")) {
  +           <para>This page demonstrates the SOAP logicsheet for
  +           Cocoon2. It accesses a SOAP service that provides stock quotes
  +           and displays the result.</para>
  +
  +           <para>This is yet another example of the XScript and SOAP
  +           logicsheets. This sample is very similar with
  +           <code>soap-getquote2.xsp</code>, except that the stylesheet is
  +           defined in an external file.
  +           </para>
  +
  +           <para>Please enter the stock ticker: </para>
  +           <form href="soap-getquote">
  +             <input name="symbol" type="text" value="HWP"/>
  +             <input value="Do it!" type="submit"/>
  +           </form>
  +        } else {
  +          <para>
  +            The stock price for <xsp:expr>symbol</xsp:expr> is 
  +
  +            <xscript:variable name="soap-result">
  +              <soap:call url="http://services.xmethods.net:80/soap">
  +                <ns1:getQuote xmlns:ns1="urn:xmethods-delayed-quotes">
  +                  <soap:enc/>
  +                  <symbol xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"><xsp-request:get-parameter name="symbol"/></symbol>
  +                </ns1:getQuote>
  +              </soap:call>
  +            </xscript:variable>
  +
  +            <xscript:variable name="stylesheet"
  +                              href="docs/samples/xscript/soap-getquote3.xsl"/>
  +
  +            <xscript:transform name="soap-result" stylesheet="stylesheet"/>
  +          </para>
  +
  +          <form href="soap-getquote">
  +            <input value="Back" type="submit"/>
  +          </form>
  +        }
  +      </xsp:logic>
  +    </content>
     </page>
   </xsp:page>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message