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:
  #1  
Old April 21st, 2004, 09:39 AM
iainfreestone iainfreestone is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 5 iainfreestone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h
Reputation Power: 0
accessing data in node like an accessing data in an array

Hi

I have in my xml nodes that are created from arrays(in flash)

suchs as

<eval9>11,11,11,108,11,0,0</eval9>

When i am creating an XSL page I want to treat the data which is separted by the commas like an array. For example with code above I want to create a table with each value in a separted <td>. So it would look like

11
11
11
108
11
0
0

Does anyone know if i this is possible with xsl???

Thanks Iain

Reply With Quote
  #2  
Old April 23rd, 2004, 07:29 AM
fpmurphy fpmurphy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: USA
Posts: 262 fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 23 h 28 m 59 sec
Reputation Power: 6
Yes, it is possible. In XSLT1, what you have to do is tokenize the string into
a RTF (result tree fragment) and then process the fragments. Do a Web
search for "xsl tokenize" and you will find a number of examples.

Reply With Quote
  #3  
Old April 23rd, 2004, 03:56 PM
iainfreestone iainfreestone is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 5 iainfreestone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h
Reputation Power: 0
cheers i will check that out

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > accessing data in node like an accessing data in an array


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