Now that I am trying to ensure that all DOMSources are
wrapped as AugmentedSources (and with wrapDocument set
to FALSE), I'm facing a minor (?) problem. Basically,
I'd like avoid calling code (one that constructs
Transformer and applies) from having to know anything
about such wrapping. To do this, the obvious first
place would be Saxon's TransformerFactoryImpl. Since
it already takes a Configuration object, I was hoping
to something like Configuration.setWrapDocument().
However, there doesn't seem to be a way to do this yet
(unless I missed it). Could this be added? (I didn't
see such a method in SaxonB-8.9).
Now, missing a short-cut method, I thought that
Configuration.resolveSource() might be the thing to
override. However, trying to do that, I get into nasty
infinite loop, when constructing AugmentSource for
DOMSource. Is this to be expected (i.e. it's not to be
used for things like this), or is there a minor bug in
code (as in missing return statement after line 186)?
And finally, is there another easy way to configure
transformation factory to default to not wrapping
-+ Tatu +-
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around