Hi Henry,
  Thanks for the explanation. I agree to your observations.

You could mark this defect report as closed (invalid / won't fix).

On Wed, Apr 9, 2008 at 7:34 PM, Henry Zongaro (JIRA)
<xalan-dev@xml.apache.org> wrote:
>
>     [ 
> https://issues.apache.org/jira/browse/XALANJ-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587200#action_12587200
>  ]
>
>  Henry Zongaro commented on XALANJ-2440:
>  ---------------------------------------
>
>  The problem here is that the serializer considers that the result document 
> might be used as an external general parsed entity.  So, suppose the result 
> is named result.xml.  If it's referenced inside a document such as the 
> following, inserting whitespace before the x element in result.xml would 
> affect the text content of its parent element, doc.
>
>  <!DOCTYPE doc [
>  <!ENTITY ref SYSTEM "result.xml">
>  ]>
>  <doc>Some non-whitespace test &ref; Some more non-whitespace text</doc>
>
>  > Incorrect serialization of XML output
>  > -------------------------------------
>  >
>  >                 Key: XALANJ-2440
>  >                 URL: https://issues.apache.org/jira/browse/XALANJ-2440
>  >             Project: XalanJ2
>  >          Issue Type: Improvement
>  >          Components: Serialization
>  >    Affects Versions: 2.7.1
>  >         Environment: Windows XP professional, Intel Celeron M, Xalan-J 
> 2.7.1, JRE 1.4.2_05
>  >            Reporter: Mukul Gandhi
>  >            Priority: Minor
>  >
>  > I think, there is scope of improvement to the Xalan-J 2.7.1 serializer.
>  > I tried this sample XSLT stylesheet with Xalan-J 2.7.1.
>  > <?xml version="1.0" encoding="UTF-8"?>
>  > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>  >              version="1.0">
>  >   <xsl:output method="xml" indent="yes" />
>  >   <xsl:template match="/">
>  >       <x>
>  >         <y/>
>  >       </x>
>  >   </xsl:template>
>  >
>  > </xsl:stylesheet>
>  > The output produced by Xalan is:
>  > <?xml version="1.0" encoding="UTF-8"?><x>
>  > <y/>
>  > </x>
>  > Please note that top most element tag, <x> is not indented properly.
>  > I wish the output in this case should be:
>  > <?xml version="1.0" encoding="UTF-8"?>
>  > <x>
>  >    <y/>
>  > </x>
>  > This problem seems to happen with any XML output.


-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to