This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems with XSL, XML code


On Tue, 3 Oct 2000, Marcos Coelho wrote:

> Hi My Friends,
> I felt I was not very clear, so I made an Webpage where I explainedmy
> problem better I wish.
> There I put my XML, XSL, and the OUT PUTS files which I want and what I
> got!
> The address is
> http://www.geocities.com/marcos_coelho/xml/doubt.htm

From the page: you have

> <CONTEUDO>A marca de refrigerantes Coca-Cola fechou um contrato de
> aproximadamente US$ 1 bilhão como Comitê </NOTICIAS>

instead of:
<CONTEUDO>A marca de refrigerantes Coca-Cola fechou um contrato de
aproximadamente US$ 1 bilhão com o Comitê </CONTENUDO></NOTICIAS>

Page:

> <xsl:value-of select="COSMO/NOTICAS">
> <xsl:template match="COSMO">

IMO that should be the other way round:

<xsl:template match="COSMO">
...
 <xsl:for-each select="NOTICAS">
 ...
 </xsl:for-each>
</xsl:value-of> 

I think you don't need the first:

> <xsl:value-of select="COSMO/NOTICAS">

*t

----------------------------------------------------------------------------
             Tomas Pospisek
	     SourcePole   -  Linux & Open Source Solutions
	     Elestastrasse 18, 7310 Bad Ragaz, Switzerland
	     Tel: +41 (81) 330 77 11
----------------------------------------------------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]