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

Re: Problem in xsl:for-each

Subject: Re: Problem in xsl:for-each
From: jam@xxxxxxxxxxxxx
Date: Thu, 10 Jan 2002 18:51:41 +0100
jeni jam
It's perfect, thank you Jeni

Cheers
JAM

----- Original Message ----- 
From: "Jeni Tennison" <jeni@xxxxxxxxxxxxxxxx>
To: <jam@xxxxxxxxxxxxx>
Cc: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, January 10, 2002 6:32 PM
Subject: Re:  Problem in xsl:for-each


> Hi Jam,
> 
> >      <xsl:variable name="Nombre_Fichero" select="document(string
(.))"/>
> [snip]
> >      <xsl:for-each select="document
> > ($Nombre_Fichero)//Documento/Noticia/Cuerpo/Parrafo">
> >       <xsl:text>Parrafo : </xsl:text>
> >       <xsl:copy-of select="$Nombre_Fichero//."/>
> >       <br>
> >       </br>
> >      </xsl:for-each>
> 
> Here, the $Nombre_Fichero variable holds a root node (not the file
> name), so you need the first of the possible solutions I gave you:
> 
>   <xsl:for-each
>       select="$Nombre_Fichero//Documento/Noticia/Cuerpo/Parrafo">
>     <xsl:text>Parrafo : </xsl:text>
>     <xsl:copy-of select="." />
>     <br />
>   </xsl:for-each>
> 
> Note that the xsl:copy-of within the xsl:for-each copies the *context
> node* - the Parrafo element itself - rather than each of the
> descendants of the $Nombre_Fichero node, which is what you have it
> doing currently.
> 
> Cheers,
> 
> Jeni
> 
> ---
> Jeni Tennison
> http://www.jenitennison.com/
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.