dleslie 01/06/08 13:22:26
Modified: c/xdocs/sources/xalan usagepatterns.xml
Log:
Use XalanDOMString& in setStylesheetParam args.
Revision Changes Path
1.27 +2 -2 xml-xalan/c/xdocs/sources/xalan/usagepatterns.xml
Index: usagepatterns.xml
===================================================================
RCS file: /home/cvs/xml-xalan/c/xdocs/sources/xalan/usagepatterns.xml,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- usagepatterns.xml 2001/06/08 19:22:03 1.26
+++ usagepatterns.xml 2001/06/08 20:22:25 1.27
@@ -146,8 +146,8 @@
<s2 title="Setting stylesheet parameters">
<p>An XSL stylesheet can include parameters that are set at run time before a
transformation takes place. When we generate the HTML documents that make up the Xalan
doc set, for example, we send the stylesheet an id parameter along with each XML
source document. The id identifies that document and enables the stylesheet to
integrate it into the overall doc set.</p>
<p>To set a stylesheet parameter, use the <jump
href="apdidocs/class_xalantransformer.html">XalanTransformer</jump>
setStylesheetParam() method. The setStytlesheetParam() method takes two arguments: the
parameter name and the expression. For example:</p>
-<source>const char* key="param1";
-const char* expression="'Hello World'";
+<source>const XalanDOMString& key="param1";
+const XalanDOMString& expression="'Hello World'";
theXalanTransformer.setStylesheetParam(key, expression);
// foo.xsl defines a stylesheet parameter named param1.
theXalanTransformer.transform("foo.xml","foo.xsl","foo-out.xml")</source>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]