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

Posted by Bart Teeuwisse on

if you find yourself taking the tDOM road, you can find an example of using tDOM for XSL conversion in

Including a custom Tcl function used in the transformation.


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.