You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Sean Wheller <se...@inwords.co.za> on 2004/10/29 12:04:32 UTC

XHTMLSerializer

Hi,

I have added "XHTMLSerializer" to the Forrest sitemap to be capable of 
receiving input in XHTML10. Like this:

<map:serializer name="xhtml" 
src="org.apache.cocoon.serialization.XMLSerializer"
        		mime-type="text/html" logger="sitemap.serializer.xhtml"
			pool-grow="2" pool-max="64" pool-min="2">
        <doctype-public>-//W3C//DTD XHTML 1.0
			Transitional//EN</doctype-public>
        <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doctype-system>
        <encoding>UTF-8</encoding>
        <indent>yes</indent>
      </map:serializer>

However, when I do http get cocoon just seems to hand or not be able to 
resolve the request. Is there something else I need to do to sitemap.xmap?

Can the "XMLSerializer" accept the loose DTD instead of the strict?
-- 
Sean Wheller
Technical Author
sean@inwords.co.za
http://www.inwords.co.za

Re: XHTMLSerializer

Posted by Ross Gardler <rg...@apache.org>.

Sean Wheller wrote:
> On Friday 29 October 2004 16:37, Ross Gardler wrote:
> 
>>Sean Wheller wrote:
>>
>>>On Friday 29 October 2004 12:04, Sean Wheller wrote:
>>>
>>>>Can the "XMLSerializer" accept the loose DTD instead of the strict?
>>>
>>>Still would like to know if the answer to this question is "yes" or "no."
>>
>>I don't know the answer but the cocoon docs will tell you I would think.
> 
> 
> Yes they only specify "strict", so I wonder if anyone has had any success with 
> "loose". I need loose since the  Docbook XHTML XSL outputs loose by default.

If you use the interpreted HTML method that Forrest already implements 
this problem will go away ;-)

Ross

Re: XHTMLSerializer

Posted by Sean Wheller <se...@inwords.co.za>.
On Friday 29 October 2004 16:37, Ross Gardler wrote:
> Sean Wheller wrote:
> > On Friday 29 October 2004 12:04, Sean Wheller wrote:
> >>Can the "XMLSerializer" accept the loose DTD instead of the strict?
> >
> > Still would like to know if the answer to this question is "yes" or "no."
>
> I don't know the answer but the cocoon docs will tell you I would think.

Yes they only specify "strict", so I wonder if anyone has had any success with 
"loose". I need loose since the  Docbook XHTML XSL outputs loose by default.
-- 
Sean Wheller
Technical Author
sean@inwords.co.za
http://www.inwords.co.za

Re: XHTMLSerializer

Posted by Ross Gardler <rg...@apache.org>.
Sean Wheller wrote:
> On Friday 29 October 2004 12:04, Sean Wheller wrote:
>>Can the "XMLSerializer" accept the loose DTD instead of the strict?
> 
> 
> Still would like to know if the answer to this question is "yes" or "no."
> 

I don't know the answer but the cocoon docs will tell you I would think.

Ross

Re: XHTMLSerializer

Posted by David Crossley <cr...@apache.org>.
Sean Wheller wrote:
> Sean Wheller wrote:
> > I have added "XHTMLSerializer" to the Forrest sitemap to be capable of
> > receiving input in XHTML10. Like this:
> >
> > <map:serializer name="xhtml"
> > src="org.apache.cocoon.serialization.XMLSerializer"
> >                         mime-type="text/html"
> > logger="sitemap.serializer.xhtml" pool-grow="2" pool-max="64" pool-min="2">
> >         <doctype-public>-//W3C//DTD XHTML 1.0
> >                         Transitional//EN</doctype-public>
> >        
> > <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</do
> >ctype-system> <encoding>UTF-8</encoding>
> >         <indent>yes</indent>
> >       </map:serializer>
> >
> > However, when I do http get cocoon just seems to hand or not be able to
> > resolve the request. Is there something else I need to do to sitemap.xmap?
> 
> Fixed this it was nothing to do  with the new serializer, just catalog 
> problems.
>
> > Can the "XMLSerializer" accept the loose DTD instead of the strict?
> 
> Still would like to know if the answer to this question is "yes" or "no."

I think that those parameters are only to tell the serializer
the document type declaration to add to the output xhtml,
i.e. it could be "-//Foo//Bar//EN" if you want.

-- 
David Crossley


Re: XHTMLSerializer

Posted by Sean Wheller <se...@inwords.co.za>.
On Friday 29 October 2004 12:04, Sean Wheller wrote:
> I have added "XHTMLSerializer" to the Forrest sitemap to be capable of
> receiving input in XHTML10. Like this:
>
> <map:serializer name="xhtml"
> src="org.apache.cocoon.serialization.XMLSerializer"
>                         mime-type="text/html"
> logger="sitemap.serializer.xhtml" pool-grow="2" pool-max="64" pool-min="2">
>         <doctype-public>-//W3C//DTD XHTML 1.0
>                         Transitional//EN</doctype-public>
>        
> <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</do
>ctype-system> <encoding>UTF-8</encoding>
>         <indent>yes</indent>
>       </map:serializer>
>
> However, when I do http get cocoon just seems to hand or not be able to
> resolve the request. Is there something else I need to do to sitemap.xmap?

Fixed this it was nothing to do  with the new serializer, just catalog 
problems.

>
> Can the "XMLSerializer" accept the loose DTD instead of the strict?

Still would like to know if the answer to this question is "yes" or "no."

-- 
Sean Wheller
Technical Author
sean@inwords.co.za
http://www.inwords.co.za