On 5/18/22 03:23, Thangalin via ntg-context wrote: > […] > I wanted to write an introduction on how to typeset XML sources with > ConTeXt (at least, in Spanish). > > See: > https://dave.autonoma.ca/blog/2020/04/11/project-gutenberg-projects/ > > It's English, but describes a fair amount of what you're probably > looking to accomplish, and there are all sorts of free translation > services now.
Hi Dave, many thanks for your reply. Your introduction clearly states (https://dave.autonoma.ca/blog/2020/04/11/project-gutenberg-projects/#xhtml-to-markdown): Even though ConTeXt can typeset XML documents, we’ll use XSLT—the verbose language only gurus grok without gripes—to convert XHTML into a Markdown document that pandoc can read to produce a native ConTeXt file. I’m afraid I’m interested in typesetting XML documents with ConTeXt. Actually, I have been typesetting XHML documents (generated by pandoc from Markdown sources) for years now. Sorry for having explained myself like crap. I wanted to write an introduction on how to typeset XML sources in ConTeXt. I cannot see how free translation services may be of help here. > One of the main issues I face is to find examples. > > See: > > https://wiki.contextgarden.net/XML > https://wiki.contextgarden.net/Getting_Started_with_XML_and_ConTeXt_using_TEXML > > And themes for my text editor, KeenWrite, in particular: > > https://github.com/DaveJarvis/keenwrite-themes/tree/main/xhtml > https://github.com/DaveJarvis/keenwrite-themes/tree/main/tarmes > https://github.com/DaveJarvis/keenwrite-themes/tree/main/boschet Sorry for explaining myself so poorly. One of the not irrelevant tasks for me is finding examples of XML code. > Maybe all XML handling is way more complex than I originally thought. > > It takes some elbow grease. Conceptually, it's essentially mapping XML > elements to xmlsetups, which are used to apply typesetting instructions. I agree, this is basically the idea. But my worries came from having to sanitize HTML sources (which aren’t strict XML-compliant). Many thanks for your help, Pablo ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________