Subject: RE: Problems with XSL code From: "Darrin Bishop" <dbishop@xxxxxxxxxxxxxxxxx> Date: Wed, 27 Sep 2000 15:15:37 -0500 |
Marcos, if you include an output file that you would like to end up with, those on the list will be able to help you with out make many guesses about what you are trying to achieve. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Marcos Coelho Sent: Wednesday, September 27, 2000 3:13 PM To: xsl-list@xxxxxxxxxxxxxxxx Subject: Problems with XSL code Hi Friends, I've been delevoping a XML and XSL file but it is not working properly yet.I want to pick each <NOTICAS> atributes like <TITULO> <TIPO> <DATA> <HORA> ... and put it into table rows Thanks in Advance Marcos Coelho ---------------- XSL File --------------- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <html> <head> <title>XML --> XSL ---> HTML </title> </head> <body> <xsl:value-of select="COSMO/NOTICAS"> <table> <tr> <td><xsl:for-each select="DATA"></xsl:for-each></td> <td><!-- 1 col --><xsl:for-each select="TITULO"></xsl:for-each></td> <td><!-- 2 col --><xsl:for-each select="DATA"></xsl:for-each></td> <td><!-- 3 col --><xsl:for-each select="HORA"></xsl:for-each></td> <td><!-- 4 col --><xsl:for-each select="CONTEUDO"></xsl:for-each></td> <td><!-- 5 col --><xsl:for-each select="AUTOR"></xsl:for-each></td> <td><!-- 6 col --><xsl:for-each select="CODIGO"></xsl:for-each></td> <td><!-- 7 col --><xsl:for-each select="TIPO"></xsl:for-each></td> </tr> </table> </xsl:value-of> </body> </html> </xsl:stylesheet> ---------------- XML File --------------- <NOTICIAS> <TITULO>Coca-Cola tem exclusividade em Sydney</TITULO> <DATA>19/09/00</DATA> <TIPO>Economia</TIPO> <AUTOR>COSMO ON LINE</AUTOR> <CODIGO>03</CODIGO> <HORA>10:08 </HORA> <CONTEUDO>A marca de refrigerantes Coca-Cola </CONTEUDO> </NOTICIAS> <NOTICIAS> <TITULO>Jaqueta de Hendrix vale US$ 28 mil</TITULO> <DATA>19/09/00</DATA> <TIPO>Geral</TIPO> <AUTOR>COSMO ON LINE</AUTOR> <CODIGO>01</CODIGO> <HORA>11:00 </HORA> <CONTEUDO>Uma jaqueta que pertenceu a Jimi </CONTEUDO> </NOTICIAS> <NOTICIAS>....... __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Problems with XSL code, Marcos Coelho | Thread | using <xsl:variable>, Dhruv Raheja |
Re: Performing an expression on att, Nick Browne | Date | Escaping characters from my XML, Lee Bierman |
Month |