DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28363>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28363 Error while using TransformerHandler [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2004-04-19 19:26 ------- Xalan-Java assumes namespace processing will be performed for its input. This includes synthetic SAX events. According to the description of the ContentHandler.startElement [1] method, << This event allows up to three name components for each element: 1. the Namespace URI; 2. the local name; and 3. the qualified (prefixed) name. Any or all of these may be provided, depending on the values of the http://xml.org/sax/features/namespaces and the http://xml.org/sax/features/namespace-prefixes properties: o the Namespace URI and local name are required when the namespaces property is true (the default), and are optional when the namespaces property is false (if one is specified, both must be); o the qualified name is required when the namespace-prefixes property is true, and is optional when the namespace-prefixes property is false (the default). >> In particular, your calls to startElement, endElement and addAttribute all specify an empty string for the local name parameter. If you change those calls to look like the following, it should work: atts.addAttribute("", "insured", "insured", "CDATA", "8"); atts.addAttribute("", "logo", "logo", "CDATA", "C:\\logo.gif"); aContent.startElement("", "root", "root", atts); [1] http://xml.apache.org/xalan- j/apidocs/org/xml/sax/ContentHandler.html#startElement(java.lang.String,% 20java.lang.String,%20java.lang.String,%20org.xml.sax.Attributes) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
