Forum OpenACS Q&A: Re: Anybody have the code to apply_xsl?

Collapse
Posted by Bart Teeuwisse on
Barry,

if you find yourself taking the tDOM road, you can find an example of using tDOM for XSL conversion in http://cvs.openacs.org/cvs/openacs-4/contrib/packages/irc-logger/tcl/irc-logger-procs.tcl?view=auto&rev=1.6.

Including a custom Tcl function used in the transformation.

/Bart

Collapse
Posted by Andrei Popov on
As long as XML that is being pulled out is a valid one, yes...  Otherwise it might be advisable to pipe it through something like Tidy to at least close out tags and replace &'s <'s, >'s, etc. with named entities.  If that "XML" is user-drivven, there might be a problem.