The taglibs in question are the Order and Checkout taglibs in Handel. In their perl bretheren, the checkout instance can return an order instance:
my $order = $checkout->order; I'd like to do the same in XSP land: <checkout:order> <order:id/> <order:total/> ... </checkout:order>The only thing I can think of is that it might Just Work(tm) since I'm in control of all of the internal xsp variable names:
<checkout:order> generates: $_xsp_handel_order_order = $checkout->order; and: <order:id/>, <order:total> etc are already setup to use: $_xsp_handel_order_order->id; $_xsp_handel_order_order->total; The only difference is who's in charge of setting $_xsp_handel_order_order. Now for the second part of that... To do the above, I need to add both of these to my xsp page: xmlns:checkout="http://today.icantfocus.com/CPAN/AxKit/XSP/Handel/Checkout" xmlns:order="http://today.icantfocus.com/CPAN/AxKit/XSP/Handel/Order" Is there a way in the api to add namespaces on the fly? So loading: xmlns:checkout="http://today.icantfocus.com/CPAN/AxKit/XSP/Handel/Checkout" would automatically add xmlns:order="http://today.icantfocus.com/CPAN/AxKit/XSP/Handel/Order" behind the scenes? Thanks, -=Chris
smime.p7s
Description: S/MIME Cryptographic Signature