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

Re: Passing a list of arguments

Subject: Re: Passing a list of arguments
From: "Mathieu Malaterre" <mathieu.malaterre@xxxxxxxxx>
Date: Fri, 9 Nov 2007 14:40:16 +0100
Re:  Passing a list of arguments
On Nov 9, 2007 2:38 PM, Mathieu Malaterre <mathieu.malaterre@xxxxxxxxx> wrote:
> Hi Mukul,
>
> On Nov 9, 2007 2:16 PM, Mukul Gandhi <gandhi.mukul@xxxxxxxxx> wrote:
> > You seem to be missing something.
> >
> > I think, the root template should be:
> >
> >  <xsl:template match="/">
> >    <xsl:for-each select="$sections-list/section/section">
> >      <xsl:apply-templates select="article">
> >        <xsl:with-param name="extract-section" select="."/>
> >      </xsl:apply-templates>
> >    </xsl:for-each>
> >  </xsl:template>
>
>
> This is better. In this case for-each is operating on each element of
> sections/section
>
> > It's not clear to me what exactly is your requirement. But you seem to
> > be writing a wrong XPath expression.
>
> But for some reason applying the template does not work, the value
> from sections/section is not passed... Using a call-template works but
> this is not what I would like.

ohhhh I see '.' is not refering to the XML document I am parsing. It
is a bad idea to mix two xml tree...

-- 
Mathieu

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.