cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java esql.xsl
Date Thu, 06 Sep 2001 20:03:36 GMT
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


Mime
View raw message