Menu

#5 XSLT for nodes

open
None
5
2002-10-30
2002-10-19
Roy Nurmi
No

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;
}

Discussion

  • Roy Nurmi

    Roy Nurmi - 2002-10-20

    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.

     
  • Steve Ball

    Steve Ball - 2002-10-30
    • assigned_to: nobody --> balls
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.