Re: Round-tripping ixml?

    I talk about roundtripping in a couple of my papers, in particular
    my most recent one:
    https://archive.xmlprague.cz/2022/files/xmlprague-2022-proceedings.pdf#page=51
    There’s a section at the end on it.

Thank you for the pointer. I’m glad to see round-tripping is on the agenda.

    Just out of interest, what is your use case, if I may ask?

I am considering using iXML to translate between XML and a 
domain-specific language called Name-Value Hierarchy (NVH): 
https://www.namevaluehierarchy.org/

The scenario would go like this:

 1. A human edits data in NVH.
 2. A machine reads data in NVH, parses it into XML, makes some changes,
    linearizes back to NVH.
 3. The human continues editing the NVH.

Another scenario I can imagine will come up is this:

 1. A machine obtains data from somewhere, composes an XML document out
    of it, then linearizes it into “not XML” for humans to edit.
 2. Humans edit the “not XML”.

This second scenario can’t even be described as round-tripping any more.

M.

PS. By the way, if you look at NVH closely you’re probably going to say 
that it can’t be done because, in iXML, you can’t parse terminals into 
XML element names. That’s not what I want to do though. I want to write 
iXML grammars for specific /schemas/ where the grammar knows in advance 
what the names of the elements are.


​

Received on Tuesday, 18 October 2022 16:40:12 UTC