You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Erik van Oosten <e....@grons.nl> on 2009/05/19 09:38:18 UTC

What is the correct way to include the Wicket DTD?

Hi,

I recently updated the page 
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html for the new DTDs. 
However, now that I see that the DTD actually includes the whole xhtml 
spec I am doubting whether I wrote the correct text.

So my question for the xhtml guru's here is: what is the correct way to 
include the DTD?

Regards,
    Erik.


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


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


Re: What is the correct way to include the Wicket DTD?

Posted by Igor Vaynberg <ig...@gmail.com>.
correct.

-igor

On Wed, May 20, 2009 at 8:19 AM, Steve Swinsburg
<s....@lancaster.ac.uk> wrote:
> Or are you suggesting we replace the w3 dtd with the wicket one that
> incorporates it?
>
>
> cheers,
> Steve
>
>
>
> On 20 May 2009, at 16:17, Steve Swinsburg wrote:
>
> So how do you include a DOCTYPE definition as well, since that has a DTD
> associated with it. I just did some experimenting as I had my pages as the
> wicket.sourceforge.net one previously:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html
>       xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:wicket="http://wicket.sourceforge.net/"
>       xml:lang="en"
>       lang="en">
> Which the browser interpreted to the same.
> But updating to:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html
>       xmlns="http://www.w3.org/1999/xhtml"
>
> xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd"
>
>       xml:lang="en"
>       lang="en">
> The browser rightly so strips out the extra DTD and renders it to:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>
> "http://www.w3.org/TR/html4/strict.dtd">
> <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
>
> What is the full DTD and HTML namespace that needs to be at the top of
> pages?
>
> cheers,
> Steve
>
>
>
> On 20 May 2009, at 15:52, Igor Vaynberg wrote:
>
> Since  you can only have one dtd we had to use the full HTML one a a base.
>
> -igor
>
> On Tuesday, May 19, 2009, Erik van Oosten <e....@grons.nl> wrote:
>
> Hi,
>
> I recently updated the page
> http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html for the new DTDs.
> However, now that I see that the DTD actually includes the whole xhtml spec
> I am doubting whether I wrote the correct text.
>
> So my question for the xhtml guru's here is: what is the correct way to
> include the DTD?
>
> Regards,
>
>   Erik.
>
>
> --
>
> Erik van Oosten
>
> http://day-to-day-stuff.blogspot.com/
>
>
> ---------------------------------------------------------------------
>
> 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
>
>
>
>

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


Re: What is the correct way to include the Wicket DTD?

Posted by Steve Swinsburg <s....@lancaster.ac.uk>.
Or are you suggesting we replace the w3 dtd with the wicket one that  
incorporates it?


cheers,
Steve




On 20 May 2009, at 16:17, Steve Swinsburg wrote:

> So how do you include a DOCTYPE definition as well, since that has a  
> DTD associated with it. I just did some experimenting as I had my  
> pages as the wicket.sourceforge.net one previously:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html
>       xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:wicket="http://wicket.sourceforge.net/"
>       xml:lang="en"
>       lang="en">
>
> Which the browser interpreted to the same.
>
> But updating to:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html
>       xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd 
> "
>       xml:lang="en"
>       lang="en">
>
> The browser rightly so strips out the extra DTD and renders it to:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
>
> What is the full DTD and HTML namespace that needs to be at the top  
> of pages?
>
>
> cheers,
> Steve
>
>
>
>
> On 20 May 2009, at 15:52, Igor Vaynberg wrote:
>
>> Since  you can only have one dtd we had to use the full HTML one a  
>> a base.
>>
>> -igor
>>
>> On Tuesday, May 19, 2009, Erik van Oosten <e....@grons.nl>  
>> wrote:
>>> Hi,
>>>
>>> I recently updated the page http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html 
>>>  for the new DTDs. However, now that I see that the DTD actually  
>>> includes the whole xhtml spec I am doubting whether I wrote the  
>>> correct text.
>>>
>>> So my question for the xhtml guru's here is: what is the correct  
>>> way to include the DTD?
>>>
>>> Regards,
>>>   Erik.
>>>
>>>
>>> --
>>> Erik van Oosten
>>> http://day-to-day-stuff.blogspot.com/
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>


Re: What is the correct way to include the Wicket DTD?

Posted by Steve Swinsburg <s....@lancaster.ac.uk>.
So how do you include a DOCTYPE definition as well, since that has a  
DTD associated with it. I just did some experimenting as I had my  
pages as the wicket.sourceforge.net one previously:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html
       xmlns="http://www.w3.org/1999/xhtml"
       xmlns:wicket="http://wicket.sourceforge.net/"
       xml:lang="en"
       lang="en">

Which the browser interpreted to the same.

But updating to:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html
       xmlns="http://www.w3.org/1999/xhtml"
       xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd 
"
       xml:lang="en"
       lang="en">

The browser rightly so strips out the extra DTD and renders it to:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">

What is the full DTD and HTML namespace that needs to be at the top of  
pages?


cheers,
Steve




On 20 May 2009, at 15:52, Igor Vaynberg wrote:

> Since  you can only have one dtd we had to use the full HTML one a a  
> base.
>
> -igor
>
> On Tuesday, May 19, 2009, Erik van Oosten <e....@grons.nl>  
> wrote:
>> Hi,
>>
>> I recently updated the page http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html 
>>  for the new DTDs. However, now that I see that the DTD actually  
>> includes the whole xhtml spec I am doubting whether I wrote the  
>> correct text.
>>
>> So my question for the xhtml guru's here is: what is the correct  
>> way to include the DTD?
>>
>> Regards,
>>   Erik.
>>
>>
>> --
>> Erik van Oosten
>> http://day-to-day-stuff.blogspot.com/
>>
>>
>> ---------------------------------------------------------------------
>> 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
>


Re: What is the correct way to include the Wicket DTD?

Posted by Igor Vaynberg <ig...@gmail.com>.
Since  you can only have one dtd we had to use the full HTML one a a base.

-igor

On Tuesday, May 19, 2009, Erik van Oosten <e....@grons.nl> wrote:
> Hi,
>
> I recently updated the page http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html for the new DTDs. However, now that I see that the DTD actually includes the whole xhtml spec I am doubting whether I wrote the correct text.
>
> So my question for the xhtml guru's here is: what is the correct way to include the DTD?
>
> Regards,
>    Erik.
>
>
> --
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
>
>
> ---------------------------------------------------------------------
> 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