Subject: [xsl] from one node get the next node value with the same name From: Dionisio Ruiz de Zárate <dionisio@xxxxxxxxxxxxx> Date: Thu, 26 Aug 2004 03:49:26 +0200 |
hello i have the next xml file and from one node i want to load the next node with the same name. but it doesn't show me the next node value. the xml file is: <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <sn_servicioproyecto> <masterinformaciones> <sn_masterinformacion> <composicioninformacion> <sn_composicioninformacion> <composicioninformacion_aliasnvolucion><![CDATA[titulo]]></composicioninform acion_cc> <metadatosinformacion_texto><![CDATA[Negorta (Zuhatza) - 2004]]></metadatosinformacion_texto> </sn_composicioninformacion> <sn_composicioninformacion> <composicioninformacion_aliasnvolucion><![CDATA[titulo_secundario]]></compos icioninformacion_cc> <metadatosinformacion_texto><![CDATA[AIARAKO V. JARDUNALDI HISTORIKOAK]]></metadatosinformacion_texto> </sn_composicioninformacion> </composicioninformacion> </sn_masterinformacion> </masterinformaciones> </sn_servicioproyecto> i want to load, to show this: a.. Negorta (Zuhatza) - 2004 (AIARAKO V. JARDUNALDI HISTORIKOAK) for this i have the next xslt file: <?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="/sn_servicioproyecto"> Hauexek dira dituzun <xsl:value-of select="sn_servicioproyectodetalles/servicioproyectodetalle_titulo" disable-output-escaping="yes"/><br/> <ul> <xsl:for-each select="masterinformaciones/sn_masterinformacion"> <xsl:choose> <xsl:when test="composicioninformacion/sn_composicioninformacion/composicioninformacio n_cc='titulo'"> <li><xsl:value-of select="composicioninformacion/sn_composicioninformacion/metadatosinformacio n_texto" disable-output-escaping="yes"/> (<xsl:value-of select="normalize-space(following-sibling::composicioninformacion/sn_composi cioninformacion/metadatosinformacion_texto)" disable-output-escaping="yes"/>)</li> </xsl:when> </xsl:choose> </xsl:for-each> </ul> </xsl:template> </xsl:stylesheet> can you help me please?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL and infinite loops, J-P S | Thread | Re: [xsl] from one node get the nex, Josh Canfield |
[xsl] XSL and infinite loops, R. Guide | Date | Re: [xsl] from one node get the nex, Josh Canfield |
Month |