balld       01/02/04 20:50:19

  Modified:    src/org/apache/cocoon/processor/xsp/library/sql esql.xsl
  Log:
  fixed xsp:page/xsp:structure bug
  
  Revision  Changes    Path
  1.59      +19 -14    
xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/esql.xsl
  
  Index: esql.xsl
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/esql.xsl,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- esql.xsl  2001/01/30 20:49:21     1.58
  +++ esql.xsl  2001/02/05 04:50:18     1.59
  @@ -1,5 +1,5 @@
   <?xml version="1.0"?>
  -<!-- $Id: esql.xsl,v 1.58 2001/01/30 20:49:21 balld Exp $-->
  +<!-- $Id: esql.xsl,v 1.59 2001/02/05 04:50:18 balld Exp $-->
   <!--
   
    ============================================================================
  @@ -240,20 +240,25 @@
   </xsl:template>
   
   <xsl:template match="xsp:page/*">
  -  <xsl:if test="not(namespace-uri(.)=$xsp-namespace-uri)">
  -    <xsl:copy>
  -      <xsl:apply-templates select="@*"/>
  -      <xsp:logic>
  -        Stack _esql_connections = new Stack();
  -        EsqlConnection _esql_connection = null;
  -        Stack _esql_queries = new Stack();
  -        EsqlQuery _esql_query = null;
  -        SQLException _esql_exception = null;
  -        StringWriter _esql_exception_writer = null;
  -      </xsp:logic>
  +  <xsl:choose>
  +    <xsl:when test="not(namespace-uri(.)=$xsp-namespace-uri)">
  +      <xsl:copy>
  +        <xsl:apply-templates select="@*"/>
  +        <xsp:logic>
  +          Stack _esql_connections = new Stack();
  +          EsqlConnection _esql_connection = null;
  +          Stack _esql_queries = new Stack();
  +          EsqlQuery _esql_query = null;
  +          SQLException _esql_exception = null;
  +          StringWriter _esql_exception_writer = null;
  +        </xsp:logic>
  +        <xsl:apply-templates/>
  +      </xsl:copy>
  +    </xsl:when>
  +    <xsl:otherwise>
         <xsl:apply-templates/>
  -    </xsl:copy>
  -  </xsl:if>
  +    </xsl:otherwise>
  +  </xsl:choose>
   </xsl:template>
   
   <xsl:template match="esql:connection">
  
  
  

Reply via email to