c++ xslt engine with pluggable xpath evaluator
Is anyone aware of an (open source) XSLT engine, implemented in C++, that would enable the programmer to register a callback for the evaluation of XPath expressions, rather than the processor internally evaluating the expressions from a predetermined input file?
The reason for wanting this behavior is that I wish to perform an XSLT operation using for input a document in an XML database. The database supports XPath but not XSLT. Further, the document in the database is too large to load into memory, and evaluating XPath expressions from a DOM representation would be too slow anyway because it lacks the indices maintained by the database. Thus, the idea here is that whenever the engine needs to evaluate an Xpath expression on the input, the expression is passed to the application through a callback, and the application then submits the expression to the database for evaluation. The database then returns a result node that in turn is returned to the engine. In this way, small result sets are extracted from the XML database into memory, but the entire database document is not, and the XSLT engine is able to process the template not knowing the difference.
Alternatively, if anyone sees another solution to the problem, I would be interested to learn about it.
Last edited by brain004; October 23rd, 2012 at 03:38 PM..
|