Changes

Jump to navigation Jump to search
114 bytes added ,  13:43, 12 August 2020
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).
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></code>:
<xmlcode>
]]></xmlcode>
but then it could either not be displayedon the wiki, or (with some internal patching) there would be a constant difference between the xml XML version on disk and the wiki database version of a page (resulting in endless 'This revision is outdated' messages). So, I think this is the best solution for now.

Navigation menu