Re: using ixml with mixed content - a design problem

> In the short run, serializing and reparsing is going to simpler and
> quicker to implement.

It does occur to me that if the markup iXML adds isn’t well balanced
with respect to the serialized markup, you’re going to run into trouble.
For example, if

  here’s a
  <start>
  thing
  </start>

becomes

  <nonterminal>here’s a
  &lt;start>
  thing</nonterminal>
  &lt;/start>

> For the literate programming case, the XML that can occur within a code
> scrap is restricted enough that serializing the XML and re-parsing it
> would not be too hard.  For the Roman history case, and other cases in
> general, where the XML might be arbitrarily complex, I really like
> Liam's idea of an easy-to-parse placeholder, which can easily be
> replaced with the original element (or other item).

Yes, that works too.

NineML is prepared to parse a sequence of tokens. For iXML, that’s a
sequence of characters, but it doesn’t have to be. What would happen if
it wasn’t is, uh, untested. :-)

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Monday, 19 June 2023 11:42:48 UTC