Jump to content

how to do this


shulin
 Share

Recommended Posts

Hi:Suppose I have an XML like this:<root> <element A> <element A1> <\elementA1> <element A2> <elementA21> <\elementA21> .... <elemntA210> <\elementA210> <\element A2> <\element A> <element B> <element B1> ... <\element B1> <element B2> ... <element B2> <\element B> <\root>I would to display them on IE as:+A+BWhen I click on + in front of A it will expand into:- A + A1 +A2+BAnd I can expand A1 and A2 further or collapse them accordingly.How do I do it using XSLT?Thanks.shu-lin

Link to comment
Share on other sites

XSLT is a transformation language. It has nothing to do with interaction (i.e. it can't react on user events such as the press of a key).Show me how you'd do it in HTML and JavaScript, and I'll show you the XSLT to generate that HTML and JavaScript with XSLT from any XML.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...