You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by #Cyrille37# <cy...@gmail.com> on 2007/11/20 12:16:29 UTC
[T4] How to get the right DOCTYPE ...
Hello,
I could not find how to set the DocType ?
My Border component's HTML start like this :
<?xml version="1.0" encoding="UTF-8" ?>
<!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"
title="TestApp"
stylesheet="asset:generalCss"
jwcid="@Shell" disableCaching="true" consoleEnabled="false"
debugEnabled="false" browserLogLevel="DEBUG" parseWidgets="true"
>
...
But when rendering I got that :
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- Application: TestApp -->
<!-- Page: Home -->
<!-- Generated: Tue Nov 20 12:12:05 CET 2007 -->
<html>
<head>
...
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
...
Cyrille.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4] How to get the right DOCTYPE ...
Posted by Martino Piccinato <ma...@gmail.com>.
In fact there shouldn't be anything before the border component and
this is what the Shell component presuppose as it's used for <head>
DOCTYPE stuff.
In any case I think you can configure the parameter to an empty string
so that the "hardcoded" doctype will be used. I would remove the
"hardcoded" doctypes though.
On Nov 20, 2007 1:31 PM, #Cyrille37# <cy...@gmail.com> wrote:
> Martino Piccinato a écrit :
> > If you are using Shell component in your border (probably you do) you
> > have to set this parameter for the shell component:
> >
> > <binding name="doctype" value="literal:html PUBLIC "-//W3C//DTD
> > XHTML 1.1 //EN"
> > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd""/>
> >
> > note the use of " as you are writing it inside an xml file.
> >
> It works like that too :
> <component id="theShell" type="Shell">
> <binding name="doctype" >
> literal:html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
> </binding>
> </component>
>
> But I've got 2 doctype in the rendered page because the designer put
> (and have to) a doctype in each template.
>
> Cyrille.
>
> >
> > On Nov 20, 2007 12:16 PM, #Cyrille37# <cy...@gmail.com> wrote:
> >
> >> Hello,
> >> I could not find how to set the DocType ?
> >>
> >> My Border component's HTML start like this :
> >>
> >> <?xml version="1.0" encoding="UTF-8" ?>
> >> <!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"
> >> title="TestApp"
> >> stylesheet="asset:generalCss"
> >> jwcid="@Shell" disableCaching="true" consoleEnabled="false"
> >> debugEnabled="false" browserLogLevel="DEBUG" parseWidgets="true"
> >> >
> >> ...
> >>
> >> But when rendering I got that :
> >>
> >> <?xml version="1.0" encoding="UTF-8" ?>
> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> >> "http://www.w3.org/TR/html4/loose.dtd">
> >> <!-- Application: TestApp -->
> >> <!-- Page: Home -->
> >> <!-- Generated: Tue Nov 20 12:12:05 CET 2007 -->
> >> <html>
> >> <head>
> >> ...
> >> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
> >> ...
> >>
> >> Cyrille.
> >>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4] How to get the right DOCTYPE ...
Posted by #Cyrille37# <cy...@gmail.com>.
Martino Piccinato a écrit :
> If you are using Shell component in your border (probably you do) you
> have to set this parameter for the shell component:
>
> <binding name="doctype" value="literal:html PUBLIC "-//W3C//DTD
> XHTML 1.1 //EN"
> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd""/>
>
> note the use of " as you are writing it inside an xml file.
>
It works like that too :
<component id="theShell" type="Shell">
<binding name="doctype" >
literal:html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
</binding>
</component>
But I've got 2 doctype in the rendered page because the designer put
(and have to) a doctype in each template.
Cyrille.
>
> On Nov 20, 2007 12:16 PM, #Cyrille37# <cy...@gmail.com> wrote:
>
>> Hello,
>> I could not find how to set the DocType ?
>>
>> My Border component's HTML start like this :
>>
>> <?xml version="1.0" encoding="UTF-8" ?>
>> <!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"
>> title="TestApp"
>> stylesheet="asset:generalCss"
>> jwcid="@Shell" disableCaching="true" consoleEnabled="false"
>> debugEnabled="false" browserLogLevel="DEBUG" parseWidgets="true"
>> >
>> ...
>>
>> But when rendering I got that :
>>
>> <?xml version="1.0" encoding="UTF-8" ?>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd">
>> <!-- Application: TestApp -->
>> <!-- Page: Home -->
>> <!-- Generated: Tue Nov 20 12:12:05 CET 2007 -->
>> <html>
>> <head>
>> ...
>> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
>> ...
>>
>> Cyrille.
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4] How to get the right DOCTYPE ...
Posted by Martino Piccinato <ma...@gmail.com>.
If you are using Shell component in your border (probably you do) you
have to set this parameter for the shell component:
<binding name="doctype" value="literal:html PUBLIC "-//W3C//DTD
XHTML 1.1 //EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd""/>
note the use of " as you are writing it inside an xml file.
On Nov 20, 2007 12:16 PM, #Cyrille37# <cy...@gmail.com> wrote:
> Hello,
> I could not find how to set the DocType ?
>
> My Border component's HTML start like this :
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!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"
> title="TestApp"
> stylesheet="asset:generalCss"
> jwcid="@Shell" disableCaching="true" consoleEnabled="false"
> debugEnabled="false" browserLogLevel="DEBUG" parseWidgets="true"
> >
> ...
>
> But when rendering I got that :
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <!-- Application: TestApp -->
> <!-- Page: Home -->
> <!-- Generated: Tue Nov 20 12:12:05 CET 2007 -->
> <html>
> <head>
> ...
> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
> ...
>
> Cyrille.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4] How to get the right DOCTYPE ...
Posted by #Cyrille37# <cy...@gmail.com>.
#Cyrille37# a écrit :
> #Cyrille37# a écrit :
>> Hello,
>> I could not find how to set the DocType ?
> Sorry for the noise. It's in the @Shell component.
If the designer set a Doctype in the template, and the programmer set
the doctype in @Shell, in the rendered page there is 2 doctypes ...
is there a solution ?
Thanks
Cyrille.
>
> Cheers
> Cyrille.
>>
>> My Border component's HTML start like this :
>>
>> <?xml version="1.0" encoding="UTF-8" ?>
>> <!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"
>> title="TestApp"
>> stylesheet="asset:generalCss"
>> jwcid="@Shell" disableCaching="true" consoleEnabled="false"
>> debugEnabled="false" browserLogLevel="DEBUG" parseWidgets="true"
>> >
>> ...
>>
>> But when rendering I got that :
>>
>> <?xml version="1.0" encoding="UTF-8" ?>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd">
>> <!-- Application: TestApp -->
>> <!-- Page: Home -->
>> <!-- Generated: Tue Nov 20 12:12:05 CET 2007 -->
>> <html>
>> <head>
>> ...
>> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
>> ...
>>
>> Cyrille.
>>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4] How to get the right DOCTYPE ...
Posted by #Cyrille37# <cy...@gmail.com>.
#Cyrille37# a écrit :
> Hello,
> I could not find how to set the DocType ?
Sorry for the noise. It's in the @Shell component.
Cheers
Cyrille.
>
> My Border component's HTML start like this :
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!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"
> title="TestApp"
> stylesheet="asset:generalCss"
> jwcid="@Shell" disableCaching="true" consoleEnabled="false"
> debugEnabled="false" browserLogLevel="DEBUG" parseWidgets="true"
> >
> ...
>
> But when rendering I got that :
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <!-- Application: TestApp -->
> <!-- Page: Home -->
> <!-- Generated: Tue Nov 20 12:12:05 CET 2007 -->
> <html>
> <head>
> ...
> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
> ...
>
> Cyrille.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org