[
https://issues.apache.org/jira/browse/DAFFODIL-1949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16508045#comment-16508045
]
Steve Lawrence commented on DAFFODIL-1949:
------------------------------------------
Note that some infoset representations may not support comments (e.g. Json).
Ideally whatever manner XML comments are added would be done in a generic way
so as not to not be specific to XML and could work for Json and others future
infoset types. Also, Processing instructions are currently only output when the
infoset representation is a Scala XML Node. When this change is made, we
probably also want to modify fmtInfo to use that and be more generic for all
infoset representations.
> Ability to add XML Comments or Processing Instructions to any element
> ---------------------------------------------------------------------
>
> Key: DAFFODIL-1949
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1949
> Project: Daffodil
> Issue Type: New Feature
> Components: Back End, Front End
> Affects Versions: 2.1.0
> Reporter: Michael Beckerle
> Priority: Major
> Fix For: 2.2.0
>
>
> User community requests ability to add XML comments to elements based on
> schema annotations.
> Also processing instructions similarly. This allows ascribing validation or
> other errors to parts of a specification such as an Inspection/Sanitization
> Guide for data.
> Note that a feature is present to add Processing instructions that contain a
> dump of what is called the node-cache of computed property values - this is
> for debugging purposes but does show how to add PI to a node so it
> illustrates part of what is needed for this new feature.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)