Re: how to remove the DTD wriiten at the top ?
Hi, this seems to be some sort of Bug #5973. I've a similar problem using the xinclude and the cinclude transformer. I will send an extra email for this. Sebastien SACARD wrote: Vadim Gritsenko wrote: From: Sebastien SACARD [mailto:[EMAIL PROTECTED]] [snip] map:serializers default=html map:serializer name=html mime-type=text/html; charset ISO-8859-1 src=org.apache.cocoon.serialization.HTMLSerializer encodingISO-8859-1/encoding doctype-public-//W3C//DTD HTML 4.0 Transitional//EN /doctype-public doctype-systemhttp://www.w3.org/TR/REC-html40/loose.dtd/doctype-syste m omit-xml-declarationtrue/omit-xml-declaration indent1/indent /map:serializer [snip] !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN http://www.w3.org/TR/REC-html40/loose.dtd; !-- Extensible HTML version 1.0 Transitional DTD This is the same as HTML 4.0 Transitional except for [snipped] This are all comments from the DTD and its entities? Right? Ciao Sven. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to remove the DTD wriiten at the top ?
You're right when I remove the doctype and encoding elements in the serializer description, it works. I though these tags were mandatory, but they are not. Thx all for your help. Geoff Howard wrote: There is definitely something horribly wrong there. 1) Does this happen if you get rid of encoding, doctype-public, and doctype-system tags? 2) What version of cocoon are you using? Geoff Howard -Original Message- From: Sebastien SACARD [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 2:55 AM To: [EMAIL PROTECTED] Subject: Re: how to remove the DTD wriiten at the top ? Vadim Gritsenko wrote: From: Sebastien SACARD [mailto:[EMAIL PROTECTED]] Hi, I can't get rid off the DTD declaration written on top of the HTML pages created with a default serializer : map:serializers default=html map:serializer name=html mime-type=text/html; charset ISO-8859-1 src=org.apache.cocoon.serialization.HTMLSerializer encodingISO-8859-1/encoding doctype-public-//W3C//DTD HTML 4.0 Transitional//EN /doctype-public doctype-systemhttp://www.w3.org/TR/REC-html40/loose.dtd/do ctype-syste m omit-xml-declarationtrue/omit-xml-declaration indent1/indent /map:serializer I thought the omit-xml-declaration was doing the trick, It omits *XML* declaration. According to spec, this is: ?xml ... ? but it's not. Is there somewhere else a parameter to define in order to remove these 30ko of datas off my pages ? You mean 30 bytes? Try map:serializers default=html map:serializer name=html mime-type=text/html; charset ISO-8859-1 src=org.apache.cocoon.serialization.HTMLSerializer encodingISO-8859-1/encoding omit-xml-declarationtrue/omit-xml-declaration /map:serializer Or, don't use HTML serializer then, use XML serializer. It will not write doctype. Vadim Thanks a lot Hi all, Unfortunatly, these tips did not work. Even when I serialise to XML everything stay in the header of my page. I really mean it's about 30ko, not 30 bytes. Here is what is included in my page, maybe it'll help you to understand my problem : !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN http://www.w3.org/TR/REC-html40/loose.dtd; !-- Extensible HTML version 1.0 Transitional DTD This is the same as HTML 4.0 Transitional except for changes due to the differences between XML and SGML. Namespace = http://www.w3.org/1999/xhtml For further information, see: http://www.w3.org/TR/xhtml1 Copyright (c) 1998-2000 W3C (MIT, INRIA, Keio), All Rights Reserved. This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN SYSTEM http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; $Revision: 1.1 $ $Date: 2000/01/26 14:08:56 $ --!-- Character mnemonic entities =--!-- Portions (C) International Organization for Standardization 1986 Permission to copy in any form is granted for use with conforming SGML systems and applications as defined in ISO 8879, provided this notice is included in all copies. --!-- Character entity set. Typical invocation: !ENTITY % HTMLlat1 PUBLIC -//W3C//ENTITIES Latin 1 for XHTML//EN http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent; %HTMLlat1; --!-- no-break space = non-breaking space, U+00A0 ISOnum --!-- inverted exclamation mark, U+00A1 ISOnum --!-- cent sign, U+00A2 ISOnum --!-- pound sign, U+00A3 ISOnum --!-- currency sign, U+00A4 ISOnum --!-- yen sign = yuan sign, U+00A5 ISOnum --!-- broken bar = broken vertical bar, U+00A6 ISOnum --!-- section sign, U+00A7 ISOnum --!-- diaeresis = spacing diaeresis, U+00A8 ISOdia --!-- copyright sign, U+00A9 ISOnum --!-- feminine ordinal indicator, U+00AA ISOnum --!-- left-pointing double angle quotation mark = left pointing guillemet, U+00AB ISOnum --!-- not sign = discretionary hyphen, U+00AC ISOnum --!-- soft hyphen = discretionary hyphen, U+00AD ISOnum --!-- registered sign = registered trade mark sign, U+00AE ISOnum --!-- macron = spacing macron = overline = APL overbar, U+00AF ISOdia --!-- degree sign, U+00B0 ISOnum --!-- plus-minus sign = plus-or-minus sign, U+00B1 ISOnum --!-- superscript two = superscript digit two = squared, U+00B2 ISOnum --!-- superscript three = superscript digit three = cubed, U+00B3 ISOnum --!-- acute accent = spacing acute, U+00B4 ISOdia --!-- micro sign, U+00B5 ISOnum --!-- pilcrow sign = paragraph sign, U+00B6 ISOnum --!-- middle dot = Georgian comma
RE: how to remove the DTD wriiten at the top ?
There is definitely something horribly wrong there. 1) Does this happen if you get rid of encoding, doctype-public, and doctype-system tags? 2) What version of cocoon are you using? Geoff Howard -Original Message- From: Sebastien SACARD [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 2:55 AM To: [EMAIL PROTECTED] Subject: Re: how to remove the DTD wriiten at the top ? Vadim Gritsenko wrote: From: Sebastien SACARD [mailto:[EMAIL PROTECTED]] Hi, I can't get rid off the DTD declaration written on top of the HTML pages created with a default serializer : map:serializers default=html map:serializer name=html mime-type=text/html; charset ISO-8859-1 src=org.apache.cocoon.serialization.HTMLSerializer encodingISO-8859-1/encoding doctype-public-//W3C//DTD HTML 4.0 Transitional//EN /doctype-public doctype-systemhttp://www.w3.org/TR/REC-html40/loose.dtd/do ctype-syste m omit-xml-declarationtrue/omit-xml-declaration indent1/indent /map:serializer I thought the omit-xml-declaration was doing the trick, It omits *XML* declaration. According to spec, this is: ?xml ... ? but it's not. Is there somewhere else a parameter to define in order to remove these 30ko of datas off my pages ? You mean 30 bytes? Try map:serializers default=html map:serializer name=html mime-type=text/html; charset ISO-8859-1 src=org.apache.cocoon.serialization.HTMLSerializer encodingISO-8859-1/encoding omit-xml-declarationtrue/omit-xml-declaration /map:serializer Or, don't use HTML serializer then, use XML serializer. It will not write doctype. Vadim Thanks a lot Hi all, Unfortunatly, these tips did not work. Even when I serialise to XML everything stay in the header of my page. I really mean it's about 30ko, not 30 bytes. Here is what is included in my page, maybe it'll help you to understand my problem : !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN http://www.w3.org/TR/REC-html40/loose.dtd; !-- Extensible HTML version 1.0 Transitional DTD This is the same as HTML 4.0 Transitional except for changes due to the differences between XML and SGML. Namespace = http://www.w3.org/1999/xhtml For further information, see: http://www.w3.org/TR/xhtml1 Copyright (c) 1998-2000 W3C (MIT, INRIA, Keio), All Rights Reserved. This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN SYSTEM http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; $Revision: 1.1 $ $Date: 2000/01/26 14:08:56 $ --!-- Character mnemonic entities =--!-- Portions (C) International Organization for Standardization 1986 Permission to copy in any form is granted for use with conforming SGML systems and applications as defined in ISO 8879, provided this notice is included in all copies. --!-- Character entity set. Typical invocation: !ENTITY % HTMLlat1 PUBLIC -//W3C//ENTITIES Latin 1 for XHTML//EN http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent; %HTMLlat1; --!-- no-break space = non-breaking space, U+00A0 ISOnum --!-- inverted exclamation mark, U+00A1 ISOnum --!-- cent sign, U+00A2 ISOnum --!-- pound sign, U+00A3 ISOnum --!-- currency sign, U+00A4 ISOnum --!-- yen sign = yuan sign, U+00A5 ISOnum --!-- broken bar = broken vertical bar, U+00A6 ISOnum --!-- section sign, U+00A7 ISOnum --!-- diaeresis = spacing diaeresis, U+00A8 ISOdia --!-- copyright sign, U+00A9 ISOnum --!-- feminine ordinal indicator, U+00AA ISOnum --!-- left-pointing double angle quotation mark = left pointing guillemet, U+00AB ISOnum --!-- not sign = discretionary hyphen, U+00AC ISOnum --!-- soft hyphen = discretionary hyphen, U+00AD ISOnum --!-- registered sign = registered trade mark sign, U+00AE ISOnum --!-- macron = spacing macron = overline = APL overbar, U+00AF ISOdia --!-- degree sign, U+00B0 ISOnum --!-- plus-minus sign = plus-or-minus sign, U+00B1 ISOnum --!-- superscript two = superscript digit two = squared, U+00B2 ISOnum --!-- superscript three = superscript digit three = cubed, U+00B3 ISOnum --!-- acute accent = spacing acute, U+00B4 ISOdia --!-- micro sign, U+00B5 ISOnum --!-- pilcrow sign = paragraph sign, U+00B6 ISOnum --!-- middle dot = Georgian comma =
Re: how to remove the DTD wriiten at the top ?
Vadim Gritsenko wrote: From: Sebastien SACARD [mailto:[EMAIL PROTECTED]] Hi, I can't get rid off the DTD declaration written on top of the HTML pages created with a default serializer : map:serializers default=html map:serializer name=html mime-type=text/html; charset ISO-8859-1 src=org.apache.cocoon.serialization.HTMLSerializer encodingISO-8859-1/encoding doctype-public-//W3C//DTD HTML 4.0 Transitional//EN /doctype-public doctype-systemhttp://www.w3.org/TR/REC-html40/loose.dtd/doctype-syste m omit-xml-declarationtrue/omit-xml-declaration indent1/indent /map:serializer I thought the omit-xml-declaration was doing the trick, It omits *XML* declaration. According to spec, this is: ?xml ... ? but it's not. Is there somewhere else a parameter to define in order to remove these 30ko of datas off my pages ? You mean 30 bytes? Try map:serializers default=html map:serializer name=html mime-type=text/html; charset ISO-8859-1 src=org.apache.cocoon.serialization.HTMLSerializer encodingISO-8859-1/encoding omit-xml-declarationtrue/omit-xml-declaration /map:serializer Or, don't use HTML serializer then, use XML serializer. It will not write doctype. Vadim Thanks a lot Hi all, Unfortunatly, these tips did not work. Even when I serialise to XML everything stay in the header of my page. I really mean it's about 30ko, not 30 bytes. Here is what is included in my page, maybe it'll help you to understand my problem : !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN http://www.w3.org/TR/REC-html40/loose.dtd; !-- Extensible HTML version 1.0 Transitional DTD This is the same as HTML 4.0 Transitional except for changes due to the differences between XML and SGML. Namespace = http://www.w3.org/1999/xhtml For further information, see: http://www.w3.org/TR/xhtml1 Copyright (c) 1998-2000 W3C (MIT, INRIA, Keio), All Rights Reserved. This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN SYSTEM http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; $Revision: 1.1 $ $Date: 2000/01/26 14:08:56 $ --!-- Character mnemonic entities =--!-- Portions (C) International Organization for Standardization 1986 Permission to copy in any form is granted for use with conforming SGML systems and applications as defined in ISO 8879, provided this notice is included in all copies. --!-- Character entity set. Typical invocation: !ENTITY % HTMLlat1 PUBLIC -//W3C//ENTITIES Latin 1 for XHTML//EN http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent; %HTMLlat1; --!-- no-break space = non-breaking space, U+00A0 ISOnum --!-- inverted exclamation mark, U+00A1 ISOnum --!-- cent sign, U+00A2 ISOnum --!-- pound sign, U+00A3 ISOnum --!-- currency sign, U+00A4 ISOnum --!-- yen sign = yuan sign, U+00A5 ISOnum --!-- broken bar = broken vertical bar, U+00A6 ISOnum --!-- section sign, U+00A7 ISOnum --!-- diaeresis = spacing diaeresis, U+00A8 ISOdia --!-- copyright sign, U+00A9 ISOnum --!-- feminine ordinal indicator, U+00AA ISOnum --!-- left-pointing double angle quotation mark = left pointing guillemet, U+00AB ISOnum --!-- not sign = discretionary hyphen, U+00AC ISOnum --!-- soft hyphen = discretionary hyphen, U+00AD ISOnum --!-- registered sign = registered trade mark sign, U+00AE ISOnum --!-- macron = spacing macron = overline = APL overbar, U+00AF ISOdia --!-- degree sign, U+00B0 ISOnum --!-- plus-minus sign = plus-or-minus sign, U+00B1 ISOnum --!-- superscript two = superscript digit two = squared, U+00B2 ISOnum --!-- superscript three = superscript digit three = cubed, U+00B3 ISOnum --!-- acute accent = spacing acute, U+00B4 ISOdia --!-- micro sign, U+00B5 ISOnum --!-- pilcrow sign = paragraph sign, U+00B6 ISOnum --!-- middle dot = Georgian comma = Greek middle dot, U+00B7 ISOnum --!-- cedilla = spacing cedilla, U+00B8 ISOdia --!-- superscript one = superscript digit one, U+00B9 ISOnum --!-- masculine ordinal indicator, U+00BA ISOnum --!-- right-pointing double angle quotation mark = right pointing guillemet, U+00BB ISOnum --!-- vulgar fraction one quarter = fraction one quarter, U+00BC ISOnum --!-- vulgar fraction one half = fraction one