OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
XSLT Troubles
This page's ID:
26081
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hey Dan, Thanks a lot for your help. That did the trick. I'm not sure how I got confused with the level I needed to take for-each to, but it's all cleared up now. Once again, thanks for the help! For reference, the corrected XSL file now looks like: [code] <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head> <title><xsl:value-of select="report/title" /></title> </head> <body> <h2><xsl:value-of select="report/title" /></h2> <h3> <xsl:for-each select="report/salescodes/code"> <xsl:value-of select="." />, </xsl:for-each> </h3> <table border="1"> <tr bgcolor="#9acd32"> <th align="left">Requirements</th> <xsl:for-each select="report/headers/header"> <th align="left"><xsl:value-of select="." /></th> </xsl:for-each> <th align="left">Total</th> </tr> <xsl:for-each select="report/models/model"> <tr> <td><xsl:value-of select="modelyear" /></td> <td><xsl:value-of select="accum" /></td> <xsl:for-each select="months/month"> <td><xsl:value-of select="." /></td> </xsl:for-each> <td><xsl:value-of select="total" /></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> [/code]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »