[ 
https://issues.apache.org/jira/browse/DAFFODIL-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17561585#comment-17561585
 ] 

Mike Beckerle commented on DAFFODIL-2346:
-----------------------------------------

Per some discussion of a testing problem, the following is now the suggested 
resolution.

A tunable parameter will be added to Daffodil to chose between the current XML 
output behavior and the creation of pretty printer safe XML output. 

A Wiki Proposal for control and output of pretty printer safe XML is here:

[https://cwiki.apache.org/confluence/display/DAFFODIL/Proposal%3A+Pretty+Print+Safe+XML+Output]

 

> XML Output needs option to use <![CDATA[     ]]> around simple element values 
> containing whitespace.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-2346
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2346
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End
>    Affects Versions: 2.6.0
>            Reporter: Mike Beckerle
>            Priority: Major
>
> It is incredibly painful to take the XML output, pretty print it to make it 
> readable, and find out that this has mangled the significant whitespace 
> inside element values. 
> In general, since whitespace within simple values is considered fungible in 
> XML, we have to protect whitespace that is truly part of the DFDL infoset. 
> I think CDATA bracketing is preferable to replacing whitespace characters 
> with XML escaping like &amp;#x20; 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to