dleslie 01/07/17 08:20:40
Modified: java/xdocs/sources/xalan samples.xml trax.xml
usagepatterns.xml
Log:
Fixed a bad link and some misplaced anchors.
Revision Changes Path
1.35 +4 -4 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.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- samples.xml 2001/07/17 14:28:24 1.34
+++ samples.xml 2001/07/17 15:20:27 1.35
@@ -400,8 +400,8 @@
<p>3. To get connection information from the stylesheet and dump the
raw result set to an XML file:</p>
<p><code>java org.apache.xalan.xslt.Process</code>
<br/> <code>-xsl DumpSQL.xsl -out import1.xml</code></p>
- </s3> <anchor name="ext-conn"/><p><em>[broken in &xslt4j-current; --
does not yet work with DTM]</em></p>
- <s3 title="ExternalConnection">
+ </s3> <anchor name="ext-conn"/>
+ <s3 title="ExternalConnection"><p><em>[broken in &xslt4j-current; --
does not yet work with DTM]</em></p>
<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
@@ -413,8 +413,8 @@
<p>ExternalConnection creates the ConnectionPool, and performs a
transformation wiht dbtest.xsl, which draws
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"/><p><em>[broken in &xslt4j-current; -- does
not yet work with DTM]</em></p>
- <s3 title="Parameterized query">
+ </s3><anchor name="pquery"/>
+ <s3 title="Parameterized query"><p><em>[broken in &xslt4j-current; --
does not yet work with DTM]</em></p>
<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>
1.2 +1 -1 xml-xalan/java/xdocs/sources/xalan/trax.xml
Index: trax.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/trax.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- trax.xml 2001/04/30 12:28:15 1.1
+++ trax.xml 2001/07/17 15:20:30 1.2
@@ -205,7 +205,7 @@
<p>To use the TRaX interface, you create a
<link anchor="pattern-TransformerFactory">TransformerFactory</link>,
- which may directly provide a <link
anchor="pattern-Transformers">Transformers</link>, or which can provide
+ which may directly provide a <link
anchor="pattern-Transformer">Transformers</link>, or which can provide
<link anchor="pattern-Templates">Templates</link> from a variety of
<link anchor="pattern-Source">Source</link>s. The
<link anchor="pattern-Templates">Templates</link> object is a processed
1.39 +9 -0 xml-xalan/java/xdocs/sources/xalan/usagepatterns.xml
Index: usagepatterns.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/usagepatterns.xml,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- usagepatterns.xml 2001/07/12 19:36:23 1.38
+++ usagepatterns.xml 2001/07/17 15:20:31 1.39
@@ -61,6 +61,7 @@
<li><link anchor="basic">Basic steps</link></li>
<li><link anchor="plug">Plugging in the Transformer and XML
parser</link></li>
<li><link anchor="outputprops">Setting output properties in your
stylesheets</link></li>
+<li><link anchor="outputencoding">Caution: setting output encoding in the
stylesheet</link></li>
<li><link anchor="embed">Working with embedded stylesheets</link></li>
<li><link anchor="params">Setting stylesheet parameters</link></li>
<li><link anchor="serialize">Serializing output</link></li>
@@ -214,6 +215,14 @@
<td>org.apache.xalan.serialize.SerializerToText</td>
</tr>
</table>
+</s2><anchor name="outputencoding"/>
+<s2 title="Caution: setting output encoding in the stylesheet">
+<p>When you use the <xsl:output> encoding attribute to set output
character encoding, you should not
+use StreamResult(java.io.Writer) to construct a
+<jump
href="apidocs/javax/xml/transform/stream/StreamResult.html">StreamResult</jump>
object to hold the transformation result.
+If you do, the Writer uses its own encoding rather than the encoding
specified in the stylesheet.</p>
+<p>If you want to use a Writer, you can specify an encoding when you create
the Writer (java.io.OutputStreamWriter). Once the
+Writer exists, you cannot reset the encoding it uses.</p>
</s2><anchor name="embed"/>
<s2 title="Working with embedded stylesheets">
<p>An XML Source may include an <jump
href="http://www.w3.org/TR/xml-stylesheet/">xml-stylesheet processing
instruction</jump> which identifies the stylesheet to be used to process the
document. As indicated by the processing instruction <ref>href</ref> attribute,
the stylesheet itself may be embedded in the XML document or located
elsewhere.</p>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]