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

Re: banging my head against the wall (key, actually)

Subject: Re: banging my head against the wall (key, actually)
From: "Wendell Piez wapiez@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Apr 2015 14:02:29 -0000
Re:  banging my head against the wall (key
Syd,

Or refactoring slightly:

<xsl:for-each select="key('tst', $set/duck/string(.) )">
    <xsl:message>debug2: <xsl:value-of select="@n"/></xsl:message>
</xsl:for-each>

This way we don't "switch trees" ...

But the third argument of key() is really useful, and the error is a
really easy one to make (but not always so easy to detect).

Cheers, Wendell

On Fri, Apr 24, 2015 at 4:38 AM, Syd Bauman s.bauman@xxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>> [Need to set context to input document using key() 3rd param]
>
> Doh! Thank you, Ken. Yes, that helps *very* much. If I had ever
> realized key() only returns from within the context, I had completely
> forgotten.
>
>
>> (slight rewording noted below)
>
> Yes, rewording is better, although I did get it 1st time around.
> 



-- 
Wendell Piez | http://www.wendellpiez.com
XML | XSLT | electronic publishing
Eat Your Vegetables
_____oo_________o_o___ooooo____ooooooo_^

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.