[
http://issues.apache.org/jira/browse/XALANJ-2118?page=comments#action_64807 ]
Brian Minchau commented on XALANJ-2118:
---------------------------------------
Chris, thanks for the testcase.
I reproduced what you got as output. While it is true that Xalan does some
extra processing to make sure that the namespace used by the element name is
written out as an attribute, it isn't doing that for the attributes in this
situation.
If before you invoke the second startElement() you invoke
writer.startPrefixMapping("fo","http://openoffice.org/2000/style" );
you will get the attribute out that declares the prefix uri maping with
xmlns:fo="..."
It is a bit of a murky area here:
startPrefixMapping() - SAX call before startElement() to declare prefix
mapping (namespace nodes)
attributes of the form xmlns:prefix="url" - attributes that also declares a
prefix mapping
It needs more thought on whether this is your error, Xalan's error, or a soft
spot in the XSLT 1.0 recommendation.
> 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]