Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
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 Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2007, 02:26 PM
Authorized User
 
Join Date: Mar 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Only first child displayed?

Hi Folks again!

I am getting closer! Take for example these xml/xsl files:

XML file: http://www.mamaliga.com/test/os_3_months.xml
XSL file: http://www.mamaliga.com/test/os_3_months.xsl

If you click on the rectangled cells' numbers (1, 3 and 4) you will see that it will display the @slot attributte only for the first "Time" element in the list.
However I would like to have all of them displayed per each day. For example:

Day 1
9:00 am
9:30 am
10:00 am
10:30 am
11:00 am

Day 3
10:30
11:00

... and so on.

Any ideas of what I might be doing wrong?

thanks!
Gabi.
 
Old March 8th, 2007, 11:31 AM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

I just tested this. - When I click on "open" all the @slot attributes are displayed.

 
Old March 8th, 2007, 11:50 AM
Authorized User
 
Join Date: Mar 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Bonekrusher,

Thanks a lot! In the mean time I fixed it. The <div> didn't liked being in the xsl:template. I changed it so that it is in the xsl:apply-templates and it is happy now.

For some curious reason I months of 10 weeks now - lol...

Thanks a ton!

Gabi.

 
Old March 8th, 2007, 11:53 AM
Authorized User
 
Join Date: Mar 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Fixed that also. It was in the path of calling the table body content. It is all fine now...

Thanks a lot for the answers and help!!!

Gabi

 
Old March 8th, 2007, 11:59 AM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

Thats a sweet javascript (toggle) - nice.


 
Old September 26th, 2007, 12:18 PM
Authorized User
 
Join Date: Mar 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A short follow up on this item... How should we make this work in Firefox?

Code:
    function toggleSibling()

    {
    if(window.event)

        {
            if (window.event.srcElement.nextSibling.style.display=="none")
                window.event.srcElement.nextSibling.style.display = "block";
            else
                window.event.srcElement.nextSibling.style.display = "none";
        }

    else
                // code for Mozilla, Firefox, Opera, etc. ????

        {
        alert('Your browser cannot handle this script');
        }

    }
thanks!
gabi.

 
Old September 27th, 2007, 03:14 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

No idea. Why don't you try one of the javascript or html forums instead of the xslt forum.

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
This control cannot be displayed prv299 ASP.NET 3.5 Professionals 0 September 2nd, 2008 03:50 AM
Opening MDI Child on Button Click of MDI Child Sachin Shinde Visual Studio 2005 0 June 8th, 2006 05:05 AM
data not being displayed goingmad SQL Server ASP 8 March 27th, 2006 03:36 AM
Why is it that the page cannot be displayed? gilgalbiblewheel Classic ASP Databases 2 April 10th, 2005 08:17 AM
Not getting "time" displayed in the first example dotnetabhi VS.NET 2002/2003 6 March 27th, 2004 11:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.