[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] re: xsl stylesheet for shares table
Hi, I am new to xsl and I seem to be receiving an error associated with the text editor xml spy, it tells me that it is unable to reference a schema type. I was also curious as to the set-up of my xsl, I am trying to create a simple table with share prices, gains and losses etc... is this a correct format? I have duly commented out the stylesheet elements I want to use for the time being. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="/"> <html> <head> <title> <!--<span class="head">-->Irish Life Brokerage : ISEQ Share Prices <!--</span>--></title> <!-- <link href="share_feeds.css" rel="stylesheet" type="text/css"/> --> <hr width="400" height="2"/></head> <body> <table align="center" border="0" width="400" height="" border="1"> <tr> <td align="center"><!--<span class="p">-->Share Name<!--</span>--></td> <td align="center"><!--<span class="p">--> Symbol<!--</span>--></td> <td align="center"><!--<span class="p">--> Date<!--</span>--></td> <td align="center"><!--<span class="p">--> Current<!--</span>--></td> <td align="center"><!--<span class="p">--> Change<!--</span>--></td> <td align="center"><!--<span class="p">--> Previous<!--</span>--></td> <td align="center"><!--<span class="p">--> Year High<!--</span>--></td> <td align="center"><!--<span class="p">--> Year Low<!--</span>--></td> </tr> <!--<span class="p">--><xsl:apply-templates select="share"/><!--</span>--> <tr> <td align="center"><!--<span class="p">--> <value-of select="symbol"/> <!--</span>--></td> <td align="center"><!--<span class="p">--> <value-of select="date"/> <!--</span>--></td> <td align="center"><!--<span class="p">--> <value-of select="current"/> <!--</span>--></td> <td align="center"><!--<span class="p">--> <value-of select="change"/> <!--</span>--></td> <td align="center"><!--<span class="p">--> <value-of select="previous"/> <!--</span>--></td> <td align="center"><!--<span class="p">--> <value-of select="year_high"/> <!--</span>--></td> <td align="center"><!--<span class="p">--> <value-of select="year_low"/> <!--</span>--></td> </tr> </table> </body> </html> </xsl:template> </xsl:stylesheet> Thanxs, K.Byrne *********************************************************************** Private, confidential and privileged. This email and any attachments transmitted with it are confidential and/or privileged. They are intended for the sole use of the intended recipient. The content of this email and any file or attachment transmitted with it may have been changed or altered without the consent of the author. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, circulation or transmission of this email and/or any file or attachment transmitted with it, is prohibited and may be unlawful. If you have received this email or any attachment transmitted with it in error, please notify postmaster@xxxxxxxxx ************************************************************************ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|