Hi all!

I'm working on porting my TABOO system to 1.7, and while it also runs 
unmodified since backwards compatibility is maintained, I wish to 
update it to take advantage of the new code.

I have made use of SimpleTaglib before, and it has seen substantial 
upgrades. It is very appealing that you now may explicitly name the 
variables, and that you return the content rather than a Perl fragment 
as before. So, I like the direction this has taken a lot.

However, I have some issues. For one thing I noticed that I could not 
use $r and $cgi magically as before. I had to start the tag where I use 
it with 
    my $r = Apache->request;
    my $cgi = Apache::Request->instance($r);
are there any simpler ways to use this magic?

I also noted that I now have to explicit use Apache::Constants 
':common'; something I didn't need before. That's no problem though.

My main issue now is that I want to conditionally include a complete 
well-balanced XML fragment (not just a text node). I think it can be 
done by exploiting the new XML::Smart facilities, but it seems a bit 
more complex than before. Even if I would go down this road, I 
currently do not depend on XML::Smart, I do depend on XML::LibXML (and 
a whole lot of other modules). I know I can return an 
XML::LibXML::Node, and I suppose also a DocumentFragment, but can I 
easily get to the child tree of the tag? Actually, what I want is even 
the child tree of a child element of the tag... Complex, huh?

Cheers,

Kjetil
--
Kjetil Kjernsmo
Programmer / Astrophysicist / Ski-orienteer / Orienteer / Mountaineer
[EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/     OpenPGP KeyID: 6A6A0BBC

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to