[ 
https://issues.apache.org/jira/browse/DAFFODIL-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Beckerle updated DAFFODIL-1326:
------------------------------------
    Description: 
This is a code cleanup.

Today the RuntimeData objects from TermRuntimeData downward in that hierarchy 
all carry namespaces, which is the NamespaceBinding from the original XML scope 
giving rise to the object.

However, that is only used by the InteractiveDebugger when compiling 
expressions. Hence, should be (and is) carried on DPathCompileInfo.

namespaces should be removed from the TermRuntimeData and all derived classes, 
and it should be accessed from the DPathCompileInfo objects.

 

  was:
This is a code cleanup.

Today the RuntimeData objects from TermRuntimeData downward in that hierarchy 
all carry namespaces, which is the NamespaceBinding from the original XML scope 
giving rise to the object. 

However, that is only used by the InteractiveDebugger when compiling 
expressions. Hence, should be (and is) carried on DPathCompileInfo. 

namespaces should be removed from the TermRuntimeData and all derived classes, 
and it should be accessed from the DPathCompileInfo objects.

Also, the definition of namespaces is the xml scope from the original XML, but 
augmented with xsi in case of nillable attributes being added. However, that is 
only needed for nillable elements, so adding this xsi nillable all the time 
just creates something that namespace minimizing has to take out later. It 
should only be added for nillable elements.


> RuntimeData objects should not carry namespaces
> -----------------------------------------------
>
>                 Key: DAFFODIL-1326
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1326
>             Project: Daffodil
>          Issue Type: Improvement
>          Components: Clean Ups, Middle "End"
>            Reporter: Mike Beckerle
>            Priority: Major
>              Labels: beginner
>
> This is a code cleanup.
> Today the RuntimeData objects from TermRuntimeData downward in that hierarchy 
> all carry namespaces, which is the NamespaceBinding from the original XML 
> scope giving rise to the object.
> However, that is only used by the InteractiveDebugger when compiling 
> expressions. Hence, should be (and is) carried on DPathCompileInfo.
> namespaces should be removed from the TermRuntimeData and all derived 
> classes, and it should be accessed from the DPathCompileInfo objects.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to