You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dl...@apache.org on 2001/01/09 18:29:49 UTC
cvs commit: xml-xalan/java/xdocs/sources/xalan extensionslib.xml samples.xml
dleslie 01/01/09 09:29:49
Modified: java/xdocs/sources/xalan extensionslib.xml samples.xml
Log:
SQL libray sample witnh InstantDB sample.
Revision Changes Path
1.9 +4 -2 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.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- extensionslib.xml 2000/12/18 17:33:55 1.8
+++ extensionslib.xml 2001/01/09 17:29:47 1.9
@@ -230,7 +230,9 @@
Each col element contains a text node with a textual representation of the value for that column in the current row.</p>
<anchor name="ex-sql"/>
<s3 title="Example with SQL library">
- <p>This example displays the result set from a table in a sample InstantDB database.</p>
+ <p>This example displays the result set from a table in a sample InstantDB database. It is also
+ available as a sample application; see
+ <link idref="samples" anchor="ext6">6-sqllib-instantdb</link>.</p>
<source><?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
@@ -243,7 +245,7 @@
<!-- 1. Make the connection -->
<xsl:variable name="products"
select="sql:new('org.enhydra.instantdb.jdbc.idbDriver',
- 'jdbc:idb:D:\instantdb\Examples\sample.prp')"/>
+ 'jdbc:idb:.\instantdb\sample.prp')"/>
<HTML>
<HEAD>
</HEAD>
1.20 +19 -3 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.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- samples.xml 2000/12/18 14:18:30 1.19
+++ samples.xml 2001/01/09 17:29:48 1.20
@@ -224,10 +224,11 @@
<li><link anchor="ext2">2-basicJscript</link></li>
<li><link anchor="ext3">3-java-namespace</link></li>
<li><link anchor="ext4">4-numlistJava</link></li>
- <li><link anchor="ext5">5-numlistJScript</link></li>
+ <li><link anchor="ext5">5-numlistJScript</link></li>
+ <li><link anchor="ext6">6-sqllib-instantdb</link></li>
</ul>
- <p>The extensions subdirectory contains five samples with &xslt4j; extensions. Two of the samples use
- extensions implemented in JavaScript, and three of the samples use extensions implemented in Java.</p>
+ <p>The extensions subdirectory contains six samples with &xslt4j; extensions. Two of the samples use
+ extensions implemented in JavaScript, and four of the samples use extensions implemented in Java.</p>
<p>To run these examples, you must place bsf.jar (distributed with &xslt4j;), and js.jar
(version 1.5, available from
<jump href="http://www.mozilla.org/rhino">http://www.mozilla.org/rhino</jump>) on the class path.
@@ -279,6 +280,21 @@
<p>Run this sample from the extensions subdirectory with</p>
<p><code> java org.apache.xalan.xslt.Process -in numlist.xml</code>
<br/> <code>-xsl 5-numlistJscript.xsl</code></p>
+ </s3><anchor name="ext6"/>
+ <s3 title="6-sqllib-instantdb">
+ <p>What it does: Uses <link idref="extensionslib" anchor="sql">SQL library XConnection
+ extension</link> to connect to an InstantDB sample database, perform a query, and display the
+ query result in an HTML table.</p>
+ <note>You must include idb.jar on the classpath. We have placed a copy of idb.jar from
+ InstantDB version 3.25 in samples/extensions/instantdb. For information about InstantDB, see
+ <jump href="http://instantdb.enhydra.org/software/documentation/index.html">InstantDB</jump>
+ and the <jump href="http://instantdb.enhydra.org/software/license/index.html">Enydra Public
+ License</jump>.</note>
+ <p>Run this sample from the extensions subdirectory with (adjust the Windows CLASSPATH setting
+ below for your operating environment):</p>
+ <p><code>java org.apache.xalan.xslt.Process</code>
+ <br/> <code>-cp instantdb/idb.jar;%CLASSPATH%</code>
+ <br/> <code>-xsl 6-sqllib-instantdb -out import1.html</code></p>
</s3>
</s2><anchor name="trace"/>
<s2 title="Trace">