[
https://issues.apache.org/jira/browse/DAFFODIL-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17642122#comment-17642122
]
Steve Lawrence commented on DAFFODIL-2346:
------------------------------------------
Note, I'm not sure using a tunable is the right approach here. Tunable have
mainly been used for changing Daffodil parse/unparse behavior, and not infoset
inputter/outputter behavior. And right now, there really isn't a good way to
get tunables to the infoset inputter/outputters since those are created by
users and not part of the compiler/data processor where tunables live.
So I think InfosetInputters/Outputters want to be configured by constructor
parameters (or public setter functions if we're okay with mutability). I
suggest we just make the pretty print safe option a constructor parameter that
is currently only available to API users. And I suggest create another bug to
figure out the right CLI mechanism to pass infoset inputter/outputter specific
properties to these constructors, which a number of other bugs need.
> 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
> Assignee: Varun Zaver
> 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 &#x20;
--
This message was sent by Atlassian Jira
(v8.20.10#820010)