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

Re: help with recursive function

Subject: Re: help with recursive function
From: Mario Madunic <hajduk@xxxxxxxx>
Date: Tue, 6 May 2008 11:18:08 -0700
Re:  help with recursive function

analyze-string would be a better solution but I will not be maintaining the
spellingBee.xml file and want this to be easy and simple for the production
team. Right now off the top of my head I don't see how to combine analyze-string
with spellingBee.xml.

Marijan (Mario) Madunic

Quoting Andrew Welch <andrew.j.welch@xxxxxxxxx>:

> 2008/5/6 Mario Madunic <hajduk@xxxxxxxx>:
> > Thanks Andrew for that, the error message now tells me which line in the
> >  function is causing the problem. Still perplexed but now have a focus.
> >  Thanks
> >  Mario
> >
> >  line in question now
> >
> >
> >  <xsl:value-of select="f:f_UpperLowerCaseFix($l_StringAfterDelimiter)" />
> >
> I would probably do some old school xsl:message output to see what
> value was being returned:
> <xsl:message select="f:f_UpperLowerCaseFix($l_StringAfterDelimiter)"/>
> <xsl:value-of select="f:f_UpperLowerCaseFix($l_StringAfterDelimiter)" />
> The key to recursive functions is it should always be obvious when the
> recursion stops - your function is large and unwieldy so maybe
> concentrate on refining it a little, or reducing it to a postable
> example (and I really dislike the $p_ notation)
> You might find separating it out into steps each using analyze-string
> is the better approach.
> -- 
> Andrew Welch
> http://andrewjwelch.com
> Kernow: http://kernowforsaxon.sf.net/

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.