You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/12/03 22:09:40 UTC
DO NOT REPLY [Bug 13859] -
XSLT: processing multiple files is broken
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13859>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13859
XSLT: processing multiple files is broken
elkner@linofee.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Additional Comments From elkner@linofee.org 2002-12-03 21:09 -------
Well, after checking the xalan stuff a little bit deeper,
I think at least wrt. to xalan, that the whole stylesheet
handling is still not cleanly implemented.
http://xml.apache.org/xalan-j/usagepatterns.html (Multithreading) states:
If you want to perform multiple transformations (sequentially or concurrently)
with the same stylesheet instructions, do the following:
1. Use the TransformerFactory newTemplates(Source xslSource) method to create
a Templates object.
2. For each transformation, use the Templates object newTransformer() method
to create a Transformer, and use that Transformer's transform(Source xmlSource,
Result transformResult) method to perform the transformation.
For an example, see Examples.exampleUseTemplatesObj() in the trax sample.
So IMHO this would be clean and work without setting the
"reuseloadedstylesheet" attribute to a certain value ...
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>