[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XQuery to Report Template Parameters

Subject: Re: XQuery to Report Template Parameters
From: Eliot Kimber <ekimber@xxxxxxxxxxxx>
Date: Mon, 18 Feb 2008 08:29:11 -0600
Re:  XQuery to Report Template Parameters
Michael Kay wrote:
I certainly claim no special XQuery expertise, so I would also welcome any feedback on the coding of the query itself.

You asked for feedback, here are a few observations... Most of the comments below would apply equally if you had written the corresponding code in XSLT

Mike,


Thanks for the feedback--very helpful.

With regard to using string() where a simple existence check would help, I've never been 100% sure when simple existence was sufficient, so safer to use the string() != '' approach. I guess this is a function of what values the attribute allows.

It didn't even occur to me to limit my function parameters to specific types--but of course that makes perfect sense. Probably a little Java brain damage there.

My echoElement function was designed specifically to suppress the many namespace declarations that are in the original XSLT to make the output more easily readable (the stylesheet I was testing against declares about 10 different namespaces for this and that).

As for why I only did templates with apply-templates and call-template? Because I didn't think about the other places where these could be used. Easy to add of course.

Cheers,

Eliot
--
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.