You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andrew M <an...@jibeya.com> on 2004/11/24 18:10:49 UTC
Serialize issue with xhtml
In my xsl page I have the following:
<!ENTITY % ISOnum PUBLIC
"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
"http://www.mysite.com/style/ISOnum.pen">
%ISOnum;
If I do the following in my sitemap all is fine with -
<map:serialize type="html"/>
If I do the following -
<map:serialize type="xhtml"/>
All in the page are rendered as:
Â
And are displayed in to the page. How do I resolve this?
thanks
Andrew
Entity problem when serializing.....
Posted by Andrew M <an...@jibeya.com>.
Any ideas?
xsl file:
<!ENTITY % ISOnum PUBLIC
"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
"http://www.beyarecords.com/style/ISOnum.pen">
%ISOnum;
<!ENTITY nbsp " ">
......
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ft="http://apache.org/cocoon/forms/1.0#template"
xmlns:fi="http://apache.org/cocoon/forms/1.0#instance">
<xsl:template match="/">
<html>
html output:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"
xmlns:ft="http://apache.org/cocoon/forms/1.0#template">
1. How do I prevent the xmlns attributes being copied into the html tag?
2. why is the entity declaration not handling the html entities
( ) correctly? If i place an additional tag before and after the
html tags, then the xmlns are copied to that tag and the page is
rendered correctly minus the fact that the entities are still
not converted correctly. Even if I replace with   directly
in the html code I still get  characters appearing in the html output.
any ideas here will be most appreciated
Andrew
On 24 Nov 2004, at 17:10, Andrew M wrote:
> In my xsl page I have the following:
>
> <!ENTITY % ISOnum PUBLIC
> "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
> "http://www.mysite.com/style/ISOnum.pen">
> %ISOnum;
>
> If I do the following in my sitemap all is fine with -
>
> <map:serialize type="html"/>
>
> If I do the following -
>
> <map:serialize type="xhtml"/>
>
> All in the page are rendered as:
>
> Â
>
> And are displayed in to the page. How do I resolve this?
>
> thanks
>
>
> Andrew
>
>
>
>
Re: Serialize issue with xhtml
Posted by Andrew M <an...@jibeya.com>.
Eric,
got it! thanks for your help. Changed the encoding type to ISO-8859-1
and used   in code instead of ©
regards
Andrew
On 24 Nov 2004, at 20:01, Eric Jacob wrote:
> Hi Andrew,
>
> Check the encoding of your xhtml serializer. By default it is set to
> UTF-8,
> but you seem to use a "Latin" encoding (ISO 8879:1986).
>
> Hope this help.
>
> Eric
>
> PS: I've never seen this encoding before :)
>
> -----Original Message-----
> From: Andrew M [mailto:andrew@jibeya.com]
> Sent: Wednesday, November 24, 2004 2:32 PM
> To: users@cocoon.apache.org
> Subject: Re: Serialize issue with xhtml
>
> anybody have any experience of this?
>
> Andrew
> On 24 Nov 2004, at 17:10, Andrew M wrote:
> In my xsl page I have the following:
>
> <!ENTITY % ISOnum PUBLIC
> "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
> "http://www.mysite.com/style/ISOnum.pen">
> %ISOnum;
>
> If I do the following in my sitemap all is fine with -
>
> <map:serialize type="html"/>
>
> If I do the following -
>
> <map:serialize type="xhtml"/>
>
> All in the page are rendered as:
>
> Â
>
> And are displayed in to the page. How do I resolve this?
>
> thanks
>
>
> Andrew
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
RE: Serialize issue with xhtml
Posted by Eric Jacob <er...@bell.ca>.
Hi Andrew,
Check the encoding of your xhtml serializer. By default it is set to UTF-8,
but you seem to use a "Latin" encoding (ISO 8879:1986).
Hope this help.
Eric
PS: I've never seen this encoding before :)
-----Original Message-----
From: Andrew M [mailto:andrew@jibeya.com]
Sent: Wednesday, November 24, 2004 2:32 PM
To: users@cocoon.apache.org
Subject: Re: Serialize issue with xhtml
anybody have any experience of this?
Andrew
On 24 Nov 2004, at 17:10, Andrew M wrote:
In my xsl page I have the following:
<!ENTITY % ISOnum PUBLIC
"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
"http://www.mysite.com/style/ISOnum.pen">
%ISOnum;
If I do the following in my sitemap all is fine with -
<map:serialize type="html"/>
If I do the following -
<map:serialize type="xhtml"/>
All in the page are rendered as:
Â
And are displayed in to the page. How do I resolve this?
thanks
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Serialize issue with xhtml
Posted by Andrew M <an...@jibeya.com>.
anybody have any experience of this?
Andrew
On 24 Nov 2004, at 17:10, Andrew M wrote:
> In my xsl page I have the following:
>
> <!ENTITY % ISOnum PUBLIC
> "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
> "http://www.mysite.com/style/ISOnum.pen">
> %ISOnum;
>
> If I do the following in my sitemap all is fine with -
>
> <map:serialize type="html"/>
>
> If I do the following -
>
> <map:serialize type="xhtml"/>
>
> All in the page are rendered as:
>
> Â
>
> And are displayed in to the page. How do I resolve this?
>
> thanks
>
>
> Andrew
>
>
>
>