sorry for being vague ;-) I am am serialising my output to xhtml:
<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 </doctype-public>
</doctype-system>
<!--<encoding>UTF-8</encoding>//-->
</encoding>
</indent>
</map:serializer>
I have now manages to solve the previous problem. What I cannot now understand is why
<![CDATA[
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a && i<a.length && (x=a[i]) && x.oSrc;i++) x.src=x.oSrc;
}
]]>
is being output to the browser as:
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a && i<a.length && (x=a[i]) && x.oSrc;i++) x.src=x.oSrc;
}
I have included my xsl stylesheet or your attention
regards
Andrew
home-page.xsl
Description: application/applefile
home-page.xsl
Description: application/text
On 31 Jul 2004, at 20:40, Ben Pope wrote:
Try being a bit more specific, I still don't know what it is that you intend
to do.
I have no idea why you created a DTD for the entity.
If you want to output html by writing it inside your XSLT as you would in an
editor, without having to worry about the parser parsing it, or the
serialiser playing with it, do this:
<xsl:text disable-output-escaping="yes"><![CDATA[ <!-- and other html
stuff -->]]></xsl:text>
The CDATA section makes the parser leave it alone, and the DOE makes the
serialiser leave it alone.
Which should have been described fully in the references I gave.
Enjoy.
Ben
________________________________
From: beyaNet [mailto:[EMAIL PROTECTED]
Sent: 31 July 2004 10:36
To: [EMAIL PROTECTED]
Subject: Re: html entity problem
Hi Ben,
thanks for your reply. I have included the following code into my xsl
template which seems to solve the problem, but introduces another one:
<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
]>
When the xhtml page is generated it renders the following character to the
screen:
�
How do i resolve that?
thanks
Andrew
On 31 Jul 2004, at 10:14, Ben Pope wrote:
Hi,
Handle them how?
You may find these two pages useful, that basically deal with the
input and
output:
http://www.dpawson.co.uk/xsl/sect2/cdata.html
http://www.dpawson.co.uk/xsl/sect2/N2215.html
Pay particular attention to:
http://www.dpawson.co.uk/xsl/sect2/N2215.html#d3358e217
To determine when each is useful (Might as well read this first, if
it
doesn't make sense, look above)
Ben
-----Original Message-----
From: beyaNet [mailto:[EMAIL PROTECTED]
Sent: 31 July 2004 09:59
To: [EMAIL PROTECTED]
Subject: html entity problem
Hi,
what code do I need to place inside my xsl template to handle html
entities
such as ?
thanks
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
