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

Re: Looking Not Working for No Obvious Reason

Subject: Re: Looking Not Working for No Obvious Reason
From: "Eliot Kimber" <ekimber@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Jun 2007 15:10:29 -0500
Re:  Looking Not Working for No Obvious Reason
Kimber, Eliot wrote:
David Carlisle wrote:
 >> I must be doing something wrong but I can't figure out what it might
 >> be--the fact that some input values work and others don't is odd.

It must be my bug somewhere in my calling sequence or function declarations.

I set up the key-based approach suggested by David and Mike and verified that the keys will return the right value for my data using this sort of debugging report:

Long to short title map:
<xsl:for-each-group select="$resolvedDoc//section/title" group-by=".">
<xsl:variable name="baseTitle" select="string(current-group()[1])"/>
<xsl:message> - "<xsl:sequence select="$baseTitle"/>" - "<xsl:sequence select="(key('sectionLongToShortTitleMap', $baseTitle, $sectionTitleMap)[1]/shorttitle, $baseTitle)[1]"/>"</xsl:message>

But my actual functions still refuse to return the correct values, so it must be something stupid on my end.

Thanks for the help: I did learn something new, namely the (x,y)[1] idiom for getting a fallback value for a check that might fail.



W. Eliot Kimber
Professional Services
Innodata Isogen
8500 N. Mopac, Suite 402
Austin, TX 78759
(214) 954-5198


Current Thread


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.
First Name
Last Name
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.