You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Magne Skjeret <ma...@nsd.uib.no> on 2003/03/31 13:42:52 UTC
Changing doctype (newbi)
Hi
I have some problems with the doctype of a page.
I want to set the doctype for one xsp page different from the others.
I want to have the frameset dtd on the frameset ( of course).
I have no luck adding the doctype to the the frameset. The loose.dtd is
applied to all pages. And it is even applied twice.
Does anyone have a clue?
I have two entries in my sitemap.xmap
<map:match pattern="">
<map:generate src="xsp/index.xsp" type="serverpages"/>
<map:transform type="i18n"/>
<map:transform src="xsl/index.xsl"/>
<map:serialize name="frame"/>
</map:match>
<map:match pattern="xsp/*">
<map:generate src="xsp/{1}.xsp" type="serverpages"/>
<map:transform type="i18n"/>
<map:transform src="xsl/{1}.xsl"/>
<map:serialize name="html"/>
</map:match>
And two serializers
<map:serializer logger="sitemap.serializer.html" mime-type="text/html"
name="html" pool-grow="4" pool-max="32" pool-min="4"
src="org.apache.cocoon.serialization.HTMLSerializer">
<buffer-size>1024</buffer-size>
<doctype-public>-//W3C//DTD HTML 4.01
Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
<encoding>UTF-8</encoding>
<indent>1</indent>
<omit-xml-declaration>no</omit-xml-declaration>
</map:serializer>
<map:serializer logger="sitemap.serializer.html"
mime-type="text/html" name="frame" pool-grow="4" pool-max="32" pool-min="4"
src="org.apache.cocoon.serialization.HTMLSerializer">
<buffer-size>1024</buffer-size>
<doctype-public>-//W3C//DTD HTML 4.01
Frameset//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/html4/frameset.dtd</doctype-system>
<encoding>UTF-8</encoding>
<indent>1</indent>
<omit-xml-declaration>no</omit-xml-declaration>
</map:serializer>
Magne
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Changing doctype (newbi)
Posted by Magne Skjeret <ma...@nsd.uib.no>.
At 13:52 31.03.2003 +0200, you wrote:
>hum, I think you have an error in your sitemap.
>
> <map:serialize name="frame"/> should be <map:serialize type="frame"/>.
Ah. That made thing a whole lot better :-)
But I still get the doctype twice in the html. Both for frameset and
'normal' pages
Magne
>Lionel
>
>At 13:42 31/03/2003 +0200, you wrote:
>>Hi
>>
>>I have some problems with the doctype of a page.
>>
>>I want to set the doctype for one xsp page different from the others.
>>I want to have the frameset dtd on the frameset ( of course).
>>
>>I have no luck adding the doctype to the the frameset. The loose.dtd is
>>applied to all pages. And it is even applied twice.
>>
>>Does anyone have a clue?
>>
>>
>>
>>I have two entries in my sitemap.xmap
>>
>><map:match pattern="">
>> <map:generate src="xsp/index.xsp" type="serverpages"/>
>> <map:transform type="i18n"/>
>> <map:transform src="xsl/index.xsl"/>
>> <map:serialize name="frame"/>
>> </map:match>
>>
>>
>> <map:match pattern="xsp/*">
>> <map:generate src="xsp/{1}.xsp" type="serverpages"/>
>> <map:transform type="i18n"/>
>> <map:transform src="xsl/{1}.xsl"/>
>> <map:serialize name="html"/>
>> </map:match>
>>
>>And two serializers
>>
>><map:serializer logger="sitemap.serializer.html" mime-type="text/html"
>>name="html" pool-grow="4" pool-max="32" pool-min="4"
>>src="org.apache.cocoon.serialization.HTMLSerializer">
>> <buffer-size>1024</buffer-size>
>> <doctype-public>-//W3C//DTD HTML 4.01
>> Transitional//EN</doctype-public>
>><doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
>> <encoding>UTF-8</encoding>
>> <indent>1</indent>
>> <omit-xml-declaration>no</omit-xml-declaration>
>> </map:serializer>
>>
>> <map:serializer logger="sitemap.serializer.html"
>> mime-type="text/html" name="frame" pool-grow="4" pool-max="32"
>> pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">
>> <buffer-size>1024</buffer-size>
>> <doctype-public>-//W3C//DTD HTML 4.01
>> Frameset//EN</doctype-public>
>><doctype-system>http://www.w3.org/TR/html4/frameset.dtd</doctype-system>
>> <encoding>UTF-8</encoding>
>> <indent>1</indent>
>> <omit-xml-declaration>no</omit-xml-declaration>
>> </map:serializer>
>>
>>
>>
>>Magne
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Changing doctype (newbi)
Posted by Lionel Crine <cr...@4dconcept.fr>.
hum, I think you have an error in your sitemap.
<map:serialize name="frame"/> should be <map:serialize type="frame"/>.
Lionel
At 13:42 31/03/2003 +0200, you wrote:
>Hi
>
>I have some problems with the doctype of a page.
>
>I want to set the doctype for one xsp page different from the others.
>I want to have the frameset dtd on the frameset ( of course).
>
>I have no luck adding the doctype to the the frameset. The loose.dtd is
>applied to all pages. And it is even applied twice.
>
>Does anyone have a clue?
>
>
>
>I have two entries in my sitemap.xmap
>
><map:match pattern="">
> <map:generate src="xsp/index.xsp" type="serverpages"/>
> <map:transform type="i18n"/>
> <map:transform src="xsl/index.xsl"/>
> <map:serialize name="frame"/>
> </map:match>
>
>
> <map:match pattern="xsp/*">
> <map:generate src="xsp/{1}.xsp" type="serverpages"/>
> <map:transform type="i18n"/>
> <map:transform src="xsl/{1}.xsl"/>
> <map:serialize name="html"/>
> </map:match>
>
>And two serializers
>
><map:serializer logger="sitemap.serializer.html" mime-type="text/html"
>name="html" pool-grow="4" pool-max="32" pool-min="4"
>src="org.apache.cocoon.serialization.HTMLSerializer">
> <buffer-size>1024</buffer-size>
> <doctype-public>-//W3C//DTD HTML 4.01
> Transitional//EN</doctype-public>
>
><doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
> <encoding>UTF-8</encoding>
> <indent>1</indent>
> <omit-xml-declaration>no</omit-xml-declaration>
> </map:serializer>
>
> <map:serializer logger="sitemap.serializer.html"
> mime-type="text/html" name="frame" pool-grow="4" pool-max="32"
> pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">
> <buffer-size>1024</buffer-size>
> <doctype-public>-//W3C//DTD HTML 4.01
> Frameset//EN</doctype-public>
>
><doctype-system>http://www.w3.org/TR/html4/frameset.dtd</doctype-system>
> <encoding>UTF-8</encoding>
> <indent>1</indent>
> <omit-xml-declaration>no</omit-xml-declaration>
> </map:serializer>
>
>
>
>Magne
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org