Well, you CAN simply output RAW XML in a taglibhelper based taglib. Then you can do whatever you want...
Personally I do it all the time. The 'automagic' conversion that taglibhelper does from perl data to XML is pretty simple-minded at times. Its nice and 99% of the time its all you need, but it has a few limitations as you found. Of course the danger is that output invalid XML, which will cause your XSP page to crash when it runs, but I honestly haven't found that to be a big problem. On Saturday 01 February 2003 01:40 pm, Joe Slag wrote: > I've been using TaglibHelper in the XSP pages of the project I'm working > on - and it's been great - but now I'm working on a page on which my > coworkers (who are doing the corresponding XSLT) would like some of the > data to come out as attributes. In case I'm messing up my terminology, > rather than > > <foo> > <bar>1</bar> > </foo> > > they would prefer output like > > <foo bar="1" /> > > I've looked through the docs and examples, but don't see any way to do > this using TaglibHelper. > > I've also spent some time trying to reimplement the taglib in question > using SimpleTaglib, but have found that to be much more difficult. I > was eventually able to turn out elements with tags, but then ran into > trouble with the namespace info added to my output (so I'd get > <mynamespace:foo xmlns="..." bar="1" />, which my coworker's XSLT did > not care for). > > Looking through CVS I saw that the latest version of SimpleTaglib makes > it possible to do output without specifying a namespace, so I did pull > down the latest version of SimpleTaglib.pm, at which time my previously > functional taglib started generating internal server errors - so I gave > up and went home for the night. The rest of my AxKit & related > installation is from CPAN as of a few weeks back, so AxKit 1.6, > XML::LibXSLT 1.52, etc. Perl version is 5.6.1, OS is OpenBSD 3.2. > > I suspect that further time with SimpleTaglib should make it possible > for me to produce the desired output, but with a go-live date rapidly > approaching and a bunch more work to do, I'm running a bit short on > time; which is why I thought it would be worth checking if there wasn't > any way to do this in TaglibHelper. > > Suggestions or pointers? > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Tod Harter Giant Electronic Brain --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
