|
|
 |
| XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

December 27th, 2006, 02:16 PM
|
|
Registered User
|
|
Join Date: Dec 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hide/show rows in a table
Hi all.I have xml file: http://phpfi.com/188452 and report.xsl that is used to show xml file in browser: http://phpfi.com/188453. In xml file there is a table with one main task and two subtasks. How can i make that if you click on main task name you can colapse/expand subtasks below?
Any idea is welcome...
|

December 27th, 2006, 04:26 PM
|
 |
Wrox Author
Points: 12,738, Level: 48 |
|
|
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 3,924
Thanks: 0
Thanked 82 Times in 80 Posts
|
|
I think you are asking an HTML question rather than an XSLT question. Do you know how to write a dynamic HTML page that achieves this effect? (the usual way is for the onClick method to toggle the CSS class of the relevant elements to switch them from visible to hidden). If you do, then you can write an XSLT transformation that produces this HTML page as output. If you don't, then you need to ask on an HTML forum, not here. Never try to write an XSLT stylesheet, or a program in any other language, until you know what output you want it to produce - in this case, the output is an HTML page.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
|

December 27th, 2006, 05:10 PM
|
|
Registered User
|
|
Join Date: Dec 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
This is what i want to produce: http://www.ekcsoft.com/coding/js_hideexample.php. I can use the javascript form there but i don't know how to implement it in xsl stylesheet. I don't think this is html question because i know how to produce this using html but i don't know how to make this using xsl.
Thank you for your response.
|

December 27th, 2006, 05:28 PM
|
 |
Wrox Author
Points: 12,738, Level: 48 |
|
|
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 3,924
Thanks: 0
Thanked 82 Times in 80 Posts
|
|
Which part of the HTML are you finding it difficult to generate, and why?
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
|

December 28th, 2006, 07:52 AM
|
|
Registered User
|
|
Join Date: Dec 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Well, i don't know how to implement that javascript in xsl and make it work. I'm a c++ programmer and i need this just for reporting some data in browser, that is all. For more info check : http://timesaver.sourceforge.net/
It would be great if you could just help me make that script work on my table, because i don't have time to learn all about xsl...
|

December 28th, 2006, 07:09 PM
|
 |
Wrox Author
Points: 12,738, Level: 48 |
|
|
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 3,924
Thanks: 0
Thanked 82 Times in 80 Posts
|
|
Sorry, but if you don't have time to learn from me, then I certainly don't have time to teach you.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
|

December 28th, 2006, 08:48 PM
|
|
Registered User
|
|
Join Date: Dec 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
no problem, thank ypu for your respose.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |