OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: XQuery -- Reinventing the Wheel?



At 06:39 PM 2/23/2001 -0800, Evan Lenz wrote:

>FUNCTION applyTemplates(NODE $n) RETURNS LIST(NODE)
>{
>     IF name($n) = 'heading'
>     THEN
>       <title>
>         $n/text()
>       </title>
>     ELSE IF name($n) = 'chapter'
>     THEN
>       <section>
>         applyTemplates($n/node())
>       </section>
>     ELSE IF self::text()
>       $e
>     ELSE
>       applyTemplates($n/node())
>}
>applyTemplates(/)


Yes, this could be done. However, realize that an XSLT processor is 
optimized for template processing, and an XQuery processor will not be. I 
am not aware of existing systems that are well optimized for both - do you 
know of any?

I would like to avoid pushing XQuery too far out on the "future research" 
edge. I want it to be efficiently implementable as soon as possible.

Jonathan