dleslie 01/08/09 06:51:33
Modified: java/xdocs/sources/xalan extensionslib.xml readme.xml
samples.xml
Log:
SQL Extension libary working again!
Revision Changes Path
1.17 +0 -1 xml-xalan/java/xdocs/sources/xalan/extensionslib.xml
Index: extensionslib.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/extensionslib.xml,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- extensionslib.xml 2001/08/03 19:13:27 1.16
+++ extensionslib.xml 2001/08/09 13:51:33 1.17
@@ -215,7 +215,6 @@
<code>hasSameNodes(node-set1, node-set2)</code> returns true if both
node-set1 and node-set2 contain exactly the same set of nodes.</p>
</s2><anchor name="sql"/>
<s2 title= "SQL library">
-<p><em>[broken in &xslt4j-current; -- does not work with DTM]</em></p>
<ul>
<li><link anchor="sqlconn">Setting up a connection</link></li>
<li><link anchor="sqlparam">Parameterized queries</link></li>
1.47 +1 -0 xml-xalan/java/xdocs/sources/xalan/readme.xml
Index: readme.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/readme.xml,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- readme.xml 2001/07/27 17:37:38 1.46
+++ readme.xml 2001/08/09 13:51:33 1.47
@@ -81,6 +81,7 @@
<s3 title="Changes since &xslt4j; 2.2.D7">
<p>&xslt4j-current; is a Developer release. For enhanced performance,
it incorporates the
<link idref="dtm">DTM</link>.</p>
+ <note>The SQL Extension library has been updated to work with
DTM.</note>
&done-j;
</s3>
<anchor name="other"/>
1.38 +11 -11 xml-xalan/java/xdocs/sources/xalan/samples.xml
Index: samples.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/samples.xml,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- samples.xml 2001/08/08 15:54:26 1.37
+++ samples.xml 2001/08/09 13:51:33 1.38
@@ -355,7 +355,6 @@
</s3>
</s2><anchor name="sql"/>
<s2 title="SQL Library extensions">
- <p><em>[broken in &xslt4j-current; -- SQL Library does not yet work
with DTM]</em></p>
<p>The SQL Library extension samples use <link idref="extensionslib"
anchor="sql">SQL library XConnection
extension</link>to connect to an InstantDB datasource, perform
queries, and return query result sets.</p>
<note>To run these samples, you must include idb.jar on the classpath.
We have placed a copy of idb.jar from
@@ -375,14 +374,14 @@
([EMAIL PROTECTED]) to take illustrate the rich feature set he has
contributed to the SQL Library.
To run each of these samples, be sure you are in the appropriate
extensions/sql subdirectory.</note>
<anchor name="ext6"/>
- <s3 title="6-sqllib-instantdb"><p><em>[broken in &xslt4j-current; --
does not yet work with DTM]</em></p>
+ <s3 title="6-sqllib-instantdb">
<p>What it does: Uses the SQL library XConnection extension to connect
to the InstantDB sample database,
performs a query, and returns the query result in an HTML table.</p>
<p>Add idb.jar to the classpath, and run this sample from the
extensions subdirectory:</p>
<p><code>java org.apache.xalan.xslt.Process</code>
<br/> <code>-xsl 6-sqllib-instantdb.xsl -out
import1.html</code></p>
</s3><anchor name="basic-conn"/>
- <s3 title="Basic-Connection"><p><em>[broken in &xslt4j-current; --
does not yet work with DTM]</em></p>
+ <s3 title="Basic-Connection">
<p><em>Contributed by John Gentilin ([EMAIL PROTECTED]).</em></p>
<p>What it does: illustrates two strategies for connecting to a
database, executing a static query, and returning
the query result.</p>
@@ -403,7 +402,7 @@
<p><code>java org.apache.xalan.xslt.Process</code>
<br/> <code>-xsl DumpSQL.xsl -out import1.xml</code></p>
</s3> <anchor name="ext-conn"/>
- <s3 title="ExternalConnection"><p><em>[broken in &xslt4j-current; --
does not yet work with DTM]</em></p>
+ <s3 title="ExternalConnection">
<p><em>Contributed by John Gentilin ([EMAIL PROTECTED]).</em></p>
<p>What it does: The ExternalConnection classes uses the default
implementation of the ConnectionPool interface
to create a pool of connections. A stylesheet in turn uses a connection
from this pool to instantiate an
@@ -416,7 +415,7 @@
from the pool to instantiate an XConnection object, connect to the
datasource, execute a static query, and return the
query result.</p>
</s3><anchor name="pquery"/>
- <s3 title="Parameterized query"><p><em>[broken in &xslt4j-current; --
does not yet work with DTM]</em></p>
+ <s3 title="Parameterized query">
<p><em>Contributed by John Gentilin ([EMAIL PROTECTED]).</em></p>
<p>What it does: connect to a datasource, execute a parameterized query,
and return the result. The XML source document
provides the parameter value as well as the connection information. The
parameter value is in a node in the XML source.</p>
@@ -426,7 +425,7 @@
<p><code>java org.apache.xalan.xslt.Process -in dbInfo.xml</code>
<br/><code>-xsl dbTest.xsl -out dbTest.html</code></p>
</s3><anchor name="streamable"/>
- <s3 title="Streamable"><p><em>[broken in &xslt4j-current; -- does not
yet work with DTM]</em></p>
+ <s3 title="Streamable">
<p><em>Contributed by John Gentilin ([EMAIL PROTECTED]).</em></p>
<p>What it does: Illustrates enabling and disabling of caching the
streamable result set returned by a query.</p>
<p>The stylesheets use the XConnection enableCacheNodes() and
disableCacheNodes() methods.</p>
@@ -439,18 +438,19 @@
<br/><code>-xsl streamNodes.xsl</code></p>
<p>3. <ref>To be added</ref></p>
</s3><anchor name="showerror"/>
- <s3 title="Show-error"><p><em>[broken in &xslt4j-current; -- does not
yet work with DTM]</em></p>
+ <s3 title="Show-error">
<p><em>Contributed by John Gentilin ([EMAIL PROTECTED]).</em></p>
<p>What it does: use the SQL library ExtensionError class to return an
error message in the output stream. The stylesheet
- (dbtest.xsl) calls a template with a select statement that only returns
a nodeset if an error has occured:</p>
+ calls a template with a select statement that returns a nodeset when an
error occurs.</p>
<source><xsl:variable name="table" select='sql:query($db,
$query)'/>
<xsl:apply-templates select="$table/row-set" />
<xsl:apply-templates select="$table/ext-error"/></source>
- <p>Since the query contains an incorrect table name, this example does
return an error message. Correct the table name (change
- 'import1X' to 'import1') and the example returns a standard result set.</p>
<p>With idb.jar on the classpath, run this sample from the
extensions/sql/show-error subdirectory:</p>
<p><code>java org.apache.xalan.xslt.Process</code>
- <br/><code> -in dbtest.xsl -out dbtestout.html</code></p>
+ <br/><code> -xsl <ref>invalidSomething.xsl</ref> -out
dbtestout.html</code></p>
+ <p>where <ref>invalidSomething.xsl</ref> is <code>invalidConn.xsl</code>
(specifies a database that does not exist),
+ <code>invalidQuery.xsl</code> (specifies a table that does not exist), or
<code>invalidPQuery.xsl</code> (includes
+ too many parameters for the parameterized query).</p>
</s3>
</s2><anchor name="trace"/>
<s2 title="Trace">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]