Welcome, Guest
Username Password: Remember me

showXMLheader and getXmlnsString work the other way around
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: showXMLheader and getXmlnsString work the other way around

showXMLheader and getXmlnsString work the other way around 11 years, 6 months ago #12273

  • Jazzvox
  • OFFLINE
  • Fresh Boarder
  • Just not afraid of code, anymore..
  • Posts: 13
  • Karma: 0
option=com_mobilejoomla > Smartphone Settings
'use XML-Header' and 'xmlns in HTML-Header'

if You set both to TRUE nothing is added to the document.

if You set either one or the other to FALSE, it will show up before <head>
if You set either one or the other to TRUE, it will not be inserted.

Guess the 'On' and 'Off''s got mixed up ...

In addition, I really would appreciate to get adviced for recommended settings in this place, as I don't have much of a clue - besides checking 'm.mydomain.de' by validator.w3.org, which is definitely a good idea for testing.

Thanks much for any hint!
Attachments:
Last Edit: 11 years, 6 months ago by Jazzvox.

Re: showXMLheader and getXmlnsString work the other way around 11 years, 6 months ago #12311

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Both to "On":
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


"XML head" to "Off", "XMLNS in HTML head" to "On":
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


"XML head" to "On", "XMLNS in HTML head" to "Off":
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html>


Both to "Off":
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html>


Works correctly in any combination.
The following user(s) said Thank You: Jazzvox

Re: showXMLheader and getXmlnsString work the other way around 11 years, 6 months ago #12320

  • Jazzvox
  • OFFLINE
  • Fresh Boarder
  • Just not afraid of code, anymore..
  • Posts: 13
  • Karma: 0
...and which setting is recommended ?

Re: showXMLheader and getXmlnsString work the other way around 11 years, 6 months ago #12321

  • Jazzvox
  • OFFLINE
  • Fresh Boarder
  • Just not afraid of code, anymore..
  • Posts: 13
  • Karma: 0
Ooops, so ... it was swapped in my German language file 'de-DE.com_mobilejoomla.ini', sorry for the huzzle!

The archive posted here: www.mobilejoomla.com/forum/12-languages/7722-eine-frag-auf-deutsch.html#12253
is revised now.
Last Edit: 11 years, 6 months ago by Jazzvox.

Re: showXMLheader and getXmlnsString work the other way around 11 years, 6 months ago #12322

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Jazzvox wrote:
...and which setting is recommended ?

These settings were introduced many years ago to pass some "mobile web validators", so that page was valid xhtml code. Now most of devices prefer html4/html5, so you can set both of them to Off.
The following user(s) said Thank You: Jazzvox
  • Page:
  • 1
Time to create page: 0.24 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.