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# <[EMAIL PROTECTED]> 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# <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]