dleslie 00/12/18 09:34:00
Modified: java/xdocs/sources/xalan DONE extensionslib.xml
Log:
Added evaulate and tokenize extension functions.
Revision Changes Path
1.5 +1 -1 xml-xalan/java/xdocs/sources/xalan/DONE
Index: DONE
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/DONE,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- DONE 2000/12/07 22:11:57 1.4
+++ DONE 2000/12/18 17:33:54 1.5
@@ -6,7 +6,7 @@
<p><em>Output properties</em></p>
<p>The handling of xsl:output properties has changed:
org.apache.xalan.serialize.OutputFormat and
apache.xalan.templates.OutputFormatExtended were removed and replaced with
org.apache.xalan.templates.OutputProperties. The SerializerFactory
getSerializer() method now takes Properties rather than a String indicating the
output method. You can replace <code>getSerializer("xml")</code>, for example,
with
<code>getSerializer(OutputProperties.getDefaultMethodProperties("xml"))</code>.</p>
<p>HTML, XML, and text xsl:output properties are specified in property files
in org.apache.xalan.templates: output_html.properties, output_xml.properties,
and output_text.properties.</p>
-<p>You can start using the output proprties defined in these files in your
stylesheets. For example, you can turn URL escaping off in HTML output, by
setting use-url-escaping=no, and you can set indent-amount to control
indenting.</p>
+<p>You can start using the output properties defined in these files in your
stylesheets. For example, you can turn URL escaping off in HTML output, by
setting use-url-escaping=no, and you can set indent-amount to control
indenting.</p>
<p>Character-to-entity mapping is specified in org.apache.xalan.serialize:
HTMLEntities.res and XMLEntities.res. You can override entity ref
mapping from a stylesheet. For example:</p>
<source><?xml version="1.0"?>
1.8 +15 -4 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.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- extensionslib.xml 2000/12/08 07:59:38 1.7
+++ extensionslib.xml 2000/12/18 17:33:55 1.8
@@ -67,7 +67,8 @@
<li><link anchor="distinct">distinct</link></li>
<li><link anchor="hassamenodes">hasSameNodes</link></li>
<li><link anchor="sql">SQL extensions</link></li>
-<li><link anchor="evaluate">evaluate</link> <ref>(to be done)</ref></li>
+<li><link anchor="evaluate">evaluate</link></li>
+<li><link anchor="tokenize">tokenize</link></li>
<li><link anchor="groupitem">group and item</link> <ref>(to be
done)</ref></li>
<li><link anchor="type">type</link> <ref>(to be done)</ref></li>
<li><link anchor="todate">toDate</link> <ref>(to be done)</ref></li>
@@ -282,14 +283,24 @@
</source>
</s3>
</s2><anchor name="evaluate"/>
-
<s2 title= "evaluate">
-<p><em>To be done.</em> Allows the run-time construction and evaluation of
XPath expressions.</p>
+<p>Implemented in <jump
href="apidocs/org/apache/xalan/lib/Extensions.html">org.apache.xalan.lib.Extensions</jump>,<br/>
+<code>evaluate (xpath-expression)</code> function returns the result of
evaluating the xpath-expression in the current
+XPath expression context (automatically passed in by the extension
mechanism).</p>
+<p>Use the evaluation extension function when the value of the expression is
not known until run time.</p>
+</s2><anchor name="tokenize"/>
+<s2 title="tokenize">
+<p>Implemented in <jump
href="apidocs/org/apache/xalan/lib/Extensions.html">org.apache.xalan.lib.Extensions</jump>,<br/>
+<code>tokenize (tokenize-string, delimiters)</code><br/>
+or<br/>
+<code>tokenize (tokenize-string)</code> function returns a node-set
containing one text node for each token in the tokenize-string.</p>
+<p>The delimiters determine which characters are used to divide the
tokenize-string into individual tokens. If you do not include
+the delimiters argument, the function uses tab (&#x09), linefeed
(&#x0A), return (&#x0D), and space (&#x20) as delimiters.
+If tokenize-string is an empty string or contains only delimiters, the
result is an empty node-set.</p>
</s2><anchor name="groupitem"/>
<s2 title= "group and item">
<p><em>To be done.</em> Provides efficient grouping of items with a common
value.</p>
</s2><anchor name="type"/>
-
<s2 title= "type">
<p><em>To be done.</em> Returns a string that represents the Schema or DTD
type.</p>
</s2><anchor name="todate"/>