[ http://issues.apache.org/jira/browse/XALANJ-2118?page=comments#action_64848 ] Brian Minchau commented on XALANJ-2118: ---------------------------------------
David quotes the SAX documentation, which says that startPrefixMapping/endPrefixMapping events must be reported. This is a usage error. The code could be changed to check that all of the attributes, and if they have an associated URI, to make sure the appropriate prefix to URI mapping appears on a xmlns:prefix="uri" attribute on output, or add such an attribute if need be. However this would have have a performance impact on many users. > No namespace declarations for attributes > ---------------------------------------- > > Key: XALANJ-2118 > URL: http://issues.apache.org/jira/browse/XALANJ-2118 > Project: XalanJ2 > Type: Bug > Components: SAX > Versions: 2.6 > Environment: Win XP > Reporter: Chris Bitmead > Priority: Critical > > I'm using Xalan SAX to write OpenOffice.org documents, and these documents > sometimes use a namespace "fo" as in "fo:font-family", but it only uses this > namespace for attributes, not for tags and Xalan doesn't create the > appropriate namespace declaration for these attributes when writing the > document out with SAX. I have tried this with the xalan built into Java 1.5.0 > as well as tried the 2.6.0 xalan.jar dropped into the lib/endorsed directory > in Java 1.4.2, but both exhibit this behaviour. > This seems like a bug to me, is it? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
