Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xslt - parsing half a document

Status
Not open for further replies.

rxg00u

Programmer
Apr 11, 2002
16
GB
hi there,
im using a xsl to style a particular xml document and was wondering if there is a way to style and transform half the document and then proceed with the second half on a particular command like a button click from the user, so when displayed in a browser only half the document appears with a button and when the user clicks the button the rest of the document is displayed.
thanks for your time
rakesh
 
In Microsoft Internet Explorer you can do that by using Javascript to control a MSXML ActiveX control for handling the XML/XSLT transformation.

It would look somethink like this:

Code:
function onMyButtonClick(){
  document.getElementById("myDiv").innerHTML =
    oXsl.transform( oXml);
}

There are many more details of course. You can find tons of examples at as well as many other web sites

[sub]google "javascript MSXML transform"[/sub]

hope that helps
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top