This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Accessing the document.XSLDocument


I am trying to set couple of params on the stylesheet and reapply the
Stylesheet to the Document based on some user action (Paging), My
JavaScript function looks like the following (thanks to Jeni T) but I am
unable to access the object document.XSLDocument.

The MSXML doc says the following, but I am getting error that
document.XSLDocument is undefined when I try to access it.
     The document.XSLDocument property returns the root node of the XSLT
     style sheet document.

function displayPage(startRow, endRow) {
            XSLStylesheet = new ActiveXObject('Msxml2.XSLTemplate');

            XSLStylesheet.stylesheet = document.XSLDocument;  // Failing
here

            XSLTProcessor = XSLStylesheet.createProcessor();
            XSLTProcessor.input = XMLDOM;
            XSLTProcessor.addParameter('startRow', startRow);
            XSLTProcessor.addParameter('endRow', endRow);
            XSLTProcessor.transform();
}

Any pointers or ideas??

thanks
--bharat
---------------------------------------------------------------
Bharat Chintapally
CommerceQuest Inc.
bharat.chintapally@commercequest.com
New Phone # 813-639-6478
---------------------------------------------------------------


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]