dleslie 01/10/15 10:00:18
Modified: java/xdocs/sources/xalan samples.xml usagepatterns.xml
Log:
Information about running applets from Netscape 6.
See bugzilla spr 3231 (from <[EMAIL PROTECTED]>.
Revision Changes Path
1.39 +2 -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.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- samples.xml 2001/08/09 13:51:33 1.38
+++ samples.xml 2001/10/15 17:00:18 1.39
@@ -170,9 +170,8 @@
<p>The applet uses a stylesheet to transform an XML document into HTML.
It displays the XML document, the
stylesheet, and the HTML output.</p>
<p>How to run it: Open appletXMLtoHTML.hmtl in the Internet Explorer 5
browser.</p>
- <note>This and the following sample applet do not work in the Netscape
Communicator 4.7. We have some work to do to get
- our basic strategy of using system properties to identify the
Transformer and XML Parser to work in the Netscape applet
- sandbox.<br/><br/>
+ <note>For information about running &xslt4j; applets in Netscape
Communicator, see <link idref="usagepatterns" anchor="netscape">Problems
+ with Netscape</link>.<br/><br/>
Both applets look for xalan.jar and xerces.jar in the bin subdirectory.
If you have placed these JAR files
elsewhere, adjust the applet archive setting in client.html and
get-todo-list.html accordingly.</note>
</s2><anchor name="get-todo-list"/>
1.43 +11 -1 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.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- usagepatterns.xml 2001/10/05 15:37:44 1.42
+++ usagepatterns.xml 2001/10/15 17:00:18 1.43
@@ -392,7 +392,17 @@
<param name="styleURL" value="s1ToHTML.xsl"/>
</applet></source>
<p>When the user clicks the Transform button, the HTML client calls the
getHtmlText() method, and puts the returned HTML text in a frame for the user
to view.</p>
-
+<p>For samples, see <link idref="samples"
anchor="applet">AppletXMLtoHTML</link>.</p>
+<anchor name="netscape"/><s3 title="Problems with Netscape">
+ <p>The JAXP strategy of reading system properties
+ generates SecurityExceptions when you attempt to run &xslt4j; applets in
the Netscape Communicator 4.7.</p>
+ <p>Stuart Connell
+ <[EMAIL PROTECTED]> reports that the &xslt4j; applet wrapper does
work in Netscape Communicator 6,
+ provided that you avoid calls to the AppletContext showStatus() method.
In other words, you can remove the showStatus() calls
+ from org.apache.xalan.client.XSLTProcessorApplet, and run &xslt4j;
applets from Netscape Communicator 6. This appears to be a
+ Netscape bug, which hopefully will be fixed soon. For more information,
see
+ <jump
href="http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3231">Bugzilla bug
3231</jump>.</p>
+</s3>
</s2><anchor name="servlet"/>
<s2 title="Using &xslt4j; in a servlet">
<p>You can set up a servlet to use &xslt4j; to respond to requests for XML
documents by transforming those documents into HTML and serving them to web
browsers. To respond to HTTP GET requests, all you need to do is overwrite the
HttpServlet doGet() method with a procedure that instantiates a Transformer and
uses it to perform a transformation. As the following example shows, you can
generate a ResultStream that a PrintWriter writes to the HttpResponse
OutputStream, returning the transformation output to the web browser.</p>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]