You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Kaspar Fischer <fi...@inf.ethz.ch> on 2008/02/28 11:25:13 UTC

Strict XHTML validation

I am trying to validate my page using http://validator.w3.org/.
My page markup is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// 
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http:// 
svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/wicket-xhtml1- 
strict.dtd" xml:lang="en" lang="en">
     <head>
     	<meta http-equiv="Content-Type" content="text/html;  
charset=utf-8" />
         <title>Wicket Quickstart Archetype Homepage</title>
     </head>
     <body>
     	<p>
         <strong>Wicket Quickstart Archetype Homepage223</strong>
			</p>
			<p>
         <span wicket:id="message">message will be here</span>
       </p>
     </body>
</html>

The validator complains that "there is no attribute "wicket:id". I am
not sure where exactly the problem lies: does the second xmlns violate
the standard, is the validator incorrect, ...?

Any ideas how to resolve this? I see work in progress at

   https://issues.apache.org/jira/browse/WICKET-693

but the markup there is basically mine but I cannot get it to validate.
Thanks,
Kaspar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Strict XHTML validation

Posted by orange80 <jp...@gmail.com>.
Hi,

I just came across this same issue...  I was just wondering why the
wicket:id attributes wouldn't pass validation?  Isn't that what this
"xmlns:wicket" is for?

Thanks!
Jamie
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Strict-XHTML-validation-tp1858650p2077664.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Strict XHTML validation

Posted by Kaspar Fischer <fi...@inf.ethz.ch>.
On 28.02.2008, at 13:47, Hoover, William wrote:

> getMarkupSettings().setStripWicketTags(true);

Great! Thanks a lot.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Strict XHTML validation

Posted by "Hoover, William " <wh...@nemours.org>.
Add getMarkupSettings().setStripWicketTags(true); to your WebApplication class

-----Original Message-----
From: Kaspar Fischer [mailto:fischerk@inf.ethz.ch]
Sent: Thursday, February 28, 2008 5:25 AM
To: users@wicket.apache.org
Subject: Strict XHTML validation


I am trying to validate my page using http://validator.w3.org/.
My page markup is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// 
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http:// 
svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/wicket-xhtml1- 
strict.dtd" xml:lang="en" lang="en">
     <head>
     	<meta http-equiv="Content-Type" content="text/html;  
charset=utf-8" />
         <title>Wicket Quickstart Archetype Homepage</title>
     </head>
     <body>
     	<p>
         <strong>Wicket Quickstart Archetype Homepage223</strong>
			</p>
			<p>
         <span wicket:id="message">message will be here</span>
       </p>
     </body>
</html>

The validator complains that "there is no attribute "wicket:id". I am
not sure where exactly the problem lies: does the second xmlns violate
the standard, is the validator incorrect, ...?

Any ideas how to resolve this? I see work in progress at

   https://issues.apache.org/jira/browse/WICKET-693

but the markup there is basically mine but I cannot get it to validate.
Thanks,
Kaspar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org