shulin Posted October 12, 2007 Report Share Posted October 12, 2007 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 More sharing options...
boen_robot Posted October 12, 2007 Report Share Posted October 12, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now