OLIVIER CHAUVIN wrote:
Hi everybody,
Here is my problem :
I got a pack of Xsl that are not readable without some treatment first.
With the URIResolver in java i was able to create streams that were
treating them, so there was no problem.
I don't know what you mean by "treating them." Can you be more specific?
But there is no URIResolver in Xalan-C and i have to do the samething in
C/C++.
I was thinking of loading XSL in memory (and treating them), then use
object (or whatever memory) representation of XSL in order to find
"include" and "import" tags, and replace them with some kind of
references to some others XSL previously loaded in memory.
That way, i will be able to solve dependencies before
compilation/transformation.
You can't do this. A compiled stylesheet is not modular, and you cannot
replace or modify pieces of it.
I also can't write treated Xsl on a file system, and use them that way.
But i just don't know if that is possible with Xalan-C
Anybody got an idea, if it's possible, and how?
You probably just need an EntityResolver that recognizes the appropriate
stylesheet URIs and replaces them with the "treated" ones. See the
Xerces-C documentation for that class. If you're using the
XalanTransformer class, there is a member function call to install an instance.
Dave