[ 
http://issues.apache.org/jira/browse/XALANC-597?page=comments#action_12365607 ] 

Dmitry Hayes commented on XALANC-597:
-------------------------------------

"In the absence of external character encoding information (such as MIME 
headers), parsed entities which are stored in an encoding other than UTF-8 or 
UTF-16 MUST begin with a text declaration (see 4.3.1 The Text Declaration) 
containing an encoding declaration" 

Seems that the both versions of the outcome are legal. The difference makes how 
the user uses it .
For senting over http the text declaration is unnessesary. If the output will 
be used as a regular external parsed entity , and then the text declaration is 
required. 
Should we give the user an option to choose the way he wants his steak ? For 
example , we can add such proprety  to XalanTransformer 


> Serializers for encodings other than UTF-8 and UTF-16 should not omit the XML 
> declaration
> -----------------------------------------------------------------------------------------
>
>          Key: XALANC-597
>          URL: http://issues.apache.org/jira/browse/XALANC-597
>      Project: XalanC
>         Type: Bug
>     Versions: CurrentCVS
>     Reporter: David Bertoni
>     Assignee: David Bertoni
>  Attachments: patch.diff
>
> Our new serializer for encodings other than UTF-8 and UTF-16 will omit the 
> XML declaration if the xsl:output element attribute omit-xml-declaration is 
> equal to "yes."  This is contrary to what the XSLT recommendation states, as 
> it can create XML that is not well-formed.

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