dleslie 99/12/15 11:32:43
Modified: samples/applet client.html xalanApplets.xml
Log:
removed codebase from applet and revised archive.
updated xml file to refer to getHtmlText().
Revision Changes Path
1.4 +17 -18 xml-xalan/samples/applet/client.html
Index: client.html
===================================================================
RCS file: /home/cvs/xml-xalan/samples/applet/client.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- client.html 1999/12/14 20:29:42 1.3
+++ client.html 1999/12/15 19:32:43 1.4
@@ -9,10 +9,10 @@
function writeSource()
{
- var sourceString = document.xslControl.getSourceTreeAsText();
- var escString = document.xslControl.escapeString(sourceString);
- var title ="XML Source Doc";
- var doc = top.frames[1].document;
+ var sourceString=document.xslControl.getSourceTreeAsText();
+ var escString=document.xslControl.escapeString(sourceString);
+ var title="XML Source Doc";
+ var doc=top.frames[1].document;
doc.open();
doc.write("<h3>" + title + "</h3>");
doc.write("<PRE>");
@@ -23,10 +23,10 @@
function writeStylesheet()
{
- var styleString = document.xslControl.getStyleTreeAsText();
- var escString = document.xslControl.escapeString(styleString);
- var title ="XSL Stylesheet";
- var doc = top.frames[2].document;
+ var styleString=document.xslControl.getStyleTreeAsText();
+ var escString=document.xslControl.escapeString(styleString);
+ var title="XSL Stylesheet";
+ var doc=top.frames[2].document;
doc.open();
doc.write("<h3>" + title + "</h3>");
doc.write("<PRE>");
@@ -37,9 +37,9 @@
function writeTarget()
{
- var doc = top.frames[3].document;
+ var doc=top.frames[3].document;
doc.open();
- var title = "HTML Output";
+ var title="HTML Output";
doc.write("<h3>" + title + "</h3>");
if (document.xmlTransform.displayMode[0].checked) //display HTML
{
@@ -47,7 +47,7 @@
}
else // display source
{
- var escString = document.xslControl.escapeString(target);
+ var escString=document.xslControl.escapeString(target);
doc.write("<PRE>");
doc.write(escString);
doc.write("</PRE>");
@@ -58,9 +58,9 @@
function clearFrames()
{
document.xslControl.freeCache();
- for (i= 1; i<4; i++)
+ for (i=1; i<4; i++)
{
- var doc = top.frames[i].document;
+ var doc=top.frames[i].document;
doc.open();
doc.clear();
doc.close();
@@ -72,7 +72,7 @@
clearFrames();
var
xmlSource=document.xmlTransform.xmlSourceList.options[document.xmlTransform.xmlSourceList.selectedIndex].value;
document.xslControl.setDocumentURL(xmlSource);
- target = document.xslControl.getHtmlText();
+ target=document.xslControl.getHtmlText();
// alert("Output: " + target);
writeSource();
writeStylesheet();
@@ -91,7 +91,7 @@
<tr>
<td></td>
<td align="center">
- <select name = "xmlSourceList">
+ <select name="xmlSourceList">
<option value="xalanApplets.xml"
selected> xalanApplets.xml
<option value="foo-s1.xml"> foo-s1.xml
</select>
@@ -107,13 +107,12 @@
</tr>
</table>
</form>
- <!-- Be sure you have applet codebase and archive attributes set
+ <!-- Be sure you have applet archive attribute set
so the applet can find xalan.jar and xerces.jar -->
<applet
name="xslControl"
code="org.apache.xalan.xslt.client.XSLTProcessorApplet.class"
- codebase="../../../"
- archive ="xml-xalan/xalan.jar,xml-xerces/xerces.jar"
+ archive="../../../xml-xerces/xerces.jar,../../xalan.jar"
height="0"
width"0">
<param name="documentURL" value="xalanApplets.xml"/> <!--default
setting-->
1.2 +1 -1 xml-xalan/samples/applet/xalanApplets.xml
Index: xalanApplets.xml
===================================================================
RCS file: /home/cvs/xml-xalan/samples/applet/xalanApplets.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- xalanApplets.xml 1999/12/14 16:41:41 1.1
+++ xalanApplets.xml 1999/12/15 19:32:43 1.2
@@ -17,7 +17,7 @@
stylesheet.</p>
</li>
<li>
- <p>Call the transformToHTML() method, which performs
+ <p>Call the getHtmlText() method, which performs
the transformation and returns the new document as a
String.</p>
</li>