|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSL transform to HTML when element names are unkno
That's pretty much it. A bit of slipping and sliding, and I've got the column headings on too. Thanks for you assistance. Dylan. How about: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:key name="tableData" match="Tables/*" use="local-name()"/> <xsl:template match="/"> <body> <xsl:apply-templates select="/Tables/*[generate-id() = generate-id(key('tableData', local-name())[1])]"/> </body> </xsl:template> <xsl:template match="*"> <table> <xsl:apply-templates select="key('tableData', local-name())" mode="content"/> </table> </xsl:template> <xsl:template match="*" mode="content"> <tr> <xsl:for-each select="*"> <td><xsl:value-of select="."/></td> </xsl:for-each> </tr> </xsl:template> </xsl:stylesheet> ======================================================= The contents of this message may express views and opinions not necessarily shared by Maroochy Shire Council. This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. Maroochy Shire Council is a government organisation and is subject to Freedom of Information legislation. You must assume that any material sent to Maroochy Shire Council may be monitored and may be accessible by persons other than the intended recipient. ======================================================= Note: Maroochy Shire Council does not accept multimedia or vulnerable file types such as executables, html or GIF files via email. Emails must be in English and under 10MB. mscmail5.1
|
Purchase Stylus Studio Online Today!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






