Hello,
I have a question about changing the document headers. Now my wiki pages starts in this way:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="es" dir="ltr">
But I want to change the DOCTYPE and the namespaces to:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:dc="http://purl.org/dc/terms/" xml:lang="es">
Maybe I need to change a file, where is it?
Thanks!
El 04/11/11 23:06, Daniel Hernández escribió:
Hello,
You can configure that in LocalSettings.php
But I want to change the DOCTYPE and the namespaces to:
<?xml version="1.0" encoding="UTF-8"?>
I don't think there's an option to show the xml prolog, but it's optional.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
Change $wgDocType
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:dc="http://purl.org/dc/terms/" xml:lang="es">
Register them in $wgXhtmlNamespaces
Maybe I need to change a file, where is it?
Thanks!
Thanks a lot!
On Sat, 2011-11-05 at 00:02 +0100, Platonides wrote:
El 04/11/11 23:06, Daniel Hernández escribió:
Hello,
You can configure that in LocalSettings.php
But I want to change the DOCTYPE and the namespaces to:
<?xml version="1.0" encoding="UTF-8"?>
I don't think there's an option to show the xml prolog, but it's optional.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
Change $wgDocType
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:dc="http://purl.org/dc/terms/" xml:lang="es">
Register them in $wgXhtmlNamespaces
Maybe I need to change a file, where is it?
Thanks!
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hello,
You can configure that in LocalSettings.php
Change $wgDocType
I have added the lines bottom to the LocalSettings, but no changes are showed yet. I need restart something?
$wgDocType = '-//W3C//DTD XHTML+RDFa 1.0//EN'; $wgDTD = 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd';
Thanks!
Daniel Hernández wrote:
Hello,
You can configure that in LocalSettings.php
Change $wgDocType
I have added the lines bottom to the LocalSettings, but no changes are showed yet. I need restart something?
$wgDocType = '-//W3C//DTD XHTML+RDFa 1.0//EN'; $wgDTD = 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd';
Thanks!
No, that should work. Which version are you running? Maybe it's an old one which didn't support such vars?
On Sun, 2011-11-06 at 01:09 +0100, Platonides wrote:
Daniel Hernández wrote:
Hello,
You can configure that in LocalSettings.php
Change $wgDocType
I have added the lines bottom to the LocalSettings, but no changes are showed yet. I need restart something?
$wgDocType = '-//W3C//DTD XHTML+RDFa 1.0//EN'; $wgDTD = 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd';
Thanks!
No, that should work. Which version are you running? Maybe it's an old one which didn't support such vars?
MediaWiki 1.16.5
-- Daniel
Those settings are ignored if $wgHtml5 is set to true, which it is by default in 1.16+. See https://www.mediawiki.org/wiki/Special:Code/MediaWiki/85124
(Even with $wgHtml5 set to true, MediaWiki still serves an XHTML doctype with in 1.16; in 1.17+ it doesn't.)
mediawiki-l@lists.wikimedia.org