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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 27th, 2003, 01:48 PM
PommieChick PommieChick is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 21 PommieChick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 55 sec
Reputation Power: 0
xsl:help!!!

Hi again

having just got started with XML/XSL, so far I think its pretty cool (p.s thanks ecolalia and cfgeek - very helpful advice last time)

here's my latest stumbling block. I have a xml file with a repeating pattern

<data>
<Company>Company 1</Company>
<Sales>"$100,000"</Sales>
</Data>
<data>
<Company>Company 2</Company>
<Sales>"$200,000"</Sales>
</Data>
<data>
<Company>Company 3</Company>
<Sales>"$300,000"</Sales>
</Data>
<data>
<Company>Company 4</Company>
<Sales>"$400,000"</Sales>
</Data>
.
.
.
.

what I am trying to do is loop through all the <data> elements and if the <sales> value is in the top 10, then i need to format the <company> text value as a hyperlink to an html file of the same name

can i do this? or do i need to add a link attribute to each of the <company> elements

any advice greatly appreciated

t.i.a


Reply With Quote
  #2  
Old May 27th, 2003, 06:13 PM
PommieChick PommieChick is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 21 PommieChick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 55 sec
Reputation Power: 0
Smile

thanks for the pointers, will get those implemented asap - heres hoping the XML gods are smiling for the math bit....

Reply With Quote
  #3  
Old May 27th, 2003, 07:12 PM
PommieChick PommieChick is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 21 PommieChick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 55 sec
Reputation Power: 0
Wink

we are not worthy to walk in the shadow of the XSL guru....

Reply With Quote
  #4  
Old May 27th, 2003, 07:23 PM
cfgeek cfgeek is offline
Hopeless Romantic
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Australia
Posts: 30 cfgeek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to cfgeek
Nice work echolalia! I learnt a few things looking through that.

Reply With Quote
  #5  
Old May 27th, 2003, 08:40 PM
PommieChick PommieChick is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 21 PommieChick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 55 sec
Reputation Power: 0
as the aussie's say..luv ya werk.
I've got it all plugged in and purring along nicely...

thanks again, my poor little brain cell can relax....until the next time...




Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > xsl:help!!!


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 6 hosted by Hostway