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

Re: parameter use in XPath

Subject: Re: parameter use in XPath
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Wed, 22 Oct 2003 23:35:09 -0600
xsl xpath parameter
Let me have a look at your code and think about this one and get back to
you...  Im sure theres a way but I need to relook at your code to see
exactly the way to go about it

Until then...

M.

----- Original Message ----- 
From: "Saverio Perugini" <sperugin@xxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, October 22, 2003 10:19 PM
Subject: Re:  parameter use in XPath


> On Wed, 22 Oct 2003, M. David Peterson wrote:
>
> > There are some work arounds to this issue
> > that you may find useful.  Heres one...
> >
> > <xsl:param name="keyword"/>
> > <xsl:key name="keywordMatch" match="foo" use="@bar"/>
> >
> > <xsl:template match="/">
> > <xsl:for-each select="//foo/bar">
> >     <xsl:for-each select="key(keywordMatch, $keyword)">
> >         ...
> >     </xsl:for-each>
> > </xsl:for-each>
> > </xsl:template>
>
> Thanks.  This work around
> appears to create a key named keywordMatch on all foo elements
> by the attribute bar.  It then uses this key in a double
> nested for loop to iterate through all foo elements whose
> bar attribute matches the keyword parameter input.
>
> While I am not sure how this code can be manipulated
> to help solve my problem, it appears as if
> this approach entails significantly modifying the
> search strategy in my original stylesheet (which
> was slightly complex even in the absence of this
> parameter issue).
>
> Are there any EXSLT functions capable of solving
> my problem without a significant rewrite of the
> stylesheet?
>
> Many Thanks,
> Saverio
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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.