merge "valid XHTML/1.0 Transitional + RDFa 1.0"
from bzr+ssh://taramir.gnurandal.net/srv/tarent/fusionforge-5.1%2Btarent/patches/valid-rdfa/
slightly edited list of individual changes:
revno: 10028
combined XHTML/1.0 Transitional + RDFa 1.0 DTD
revno: 10029
provide global list of DTDs (XHTML/1.0 {Strict,Transitional} for now)
revno: 10030
collect in $sysXMLNSs all xmlns and xmlns:* found in <html> tags
revno: 10031
use $sysDTDs and $sysXMLNSs in favour of hardcoding things in-place
(only where it hurts and all common places)
revno: 10032
message:
switch XHTML/1.0 Transitional to use the RDFa profile addition
not XHTML/1.0 Strict – we could switch that to the W3C provided
XHTML 1.1 + RDFa DTD, but to validate that we’d need to mirror
the entire modularised XHTML/1.1 stuff (part of w3c-dtd-xhtml
in Debian though, probably) and the xhtml-rdfa-1.dtd (or -2.dtd)
file (probably not in Debian) for xmlstarlet ☹
Since we use XHTML/1.0 Transitional only at the moment (since
MediaWiki can’t do Strict, no point for us to do so anyway),
that’s not a big loss.
revno: 10033
xmlstarlet tries to validate the _entire_ document, but we give it
only a DTD for XHTML+RDFa; the xmlns:* are “only” needed for the
RDFa parser though because they’re never (currently) used in the
XHTML/XML code itself, so no loss disabling them there
correct fix would be to collect DTDs (or XML Schemata) for all the
namespaces and feed them to xmlstarlet too, somehow…
right now we must live with: either RDFa parsers get their info
or xmlstarlet is used but not both at the same time
- [D] src/common/include/extras-debug.php