You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Yury Mikhienko <Yu...@mobicomk.ru> on 2003/07/03 18:07:23 UTC

serializing the
, elements

Hi all!

The one more question:

Why HTMLSerializer serialize the <br/> element as <br>?
Can I change this?

Thanks!
-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: serializing the
, elements

Posted by Yury Mikhienko <Yu...@mobicomk.ru>.
Very difficult include the HTML content as XML from datastore into document without jTidy hence.
:(((((

> Simple answer: because that's HTML :-)
> 
> You can use the <serializer type="xhtml"/>. It's an XMLSerializer, but Xalan 
> has a logic to recognize whether it's XHTML or not (I guess by the root 
> element). You should get <br /> then.
> 
> Joerg
> 
> Yury Mikhienko wrote:
> > Hi all!
> > 
> > The one more question:
> > 
> > Why HTMLSerializer serialize the <br/> element as <br>?
> > Can I change this?
> > 
> > Thanks!
> 

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: serializing the
, elements

Posted by Joerg Heinicke <jo...@gmx.de>.
Simple answer: because that's HTML :-)

You can use the <serializer type="xhtml"/>. It's an XMLSerializer, but Xalan 
has a logic to recognize whether it's XHTML or not (I guess by the root 
element). You should get <br /> then.

Joerg

Yury Mikhienko wrote:
> Hi all!
> 
> The one more question:
> 
> Why HTMLSerializer serialize the <br/> element as <br>?
> Can I change this?
> 
> Thanks!

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org