You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/01/08 20:51:54 UTC
DO NOT REPLY [Bug 15901] New: -
XSLTC Templates does not set xalan-specific output properties needed for serialization
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=15901>.
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=15901
XSLTC Templates does not set xalan-specific output properties needed for serialization
Summary: XSLTC Templates does not set xalan-specific output
properties needed for serialization
Product: XalanJ2
Version: CurrentCVS
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: jmeyer@cstlink.com
the org.apache.xalan.xsltc.trax.TemplatesImpl.getOutputProperties() method does
not return the required xalan specific properties needed to use the
SerializerFactory. Attempting to create a serializer from a templates object
created using xsltc and trax fails whereas if the templates object was created
using interpretive xalan, the following call succeeds.
Serializer serializer = SerializerFactory.getSerializer
(template.getOutputProperties());
The exact exception thrown using XSLTC is:
org.apache.xml.utils.WrappedRuntimeException: The output format must have
a '{http://xml.apache.org/xalan}content-handler' property!
at org.apache.xalan.serialize.SerializerFactory.getSerializer
(SerializerFactory.java:142)
Current workaround is to explicity set all xalan specific properties in the
code.