You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Voytenko, Dimitry" <DV...@SECTORBASE.COM> on 2000/09/20 08:43:24 UTC
RE: disable-output-escaping
Because XML parser can't parse this fragment. XML-Parser doesn't know
anything about "disable-output-escaping" it works just accroding XML
specification. "disable-output-escaping" is used by XSLT for output. So try
<xsl:text disable-output-escaping="yes"> < </xsl:text>
And you will get exactly what you need. One more way - you can use CDATA
sections
-----Original Message-----
From: Andy Bosch [mailto:Andy_Bosch@csi.com]
Sent: Tuesday, September 19, 2000 23:52
To: xalan-dev@xml.apache.org
Subject: xsl: disable-output-escaping
Hi,
I tried the really good sounding thing named _disable-output-escaping_
like this:
<xsl:text disable-output-escaping="yes"> < </xsl:text>
I am using coccon1.7.2. When I try to process this xsl-file with the
line above I always get the error message:
org.xml.sax.SAXParseException:
The content of elements must consist of well-formed character
Whats the reason? Why does it not work?
Thanks,
Andy
Re: disable-output-escaping
Posted by Andy Bosch <An...@csi.com>.
Ok, I agree.
But when using this, my output in the html-file is
also <
And I want a real < in the output-file. Does perhaps
cocoon ignore the disable-output instruction?
Andy
"Voytenko, Dimitry" wrote:
>
> Because XML parser can't parse this fragment. XML-Parser doesn't know
> anything about "disable-output-escaping" it works just accroding XML
> specification. "disable-output-escaping" is used by XSLT for output. So try
>
> <xsl:text disable-output-escaping="yes"> < </xsl:text>
>
> And you will get exactly what you need. One more way - you can use CDATA
> sections
>
> -----Original Message-----
> From: Andy Bosch [mailto:Andy_Bosch@csi.com]
> Sent: Tuesday, September 19, 2000 23:52
> To: xalan-dev@xml.apache.org
> Subject: xsl: disable-output-escaping
>
> Hi,
>
> I tried the really good sounding thing named _disable-output-escaping_
> like this:
>
> <xsl:text disable-output-escaping="yes"> < </xsl:text>
>
> I am using coccon1.7.2. When I try to process this xsl-file with the
> line above I always get the error message:
>
> org.xml.sax.SAXParseException:
> The content of elements must consist of well-formed character
>
> Whats the reason? Why does it not work?
>
> Thanks,
> Andy