Changes

Jump to navigation Jump to search
284 bytes added ,  13:42, 12 August 2020
=== About those extension tags ===
The special tags <code><nowiki><texcode></nowiki></code>, <code><nowiki><xmlcode></nowiki></code>, and <code><nowiki><context></nowiki></code> or on our wiki are handled by an extension (<code>context</code>) written a long time ago by Patrick Gundlach. That extension converts the parsed XML output from mediawiki into HTML code that looks 'right'. In normal wiki pages this works, because the mediawiki xml XML parser is quite forgiving and does some recovery attempts itself when a user keys in something that is not quite well-formed XML.
For example, in a normal wiki page you do not need to properly quote the attributes of <code><nowiki><context></nowiki></code>. And the structure within <code><nowiki><xmlcode></nowiki></code> does not have to be properly nested.
But it also sometimes backfires. If you use a XML tag name inside a <code><nowiki><contextsource="yes"></nowiki></code> call or <code><nowiki><texcode></nowiki></code>, it will not be displayed at allin the verbatim text section (but it will be seen by ConTeXt while processing the <code><nowiki><context></nowiki></code>).
In To solve this problem between 'it is data' and 'it is markup' in a standalone XML file, you would wrap a CDATA section around things like the content of <code><nowiki><xmlcode></nowiki></code>. But unfortunately, that is something that either the mediawiki parser or the <code>context</code> does not understand(I don't know which is the exact problem).
So, for For now, I decided to treat the content of <code><nowiki><texcode></nowiki></code>, <code><nowiki><xmlcode></nowiki></code>, and <code><nowiki><context></nowiki></code> as if they are SGML elements with data model CDATA. That means that the generated XML files on disk are not actually well-formed, for example this content of <code><nowiki><xmlcode></nowiki>:
<xmlcode>

Navigation menu