Re: Transforming XML or other intermediate representation of Texinfo; category system

Robert Dodier <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <CAAsY_sRH0Xcxa=SUao3qpUJoch2fd+-YDd48HBshp6s5bQL5Zw@mail.gmail.com>
Hi Patrice, thanks a lot for your message.

I looked into the possibility of a Texinfo --> Texinfo XML -->
mogrifications --> Texinfo pipeline, but it looks like it's not going
to work. The translation from Texinfo to XML is lossy -- any
@ifsomething blocks are lost for something != xml. Likewise the
translation from XML back to Texinfo is lossy -- there doesn't appear
to be a way to recover macros which are present in the original
Texinfo and for which I can generate an XML tag; the XML tag (e.g.
<foo>bar</foo>) doesn't emit anything in the reconstituted Texinfo
(@foo{bar} would be ideal, but anyway, nothing is generated).

Given that, I can't see a way to treat Texinfo XML as an intermediate
representation of a document, suitable for transformations, except for
restricted-enough documents.

No fault on your part, I don't mean to assign blame or responsibility
or whatever, just saying that it's too bad, I can't figure out a way
to make it work. Thanks for your help all the same, I appreciate it.

best,

Robert Dodier
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.