> Hi again, > > I still don't have it: > > How can I in Xalan 1.8.0 pass an xml node to an external C++ function and > get the whole node xml-chars in that function?
The input to an XSLT processor is a tree of nodes, not XML markup. > When I use this code the "chars" only contains all the element values but > not the tags themselves: > chars =>" > > > blah > > > " "Tags" are markup, not nodes, and there is no markup. > chars => > "<Foo> > <SubFoo> > <Value> > blah > </Value> > </SubFoo> > <Foo>" You could re-serialize the source tree from that point, but that seems really inefficient. If you need markup for your processing, why aren't you using some text-processing program, instead of XSLT? The other option would be to re-write your extension function to work with the source tree (nodes), rather than markup. Maybe if you described what your function will do with this markup, we could come up with some better answers. Dave
