[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problems with XSL code

Subject: Problems with XSL code
From: Marcos Coelho <marcos_coelho@xxxxxxxxx>
Date: Wed, 27 Sep 2000 11:51:08 -0700 (PDT)
yahoo codigo 11
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.