Altova Mailing List Archives

Re: first letter in capital?

From: "Ikke" <Mail@--.------>
Date: 12/20/2003 12:40:00 PM
"Neil Smith" <neil@n...> schreef in bericht
> Oh, sorry I missed that (it's late here) :
> The key is to call the ucfirst template 'recursively'. You need to
> split the word at a ' ' space character, and pass the word back to the
> same template, using call-template, with $input as a parameter (in the
> same way you call-template ucwords the first time).
> To stop it hanging : You will also need a test in the 'ucwords'
> template that if string-length ($input &lt 2)  (it contains only a
> space or an empty string) that the template does not call itself
> again.
> Or , bette r , if string-length($input &gt; 1) then you call the
> template again, else do nothing (and so you return the accumulated
> value to the main template)
> I'll show you what I mean tomorrow when I recover from the lieklyl
> hangover ;-)
> Cheers - Neil.

Thanks, and bottoms up ;-)


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.