XSL Question Please Help Sorry I'm still learning
-
I would hope anyone can help me understand a certain problem I am currently having with a small piece of code. I would be very grateful if anyone could give me some ideas on how I could structure my XSL template to produce an output similar to the following table given the attached Test.xml source. I seem to be using for-each and the priority attribute but cant pinpoint where to place it correctly. View the Test.xml source at : http://www.angelfire.com/pro/atbgmxsl/Test.xml Required result in table format is : ASXCode Company Name Company Statistics/Interim Dates Annual Balance Sheet/Cash RWS Rothbury Wines Limited -- 99,000 OCO Oriel Communications Limited 12/2002 97,065 NRL Newland Resources Limited 12/2002 95,143 MCL M2M Corporation Limited 12/2002 95,033 SUP Supersorb Environment NL 12/2002 94,328
-
I would hope anyone can help me understand a certain problem I am currently having with a small piece of code. I would be very grateful if anyone could give me some ideas on how I could structure my XSL template to produce an output similar to the following table given the attached Test.xml source. I seem to be using for-each and the priority attribute but cant pinpoint where to place it correctly. View the Test.xml source at : http://www.angelfire.com/pro/atbgmxsl/Test.xml Required result in table format is : ASXCode Company Name Company Statistics/Interim Dates Annual Balance Sheet/Cash RWS Rothbury Wines Limited -- 99,000 OCO Oriel Communications Limited 12/2002 97,065 NRL Newland Resources Limited 12/2002 95,143 MCL M2M Corporation Limited 12/2002 95,033 SUP Supersorb Environment NL 12/2002 94,328
Just a quick shot at it <table> <xsl:for-each select="root/ResultSet/Record"> <tr> <xsl:for-each select="Column"> <td><xsl:value-of select="." /></td> </xsl:for-each> </tr> </xsl:for-each> </table>