*** Original/src/c/xsldbg	Wed Nov 28 22:38:19 2001
--- RISCOS/c/xsldbg	Thu Nov 29 21:38:08 2001
***************
*** 114,119 ****
--- 114,120 ----
  #  endif
  #endif
  
+ int xslDebugStatus; /* JRF: This does not appear to be defined in any file */
  
  xmlParserInputPtr xmlNoNetExternalEntityLoader(const char *URL,
                                                 const char *ID,
***************
*** 740,746 ****
          } else {
              /* Some sort of problem loading source file has occured. Quit? */
              if (xslDebugStatus == DEBUG_RUN) {
!                 xslDebugStatus = DEBUG_QUIT;    /* Pannic!! */
                  result = 0;
              } else {
                  /*goto a xsldbg command prompt */
--- 741,747 ----
          } else {
              /* Some sort of problem loading source file has occured. Quit? */
              if (xslDebugStatus == DEBUG_RUN) {
!                 xslDebugStatus = DEBUG_QUIT;    /* Panic!! */
                  result = 0;
              } else {
                  /*goto a xsldbg command prompt */
***************
*** 750,756 ****
  
          if (showPrompt && isOptionEnabled(OPTIONS_SHELL)) {
              xmlDocPtr tempDoc = xmlNewDoc((xmlChar *) "1.0");
! 	    xmlNodePtr tempNode = xmlNewNode(NULL, "xsldbg_default_node");
  	    if (!tempDoc || !tempNode){
  	      xsldbgFree();
  	      exit(1);		  
--- 751,757 ----
  
          if (showPrompt && isOptionEnabled(OPTIONS_SHELL)) {
              xmlDocPtr tempDoc = xmlNewDoc((xmlChar *) "1.0");
! 	    xmlNodePtr tempNode = xmlNewNode(NULL, (xmlChar *)"xsldbg_default_node");
  	    if (!tempDoc || !tempNode){
  	      xsldbgFree();
  	      exit(1);
***************
*** 951,960 ****
      }
  
      if (isOptionEnabled(OPTIONS_TIMING) && (xslDebugStatus != DEBUG_QUIT)) {
!         long msec;
! 	endTimer("Parsing document %s", path, msec);
!         xsltGenericError(xsltGenericErrorContext,
!                          "Parsing document %s took %ld ms\n", path, msec);
      }
      return doc;
  }
--- 952,958 ----
      }
  
      if (isOptionEnabled(OPTIONS_TIMING) && (xslDebugStatus != DEBUG_QUIT)) {
! 	endTimer("Parsing document %s", path);
      }
      return doc;
  }
