Re: Use Cases 1.2.4.1 (TREE-Q1): wrong solution

At 05:43 AM 3/6/2003 +0100, MW wrote:

>I hope, somebody will read this post and will remove this big, fat BUG ;-)

Yes, I had already fixed it - but I'm changing it again, because I really 
like the solution you provided below:

>{-- not using local-name() --}
>define function toc($book as element) as element*
>{
>         for $section in $book/section,
>             $title   in $section/title
>         return
>                 <section>
>                 { $section/@* , $title , toc($section) 
> }
>                 </section>
>}

I will probably use that one.

Jonathan 

Received on Thursday, 6 March 2003 09:22:15 UTC