Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Phraser (was:xsl:analyze-string)

From: "cking" <cking@---------->
To:
Date: 8/17/2004 10:32:00 PM
Hi M. David,

I hope you don't mind that I stole your idea :)
Followed the link you mentioned, and I couldn't resist trying it!
I found a solution, and then took the time to make many improvements
while learning a lot about XSLT (helped mainly by reading this list)

Here's my solution:
http://users.telenet.be/cking/webstuff/digiTransformer/input.xml

Anton Triest


Two weeks ago, At 2004-08-02 10:02 AM, M. David Peterson wrote:
>
> While not a complete answer to your problem I wonder if this might be of help to 
> you...
> 
> http://blogs.msdn.com/the1/archive/2004/03/29/102123.aspx
> 
> This is a coding challenge called "Phraser" put up by Zhanyong Wan whom if you 
> are not already familiar with comes from the Haskell school of thought (his 
> dissertation for his Ph.D. in Computer Science from Yale was "Functional 
> Reactive Programming for Real-Time Reactive Systems".
> 
> The Challenge:
> 
> In his words... "Your task is to write a program that finds all possible ways to 
> phrase a phone number.  By "phrase" I mean using a mixture of numbers and 
> English words to spell out the number.  For example, the number 642-394-6369 can 
> be phrased as nice-window, nice-wind-ox, nice-win-fox, nice-9-in-fox, etc."
> 
> He created his recursive solution using Haskell and I wonder if his 
> functional-programming-based algorithm (he writes a fantastic explanation 
> regarding the thought process behind his solution) might help you solve the 
> problem you are running into.
> 
> I've been meaning to attempt an XSLT solution to his challenge and if I can ever 
> find the time I will most definitely make an attempt...  None-the-less, thats of 
> know help to you now! :)  But maybe this is close enough to your issue that it 
> may be of some use...
> 
> HTH's!
> 
> Best regards,
> 
> <M:D/>


transparent
Print
Mail
Like It
Disclaimer
.

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 www.altova.com/list/index.html. 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.

.
.

transparent

transparent