aspose file tools*
The moose likes XML and Related Technologies and the fly likes nested xsl:for-each in a table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "nested xsl:for-each in a table" Watch "nested xsl:for-each in a table" New topic
Author

nested xsl:for-each in a table

Donald R. Cossitt
buckaroo
Ranch Hand

Joined: Jan 31, 2003
Posts: 401
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 ]

doco
Elizabeth Lester
Ranch Hand

Joined: Aug 14, 2001
Posts: 129
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

Joined: Jun 26, 2001
Posts: 403
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

Joined: Jan 31, 2003
Posts: 401
Thanks all - adding the nested table was the trick I was looking for
 
jQuery in Action, 2nd edition
 
subject: nested xsl:for-each in a table