XSLT transformation should be possible for nodes as
well as for documents as whole. Current implementation
throws an error, if anything else than document object is
given to the transformer.
The patch is simple (in TclXSLTTransform):
if (TclDOM_GetDocFromObj(stylesheet->interp,
source, &doc) != TCL_OK && TclDOM_GetNodeFromObj
(stylesheet->interp, source, &doc) != TCL_OK) {
goto error;
}
Logged In: YES
user_id=120112
Sorry, I noticed that my quick patch does not work with
libxslt. It worked for single node, but it did not apply for nodes
below the given one, so it is not a solution for the problem.
However, if it would be possible to apply stylesheet for any
given node, it would be very useful for a number of cases.
Naturally this depends of the used xslt engine, whether it is
possible or not.