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

RE: How do I access the XML document

Subject: RE: How do I access the XML document
From: "ciaran byrne" <ciaran.byrne@xxxxxxx>
Date: Sat, 11 Nov 2000 12:27:49 -0800
transformer.createprocessor
u need to pass it in your XML document element.
So the steps would be:

1. Declare your XML DOM
 dom = new ActiveXObject
('MSXML2.FreeThreadedDOMDocument');
            dom .async = false;
            dom .load('Test.xml');
2. Do your processing as below for the stylesheets with ....
xslProc.input = dom.documentElement;

Hope this helps..

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of
Bharat.Chintapally@xxxxxxxxxxxxxxxxx
Sent: Friday, November 10, 2000 7:31 AM
To: XSL-List@xxxxxxxxxxxxxxxx
Subject: How do I access the XML document


Hello:
     I am trying to come up with a paging mechanism using MSXML3 on IE 5.5.
I am unable to access the current XML document. I am planning to set some
variables on stylesheet and re-apply the stylesheet to the same (this) xml
document.  I am not clear about the document object hierarchy.  I tried to
figure this out from XMLSDK but there was not much.  In the following code
I am unable to specify the input source for the XSL Processor.

          function displayPage(startRow, endRow) {

            var sourceDoc = null;
            var styleSheet = null;
            var transformer =null;
            var xslProc     = null;
            alert('sairam1');

            styleSheet = new ActiveXObject
('MSXML2.FreeThreadedDOMDocument');
            styleSheet.async = false;
            styleSheet.load('Test.xsl');
            transformer = new ActiveXObject('MSXML2.XSLTemplate');
            transformer.stylesheet = styleSheet;
            xslProc = transformer.createProcessor();
            xslProc.input = XMLDOM; // <<<<<<<<<< Failing right here
            xslProc.addParameter('startRow', '3');
            xslProc.addParameter('endRow', '4');
            xslProc.transform();
            Table.innerHTML = xslProc.output;
          }

Any help or pointers are appreciated..

Thanks
--bharat
---------------------------------------------------------------
Bharat Chintapally
CommerceQuest Inc.
bharat.chintapally@xxxxxxxxxxxxxxxxx
New Phone # 813-639-6478
---------------------------------------------------------------


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



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.