Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

nested xsl:for-each in a table

 
Donald R. Cossitt
buckaroo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have reviewed the two 'bonehead' books I have on XML, Schemas, etc. Also an online XLS tutorial but have not found the answer to this problem. I have put together a sample XML & XLS file to test my skills?
XML file...

XSL file...

Output should be
Area District Rate Value
1 Name #.#### $$$$$
"" Name #.#### $$$$$
"" Name #.#### $$$$$
2 Name #.#### $$$$$
"" Name #.#### $$$$$
"" Name #.#### $$$$$
... ... ... ...

I am very green at this...as you can see :roll: I suppose I could use an list but this table thing has got me stubborn now.
TIA
[ September 23, 2003: Message edited by: Donald R. Cossitt ]
 
Elizabeth Lester
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Donald,
Try this instead for your stylesheet namespace:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
--liz
p.s. And you may want to try removing the slashes preceding the tags here:

and try it like this instead:

[ September 23, 2003: Message edited by: Elizabeth Lester ]
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how about this:
the xml data file

the xsl file


a file to perform transformation (should be able to run it in IE6)
 
Donald R. Cossitt
buckaroo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all - adding the nested table was the trick I was looking for
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic