1
0
-1

The DFDL specification makes it clear that XML attributes aren't supported by DFDL.  Does daffodil have any support for attribute information in the XSD so that other compilers like JAXB XJC could make use?  My project takes the data from a Daffodil parse and feeds it through JAXB to get Java Objects.  I am currently under the assumption that Daffodil won't insert any attribute information into the generated XML tags but thought it worth checking.

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      There is no way to create xml attributes from data elements in DFDL v1.0

      We expect most uses of DFDL to need some downstream transformation, and expect people will want to hoist some elements up to become attributes in those transformations if they wish.

      The XML representation of the DFDL infoset makes use of a few attributes to convey information. xsi:nil="true" is the obvious case, but if validation is on when parsing then validtion information for each element will be carried using attributes also indicating whether the element passed or failed validation.

      The full description of exactly how Daffodil represents the DFDL infoset as an XML infoset is on the Daffodil wiki here: Daffodil and the DFDL Infoset

       

        CommentAdd your comment...