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

Re: please help to obtain the next node value

Subject: Re: please help to obtain the next node value
From: Dionisio Ruiz de Zárate <dionisio@xxxxxxxxxxxxx>
Date: Wed, 28 Apr 2004 00:04:15 +0200
xsl for each next
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@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, April 27, 2004 5:58 PM
Subject: Re:  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
> ________________________________________________________________________

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.