ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13859] - XSLT: processing multiple files is broken
Date Tue, 03 Dec 2002 21:09:40 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message