[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Loading XML(time delay)

Subject: Loading XML(time delay)
From: "Fran" <franciscojose@xxxxxxxxxxx>
Date: Fri, 28 Mar 2003 16:31:39 +0100
xml delay
Hi list, this is not exactly a XSLT question but I hope that anybody can
help me.
I'm loading from Javascript an XML and I transform this XML. I build the XML
with PHP querying a BD but my XML delays a few seconds. I want to put a
progress bar while the XML loads and finally transform it with my XSLT but I
don't know how I can do this. Is there any property or similar to control
the XML time. I know the  "onreadystatechange" and "async" propertys but I
don't know if there is another function or If I can do something with this.
I have a Inc() function to incrementate my progress bar.
This is the first time I work with XSLT and my code works fine but I don't
know if is the best way to transform the XML... Any sugestion about my code
and about the progress bar, please ??.

Thanks a lot in advance.

This is my code:

function TransformXML(Order,NumberPage,MaxPerPage){
   XSLStylesheet = new ActiveXObject("Msxml2.XSLTemplate");
   XSLStylesheet.stylesheet = XSLDOM;
   XSLTProcessor = XSLStylesheet.createProcessor();
   XSLTProcessor.input = XMLDOM;
   XSLTProcessor.addParameter('sortMethod', Order);
   XSLTProcessor.addParameter('RecordsPerPage', MaxPerPage);
   XSLTProcessor.addParameter('PageNumber', NumberPage);

function CheckXML_XSL(){
   if ((xml_datosXML_completo == true) && (xml_datosXSL_completo == true)) {
       DivLoading.style.display = 'none';
       DivTablaDisponibilidad.style.display = 'block';

function DoXSLComplete() {
   if (XSLDOM.readyState == 4) {
      xml_datosXSL_complete = true;

function DoXMLComplete() {
   if (XMLDOM.readyState == 4) {
      xml_datosXML_complete = true;

function LoadXSLT() {
   xml_datosXSL_completo = false;
   XSLDOM = new ActiveXObject("Msxml2.FreeThreadedDOMDocument");
   XSLDOM.onreadystatechange = DoXSLComplete;
   XSLDOM.async = true;
   XSLDOM.load('<?echo $my_XSLT_Path;?>Disponibility.xslt');

function LoadXML() {
   xml_datosXML_completo = false;
   XMLDOM = new ActiveXObject("Msxml2.FreeThreadedDOMDocument");
   XMLDOM.onreadystatechange = DoXMLComplete;
   XMLDOM.async = true;
   XMLDOM.load('<?echo $my_XML_Path;?>Disponibility.xml');

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.