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

RE: problem for extracting information using xsl from

Subject: RE: problem for extracting information using xsl from one xml, please help me
From: "Scott Trenda" <Scott.Trenda@xxxxxxxx>
Date: Mon, 12 Nov 2007 17:14:43 -0600
RE:  problem for extracting information using xsl from
I copy-pasted your description into a text editor, and replaced the long
names with shorted, more readable ones... and I still don't see any
clear patterns between your input and your desired output. From your
description, I'm guessing you want something like this:

<xsl:template
match="metadatosinformacion_texto[previous-sibling::composicioninformaci
on_alias = 'estado']">
  <input type="checkbox" name="titulorevista" value="{.}"/>
</xsl:template>

~ Scott


-----Original Message-----
From: Miren Urkixo [mailto:miren@xxxxxxxxxxxxx]
Sent: Monday, November 12, 2007 4:41 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  problem for extracting information using xsl from one
xml, please help me

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_a
lias>
<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:  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

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.