XSLT processors are allowed to choose either the self-closing form or
explicit open and close tags when operating in xml mode for elements
that have no text. Unfortunately, for the script element, this is not
allowed (by the DTD, and conformant browsers will not accept the
self-closing form).
xsltproc, as used by the XSF tooling, will output the open/close tags,
but other processors, such as Xalan, will choose the self-closing form.
This patch adds an empty comment as a child of the script tag. This will
force all XSLT processors into outputting the right form. As browsers
are required to ignore the content if there is a src attribute, this
will not change the behaviour. Should a browser without support for the
script tag open it, all it sees is a comment.
Test-Information:
Transforms XEPs into readable documents in xsltproc and oXygen 9.3.
Revision 0.2.1 of xep-0369.xml had two <initials/> and two <remark/>
elements, both of which are illegal. Merged them, as I think it's the
least ungraceful recovery from the dual 0.2.1 revision issue.
Test-Information:
xep-0369.xml now validates according to the DTD using xmllint.
Adds a few obvious missing allowed children to various elements in the
DTD. Before this, 277 XEPs failed to validate, after the change, 'only'
179 fail to validate. It also means a portion of those XEPs contain
things that will never be converted to HTML or PDF, because our XSLT
doesn't know about them.
Test-Information:
Tested the DTD against our current body of XEPs using xmllint 2.9.1.
XEP-0004 specifies that the var attribute is mandatory on every
non-fixed field of a dataform.
Also, for i18n reasons, mandating a label as a field identifier would
prevent any translation of it.
This change unifiess the rendering for <example> and <div class=example>.
The former is rendered as HTML <pre>, the latter is taken over. This
patch does the following:
* Merge <pre> CSS from prettify.js int xmpp.css
* Give <pre> a blue-ish background derived from the caption color
* Make the <pre> border use the caption color
* Change div.example background color from neon yellow to a colder and lighter tone that matches the overall color theme
* Add a border to div.example that fits its background color
* Derive width for div.example from <pre>
P.S: Don't eat yellow snow!