You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Michael Beckerle (JIRA)" <ji...@apache.org> on 2018/10/23 22:33:00 UTC

[jira] [Commented] (DAFFODIL-1949) Ability to add XML Comments or Processing Instructions to any element

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

Michael Beckerle commented on DAFFODIL-1949:
--------------------------------------------

There is a DFDL Language issue here: what should the annotations look like that indicate one wants a particular comment appended to the infoset, and where (after an element, as a child of an element, as a particular location in a sequence, etc. ?) Ditto for Processing Instruction.

Suggest for JSON the only viable representation is to just provide a label to be used to label comments "Eg., use 'comment' as the key", and similarly for processing instruction 'use "processingInstruction" as the key."



> 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, DFDL Language, Front End
>    Affects Versions: 2.1.0
>            Reporter: Michael Beckerle
>            Priority: Minor
>             Fix For: 2.4.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)