[ http://issues.apache.org/jira/browse/XALANJ-2267?page=all ]
     
Henry Zongaro resolved XALANJ-2267:
-----------------------------------

    Resolution: Duplicate

This issue duplicates XALANJ-1497

> XML serializer adds end-of line after a processing-instruction when outside 
> of an element
> -----------------------------------------------------------------------------------------
>
>          Key: XALANJ-2267
>          URL: http://issues.apache.org/jira/browse/XALANJ-2267
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Versions: 2.6
>     Reporter: David Bertoni
>     Priority: Minor

>
> There is code in the XML serializer to add a newline character after 
> serializing a processing instruction:
>                 // Always output a newline char if not inside of an
>                 // element. The whitespace is not significant in that
>                 // case.
>                 if (m_elemContext.m_currentElemDepth <= 0)
>                     writer.write(m_lineSep, 0, m_lineSepLen);
> The whitespace is not significant if the result is an XML document, but it is 
> if it's a general parsed entity.  This is the same reason the serializer was 
> modified not to add a newline character after the XML/text declaration.
> There are some input files to reproduce this on the corresponding Xalan-C 
> issue:
> http://issues.apache.org/jira/browse/XALANC-598

-- 
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]

Reply via email to