[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|