Re: [xsl] problem for extracting information using xsl from one xml, please help me

Subject: Re: [xsl] problem for extracting information using xsl from one xml, please help me
From: "Miren Urkixo" <miren@xxxxxxxxxxxxx>
Date: Mon, 12 Nov 2007 23:40:42 +0100
well, thanks for your answer.
tha out put is some like this:
<table class="cabeceratabla" width="99%">
<tr>
 <td width="33%"><input type="checkbox" name="titulorevista"
value="titulo1">titulo1<br>precio: 3</td>
 <td width="33%"><input type="checkbox" name="titulorevista"
value="titulo2">titulo2<br>precio: 3</td>
 <td width="33%"><input type="checkbox" name="titulorevista"
value="titulo3">titulo3<br>precio: 3</td>
</tr>
more tr......
</table>

into the xml there are a lot of blocks like this:
<sn_composicioninformacion>
<composicioninformacion_alias>titulo</composicioninformacion_alias>
<metadatosinformacion_texto> 1 Invierno 2002/03
NEGUA</metadatosinformacion_texto>
</sn_composicioninformacion>
<sn_composicioninformacion>
<composicioninformacion_alias>estado</composicioninformacion_alias>
<metadatosinformacion_texto>false</metadatosinformacion_texto>
</sn_composicioninformacion>
<sn_composicioninformacion>
<composicioninformacion_alias>precio</composicioninformacion_alias>
<metadatosinformacion_texto>3</metadatosinformacion_texto>
</sn_composicioninformacion>
<sn_composicioninformacion>
<composicioninformacion_alias>total_de_paginas</composicioninformacion_alias>
<metadatosinformacion_texto>105</metadatosinformacion_texto>
</sn_composicioninformacion>


if the node composicioninformacion_alias has the value estado and the next node metadatosinformacion_texto has the value true i want to paint input type="checkbox" name="titulorevista" value="titulo1"> else no
the titulo1 is the value of the node metadatosinformacion_texto whe the node composicioninformacion_alias has the value titulo.
and this is all
i want to paint into three columns into one table.


can ytou help me?
thanks





----- Original Message ----- From: "Michael Kay" <mike@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, November 12, 2007 11:27 PM
Subject: RE: [xsl] problem for extracting information using xsl from one xml, please help me



i have one great problem and is this:
i load the node sn_masterinformacion i know that into this
node there are several sn_composicioninformacion nodes ant i
wato to load the correspondiente to:
composicioninformacion_alias: metadatosinformacion_texto i
want to load the value of composicioninformacion_alias and
the value of metadatosinformacion_texto

I'm afraid I don't understand this statement of the problem, and your large
amount of XML hasn't helped my understanding. It might be best to construct
a foo-bar example that illustrates the problem in a simple way, without
confusing it with hundreds of lines of data and long element names. I
suspect it is a very simple problem if only you could explain it clearly.


Michael Kay
http://www.saxonica.com/

Current Thread