dleslie     99/12/14 11:02:47

  Modified:    samples/applet client.html
  Log:
  corrected ref to xalanApplets.xml
  
  Revision  Changes    Path
  1.2       +10 -11    xml-xalan/samples/applet/client.html
  
  Index: client.html
  ===================================================================
  RCS file: /home/cvs/xml-xalan/samples/applet/client.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- client.html       1999/12/14 16:41:41     1.1
  +++ client.html       1999/12/14 19:02:46     1.2
  @@ -4,13 +4,12 @@
          <title>Untitled</title>
     </head>
     <script language="JavaScript">
  -    var escString ="";
  -    var target ="";
  +
       function writeSource()
       {
  -      var sourceString = xslControl.getSourceTreeAsText();
  -      escString = xslControl.escapeString(sourceString);
  -      title ="XML Source Doc";
  +      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>");
  @@ -23,8 +22,8 @@
       function writeStylesheet()
       {
         var styleString = document.xslControl.getStyleTreeAsText();
  -      escString = document.xslControl.escapeString(styleString);
  -      title ="XSL Stylesheet";
  +      var escString = document.xslControl.escapeString(styleString);
  +      var title ="XSL Stylesheet";
         var doc = top.frames[2].document;          
         doc.open();
         doc.write("<h3>" + title + "</h3>");
  @@ -36,7 +35,7 @@
   
       function writeTarget(target)
       {
  -      doc = top.frames[3].document;
  +      var doc = top.frames[3].document;
         doc.open();
         var title = "HTML Output";      
         doc.write("<h3>" + title + "</h3>");
  @@ -46,7 +45,7 @@
         }
         else // display source
         {
  -        escString = document.xslControl.escapeString(target);
  +        var escString = document.xslControl.escapeString(target);
           doc.write("<PRE>");
           doc.write(escString);
           doc.write("</PRE>");
  @@ -71,7 +70,7 @@
         clearFrames();
         var 
xmlSource=document.xmlTransform.xmlSourceList.options[document.xmlTransform.xmlSourceList.selectedIndex].value;
         document.xslControl.setDocumentURL(xmlSource);
  -      target = document.xslControl.getHtmlText();
  +      var target = document.xslControl.getHtmlText();
         writeSource();
         writeStylesheet();
         writeTarget(target);
  @@ -114,7 +113,7 @@
         archive ="xalan.jar,../xml-xerces/xerces.jar"
         height="0"
         width"0">
  -      <param name="documentURL" value="aboutXalanApplets.xml"/>  <!--default 
setting-->
  +      <param name="documentURL" value="xalanApplets.xml"/>  <!--default 
setting-->
         <param name="styleURL" value="s1ToHTML.xsl"/> <!--doesn't change-->
       </applet>
     </body>
  
  
  

Reply via email to