[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Converting for-each into one string
Chris,
At 05:18 PM 8/20/2008, you wrote: I want my function to return xs:string, but it uses a for-each and so the compiler complains: Mm. I think maybe you need to take smaller bites off the apple. For example, in this case you might have got the function working without typing the return sequence, and then when it looked good, adding the type back and debugging. By writing functions at all, you are pushing the edges where still only a few people know how to go. The ins and outs of such errors as you are seeing are likely to be evident to only a select few, not many at all who aren't on this list. If that's no comfort, maybe it's a comfort that by reasoning through the problem and figuring it out for yourself, you are becoming one of those people. Worse: you are becoming an expert who might actually have a little sympathy for the struggles of a newbie. A rare bird. So, congratulations on figuring out how to use that value-of wrapper. What you did was collapse a sequence of text nodes into a single string value, which is what you told your function definition you wanted. Cheers, Wendell
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|