xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject cvs commit: xml-xalan/java/samples/extensions/sql/streamable streamNodes.xsl
Date Mon, 06 Aug 2001 05:03:01 GMT
johng       01/08/05 22:03:01

  Modified:    java/samples/extensions/sql/basic-connection dbtest.xsl
               java/samples/extensions/sql/streamable streamNodes.xsl
  Log:
  Updated basic connection and streamingNodes.xsl
  
  Submitted by: John Gentilin
  
  Revision  Changes    Path
  1.3       +1 -1      xml-xalan/java/samples/extensions/sql/basic-connection/dbtest.xsl
  
  Index: dbtest.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/samples/extensions/sql/basic-connection/dbtest.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- dbtest.xsl	2001/08/01 18:27:43	1.2
  +++ dbtest.xsl	2001/08/06 05:03:01	1.3
  @@ -8,7 +8,7 @@
   
   <xsl:param name="driver" select="'org.enhydra.instantdb.jdbc.idbDriver'"/>
   <xsl:param name="datasource" select="'jdbc:idb:../../instantdb/sample.prp'"/>
  -<xsl:param name="query" select="'SELECT * FROM import2'"/>
  +<xsl:param name="query" select="'SELECT * FROM import1'"/>
   
   <xsl:template match="/">
       
  
  
  
  1.2       +9 -2      xml-xalan/java/samples/extensions/sql/streamable/streamNodes.xsl
  
  Index: streamNodes.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/samples/extensions/sql/streamable/streamNodes.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- streamNodes.xsl	2001/04/19 18:54:18	1.1
  +++ streamNodes.xsl	2001/08/06 05:03:01	1.2
  @@ -11,7 +11,14 @@
   <xsl:param name="query" select="'SELECT * FROM import1'"/>
   
   <xsl:template match="/">
  -    <xsl:variable name="db" select="sql:new($driver, $datasource)"/>
  +    <xsl:variable name="db" select="sql:new()"/>
  +    
  +    <!-- Connect to the database with minimal error detection -->
  +		<xsl:if test="not(sql:connect($db, $driver, $datasource))" >
  +    	<xsl:message>Error Connecting to the Database</xsl:message>
  +      <xsl:copy-of select="sql:getError($db)/ext-error" />
  +    </xsl:if>
  +    
   
       <HTML>
         <HEAD>
  @@ -19,7 +26,7 @@
         </HEAD>
         <BODY>
           <TABLE border="1">
  -        	<xsl:value-of select="sql:disableCacheNodes($db)" />
  +        	<xsl:value-of select="sql:enableStreamingMode($db)" />
             <xsl:variable name="table" select='sql:query($db, $query)'/>
             <TR>
                <xsl:for-each select="$table/row-set/column-header">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message