Some website problems

Anderson Lizardo andersonlizardo at yahoo.com.br
Sat Aug 2 13:35:37 PDT 2003


Jeroen Coumans wrote:
> It's an interesting solution though, if you could get it to work
> though. I'm not familiar with the doctype, I just know how to write
> webpages and make them validate.

I've done some testing/researching and discovered a real problem. Good 
news: it's (another) bug with opensp.

Error:
Line 28, column 12: there is no attribute "name" (explain...). 
  <form name="language_form" method="post" action="">

This bug affects XHTML validation through http://validator.w3.org/ 
(actually, W3C validator is a frontend to opensp).

OpenSP handles absolute and relative URIs incorretly. See 
http://lists.w3.org/Archives/Public/www-html-editor/2001JulSep/0546.html 
for more details about this bug. Note that this is problem with opensp 
parser and _not_ with XHTML DTD (as I said before). Here is a diff of a 
workaround for this bug:

--- xhtml11.dtd 2003-08-02 14:49:43.000000000 -0400
+++ xhtml11-fixed.dtd   2003-08-02 15:32:40.000000000 -0400
@@ -99,7 +99,7 @@
 -->
 <!ENTITY % xhtml-model.mod
      PUBLIC "-//W3C//ENTITIES XHTML 1.1 Document Model 1.0//EN"
-            "xhtml11-model-1.mod" >
+            "http://www.w3.org/TR/xhtml11/DTD/xhtml11-model-1.mod" >

 <!-- Modular Framework Module (required) ......................... -->
 <!ENTITY % xhtml-framework.module "INCLUDE" >

-----
Error:
Line 40, column 32: there is no attribute "onChange" (explain...). 
   <select name="menu1" onChange="MM_jumpMenu('parent',this,1)">

Your fault! ;-). XHTML is case-sensitive. Modify onChange to onchange.

> I think I'm better off writing a javascript dropdown menu instead of
> a form; this wouldn't require any server-side processing and would
> work better in links/lynx too (this is important, considering the
> audience for LFS).

After all my hard researching! (just kidding!) ;-)

If this is a better implementation, I agree. But I'm interested in see 
if my fix works now. I've attached modified test.html and xhtml11.dtd 
files. Put them on-line to see if test.html validate now.

PS.: I will send a patch to w3c-validator maintainers to workaround the 
bug above and to not show that (incorrect) error again.

PS2: A hint: to validate documents off-line, use this command:

onsgmls -c /usr/share/sgml/OpenSP-1.5/xml.soc test.html >/dev/null

But you still have to be connected to do this, because onsgmls will 
fetch the DTDs on-the-fly.
-- 
Anderson Lizardo


_______________________________________________________________________
Conheça o novo Cadê? - Mais rápido, mais fácil e mais preciso.
Toda a web, 42 milhões de páginas brasileiras e nova busca por imagens!
http://www.cade.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/website/attachments/20030802/583613fb/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xhtml11-fixed.dtd
URL: <http://lists.linuxfromscratch.org/pipermail/website/attachments/20030802/583613fb/attachment.ksh>


More information about the website mailing list