cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java esql.xsl
Date Thu, 06 Sep 2001 20:34:13 GMT
Berin,

There's one more esql.xsl in the C1.X repository :)

Thanks,
dims

--- bloritsch@apache.org wrote:
> bloritsch    01/09/06 13:03:36
> 
>   Modified:    src/org/apache/cocoon/components/language/markup/xsp/java
>                         esql.xsl
>   Log:
>   Forgot one file
>   
>   Revision  Changes    Path
>   1.21      +27 -27   
> xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl
>   
>   Index: esql.xsl
>   ===================================================================
>   RCS file:
> /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl,v
>   retrieving revision 1.20
>   retrieving revision 1.21
>   diff -u -r1.20 -r1.21
>   --- esql.xsl	2001/08/16 10:06:00	1.20
>   +++ esql.xsl	2001/09/06 20:03:36	1.21
>   @@ -1,5 +1,5 @@
>    <?xml version="1.0"?>
>   -<!-- $Id: esql.xsl,v 1.20 2001/08/16 10:06:00 cziegeler Exp $-->
>   +<!-- $Id: esql.xsl,v 1.21 2001/09/06 20:03:36 bloritsch Exp $-->
>    <!--
>    
>     ============================================================================
>   @@ -258,7 +258,7 @@
>                  super.compose(manager);
>                  if (_esql_selector == null) {
>                    try {
>   -                  _esql_selector = (ComponentSelector)
> manager.lookup(org.apache.cocoon.Roles.DB_CONNECTION);
>   +                  _esql_selector = (ComponentSelector)
> manager.lookup(DataSourceComponent.ROLE + "Selector");
>                    } catch (ComponentException cme) {
>                      getLogger().error("Could not look up the datasource component",
cme);
>                    }
>   @@ -337,32 +337,32 @@
>                protected void _esql_printObject ( Object obj, AttributesImpl xspAttr)
throws
> SAXException
>                {
>                   if ( obj instanceof List) {
>   -	 	   ListIterator j=((List)obj).listIterator();
>   -	 	   <xsp:element name="sql-list">
>   -            	     <xsp:logic>
>   -            	       while (j.hasNext()){
>   -            		  <xsp:element name="sql-list-item">
>   -            		    <xsp:attribute
> name="pos"><xsp:expr>j.nextIndex()</xsp:expr></xsp:attribute>
>   -            		    <xsp:logic>this._esql_printObject(j.next(),xspAttr);</xsp:logic>
>   -            		  </xsp:element>
>   -            	       };
>   -            	     </xsp:logic>
>   -            	   </xsp:element>
>   +           ListIterator j=((List)obj).listIterator();
>   +           <xsp:element name="sql-list">
>   +                     <xsp:logic>
>   +                       while (j.hasNext()){
>   +                      <xsp:element name="sql-list-item">
>   +                        <xsp:attribute
> name="pos"><xsp:expr>j.nextIndex()</xsp:expr></xsp:attribute>
>   +                        <xsp:logic>this._esql_printObject(j.next(),xspAttr);</xsp:logic>
>   +                      </xsp:element>
>   +                       };
>   +                     </xsp:logic>
>   +                   </xsp:element>
>                   } else if ( obj instanceof Set ) {
>   -	 	    Iterator j=((Set)obj).iterator();
>   -	 	    <xsp:element name="sql-set">
>   -            	      <xsp:logic>
>   -            	        while (j.hasNext()){
>   -            	           <xsp:element name="sql-set-item">
>   -	 	     	 <xsp:logic>this._esql_printObject(j.next(),xspAttr);</xsp:logic>
>   -	 	           </xsp:element>
>   -            	        };
>   -            	      </xsp:logic>
>   -            	    </xsp:element>
>   -	       } else {
>   -	          <xsp:content><xsp:expr>obj</xsp:expr></xsp:content>;
>   -	       }
>   -	    }
>   +            Iterator j=((Set)obj).iterator();
>   +            <xsp:element name="sql-set">
>   +                      <xsp:logic>
>   +                        while (j.hasNext()){
>   +                           <xsp:element name="sql-set-item">
>   +                 <xsp:logic>this._esql_printObject(j.next(),xspAttr);</xsp:logic>
>   +                   </xsp:element>
>   +                        };
>   +                      </xsp:logic>
>   +                    </xsp:element>
>   +           } else {
>   +              <xsp:content><xsp:expr>obj</xsp:expr></xsp:content>;
>   +           }
>   +        }
>            </xsl:when>
>          </xsl:choose>
>        </xsp:logic>
>   
>   
>   
> 
> ----------------------------------------------------------------------
> 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
> 


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message