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

load the next node value

Subject: load the next node value
From: Dionisio Ruiz de Zárate <dionisio@xxxxxxxxxxxxx>
Date: Wed, 8 Sep 2004 17:37:08 +0200
xslt next node
Hello y have the bellow XML file.
i want, using xslt to test if there is one node with the name
composicioninformacion_alias and  value autor_1
if there is i get the value of it metadatosinformacion_texto
i made it with the next xslt file.
but i want to test , when i test there there is one node with the name
composicioninformacion_alias and  value autor_1, that there is or not one
node with the name (composicioninformacion_alias) and value link_autor_1, if
exist i want to load it metadatosinformacion_texto value for making one link
(<a href="metadatosinformacion_texto of the link_autor_1 node">link</a>).

is posible?
can you help me?

thanks



<?xml version="1.0" encoding="ISO-8859-1"?>
<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/composicioninformacion/sn_c
omposicioninformacion">
<xsl:choose>
<xsl:when test="composicioninformacion_aliasnvolucion='autor_1'">
<span class="lognameabout">1. Autorea: </span>
<span class="navnumber">
<xsl:value-of select="metadatosinformacion_texto"
disable-output-escaping="yes"/><br />
</span>







XML FILE:


<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<sn_servicioproyecto>
<sn_masterinformacion>
<composicioninformacion>
<sn_composicioninformacion>
<composicioninformacion_alias><![CDATA[autor_1]]></composicioninformacion_al
ias>
<metadatosinformacion_texto><![CDATA[qqqqqqqqqqqqqqqqq]]></metadatosinformac
ion_texto>
</sn_composicioninformacion>
<sn_composicioninformacion>
<composicioninformacion_alias><![CDATA[link_autor_1]]></composicioninformaci
on_alias>
<metadatosinformacion_texto><![CDATA[1]]></metadatosinformacion_texto>
</sn_composicioninformacion>
<sn_composicioninformacion>
<composicioninformacion_alias><![CDATA[organizacion_autor_1]]></composicioni
nformacion_alias>
<metadatosinformacion_texto><![CDATA[2]]></metadatosinformacion_texto>
</sn_composicioninformacion>
<sn_composicioninformacion>
<composicioninformacion_alias><![CDATA[link_organizacion_autor_1]]></composi
cioninformacion_alias>
<metadatosinformacion_texto><![CDATA[3]]></metadatosinformacion_texto>
</sn_composicioninformacion>
<sn_composicioninformacion>
<composicioninformacion_alias><![CDATA[autor_2]]></composicioninformacion_al
ias>
<metadatosinformacion_texto><![CDATA[4]]></metadatosinformacion_texto>
</sn_composicioninformacion>
<sn_composicioninformacion>
<composicioninformacion_alias><![CDATA[link_autor_2]]></composicioninformaci
on_alias>
<metadatosinformacion_texto><![CDATA[5]]></metadatosinformacion_texto>
</sn_composicioninformacion>
<sn_composicioninformacion>
<composicioninformacion_alias><![CDATA[organizacion_autor_2]]></composicioni
nformacion_alias>
<metadatosinformacion_texto><![CDATA[6]]></metadatosinformacion_texto>
</sn_composicioninformacion>
</composicioninformacion>
</sn_masterinformacion>
</sn_servicioproyecto>

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.