xsl-list
[Top] [All Lists]

Re: please help to obtain the next node value

2004-04-27 15:04:15
i have the bellow xml, and i cannot from the fist sn_paginas node to load
the second, third........ n  sn_paginas/pagina_titulo value.
can you help me?
i am trying to load it with the next xsl code:

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="html" version="1.0" encoding="ISO-8859-1" indent="yes"
omit-xml-declaration="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<xsl:for-each select="sn_servicioproyecto/sn_masterinformacion/paginas">
<table width="512" border="0" cellpadding="10">
<tr>
<td class="titulo"><xsl:value-of select="sn_paginas/paginas_titulo"
disable-output-escaping="yes"/></td>
</tr>
<tr>
<td class="txt"><table width="162" border="0" align="right"
cellpadding="10">
<tr>
<td><table width="162" border="0" cellpadding="0" cellspacing="0"
class="pasti">
<tr>
<td class="pasti_ac"><xsl:value-of select="sn_paginas/paginas_titulo"
disable-output-escaping="yes"/></td>
</tr>

<!-- here i want to load the next paginas_titulo nodes, their values, all
the nodes -->
<tr>
<td class="pasti_me"><a href="ant.jsp" class="pastil">
<xsl:value-of
select="/sn_servicioproyecto/sn_masterinformacion/paginas/sn_paginas/paginas
_titulo"/>
</a></td>
</tr>

</table></td>
</tr>
</table>
<p><xsl:value-of select="parrafos/sn_parrafos/parrafo_texto"
disable-output-escaping="yes"/></p>
</td>
</tr>
</table>
</xsl:for-each>


//the xml is:

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<sn_servicioproyecto>
  <sn_masterinformacion>
    <paginas>
      <sn_paginas>
        <pagina_id><![CDATA[748]]></pagina_id>
        <paginas_titulo><![CDATA[Primeras
investigaciones]]></paginas_titulo>
      </sn_paginas>
      <sn_paginas>
        <pagina_id><![CDATA[749]]></pagina_id>
        <paginas_titulo><![CDATA[El PRGF de Bti]]></paginas_titulo>
      </sn_paginas>
    </paginas>
   <sn_paginas>
        <pagina_id><![CDATA[759]]></pagina_id>
        <paginas_titulo><![CDATA[mas cosas]]></paginas_titulo>
      </sn_paginas>
  </sn_masterinformacion>
</sn_servicioproyecto>
----- Original Message ----- 
From: "David Carlisle" <davidc(_at_)nag(_dot_)co(_dot_)uk>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, April 27, 2004 5:58 PM
Subject: Re: [xsl] please help to obtain the next node value



  but how can i get , from the first file node the second main node value?
  thanks

following-sibling::file[1]/main

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--







<Prev in Thread] Current Thread [Next in Thread>