SunQuest
           XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 12th, 2003, 11:45 AM
Mobius Man's Avatar
Mobius Man Mobius Man is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 98 Mobius Man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 15 sec
Reputation Power: 6
Newbie biting of more than he can chew...

Ok, I have an XML file of a TV schedule. That has no problems. However, its the freakin XSL file that's driving me mad. I want it to print out the schedule in a nice table format. I have a few variables (I think 2). One if time of week, which just prints out whethers its weekday, saturday, or sunday. The other thing is whether the show is in an AM or PM time slot.

The other problem I have is it either just prints out 1 block (I want it to keep printing out the entire XML file until there isn't anything else. And, well, then theres the problem with the link thing I'm trying to make.

Here, you guys look at it...
Attached Files
File Type: xml schedule.xml (2.6 KB, 414 views)

Reply With Quote
  #2  
Old June 12th, 2003, 12:37 PM
Mobius Man's Avatar
Mobius Man Mobius Man is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 98 Mobius Man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 15 sec
Reputation Power: 6
Thnaks! That's awesome. My only question is how to make it do all the show and times in a block.

For example, I have all this as a block:

Code:
<block type="Other" when="weekday">
<time tod="AM">7:00</time>
<show>Hamtaro</show>
<link src="http://www.cartoonnetwork.com/watch/tv_shows/hamtaro/" />

<time tod="AM">9:00</time>
<show>Pokemon</show>
<link>http://www.cartoonnetwork.com/watch/tv_shows/pokemon/</link>

<time tod="PM">2:00</time>
<show>Hamtaro</show>
<link>http://www.cartoonnetwork.com/watch/tv_shows/hamtaro/</link>

<time tod="PM">9:00</time>
<show>Pokemon</show>
<link>http://www.cartoonnetwork.com/watch/tv_shows/pokemon/</link>
</block>



However, it only displays the first section (the 1st Hamtaro). I want it to go through all the shows in that block.

Reply With Quote
  #3  
Old June 12th, 2003, 01:54 PM
Mobius Man's Avatar
Mobius Man Mobius Man is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 98 Mobius Man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 15 sec
Reputation Power: 6
That works perfectly! Thanks a lot!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Newbie biting of more than he can chew...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway