[Pmwiki-users] [XHTML] My Experiments

John Feezell johnfeezell at 3wplace.com
Sat Jul 12 14:41:37 CDT 2003


I an attempt to understand the xhtml option in pmwiki I decided to conduct 
some experiements.  My results are given below.

My starting setup --- from Cookbook/XHTMLOutput page ADDED to local.php

$HTMLDoctypeFmt = '<?xml version="1.0" encoding="iso-8859-1"?>
   <!DOCTYPE html
   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>';
$HTTPHeaders[] = "Content-Type: text/xml; charset=iso-8859-1;";

Results:

Opera 7.11 rendered everything ok.


IE 5.5 error message  http://lm.3wplace.com/uploads/XML Content w trailing 
comma.png

Modified setup by ADDING standalone="no" to $HTMLDoctypeFmt
and REMOVING trailing ; in $HTTPHeaders[]
NOTE: There is a similar trailing ; in pmwiki.php on the $HTTPHeaders[] 
entry [line 90].  I removed it and it appear to not make any difference.  
(xml is stricter and html in requirements.)

New setup after changes

$HTMLDoctypeFmt = '<?xml version="1.0" encoding="iso-8859-1" 
standalone="no"?>
   <!DOCTYPE html
   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>';
$HTTPHeaders[] = "Content-Type: text/xml; charset=iso-8859-1";

Results:

Opera 7.11 rendered almost everything ok.
http://lm.3wplace.com/uploads/Opera XML Content wo trailing comma.png

IE 5.5 rendered xml document
http://lm.3wplace.com/uploads/XML Content wo trailing comma w no.png


Opera problems included errors in "Preview" and "grouplist" and perhaps 
more - still checking

Grouplist problem was identified and corrected.
http://lm.3wplace.com/uploads/Opera XML Content wo trailing comma 
GroupList.png

The problem was identified from the following output from IE 5.5
+++++++++++++++++
The XML page cannot be displayed Cannot view XML input using XSL style 
sheet. Please correct the error and then click the Refresh 
<javascript:location.reload()> button, or try again later.   A string 
literal was expected, but no opening quote character was found. Line 28, 
Position 105 	
<tr><td valign='top' align='right'> <font size='-1'>LMWiki 
Groups:</font></td><td valign='top'> <a 
href=http://lm.3wplace.com/wiki/BackRoom/HomePage>BackRoom</a>    <a 
href=http://lm.3wplace.com/wiki/Examples/HomePage>Examples</a>    <a 
href=http://lm.3wplace.com/wiki/HowTo/HomePage>HowTo</a>    <a 
href=http://lm.3wplace.com/wiki/LearningCenter/HomePage>LearningCenter</a>  
  <a href=http://lm.3wplace.com/wiki/Main/HomePage>Main</a>    <a 
href=http://lm.3wplace.com/wiki/People/HomePage>People</a>    <a 
href=http://lm.3wplace.com/wiki/PmWiki/HomePage>PmWiki</a>    <a 
href=http://lm.3wplace.com/wiki/Projects/HomePage>Projects</a>    <a 
href=http://lm.3wplace.com/wiki/Resources/HomePage>Resources</a>    <a 
href=http://lm.3wplace.com/wiki/WorkingGroups/HomePage>WorkingGroups</a>    
 </td><td valign='top'><br clear='all' /></td></tr>
---------------------------------------------------------------------------- 
----------------------------^
++++++++++++++++
The problem was two missing ' in href=http that should have been href='http 
...'
Modified two lines in grouplist.php, one for horizontal output and one for 
vertical output.
Corrected problem in Opera 7.11 with grouplist.

I still have some problem areas in Opera 7.11 (preview, recentchanges)and 
will report what I find as I explore them.

Comments? Questions?

/JF






-- 
 




More information about the pmwiki-users mailing list