Dear cocoon members.
My name is Shigeki Kosaka working in Japan.
I need your help, please.
Now I use cocoon1.8.2 in order to translate xml-files with xslt-files.
I want to make the file which fulfills the following two conditions.
But I can't.
condition1:
Following characters should be outputted to the beginning of an output file.
-----------------------------------------------------------------------------------
<?xml version="1.0" encoding="EUC-JP" ?>
<!DOCTYPE bml PUBLIC "+//ARIB STD-B24:1999//DTD BML Document//JA"
"bml_1_0.dtd">
<?bml bml-version="1.0" ?>
-----------------------------------------------------------------------------------
condition2:
Following characters should be outputted to the middle of an output file.
-----------------------------------------------------------------------------------
<![CDATA[
]]>
-----------------------------------------------------------------------------------
I added following charcters to cocoon.properties,
formatter.type.text/bml = org.apache.cocoon.formatter.XMLFormatter
# BML 1.0 (strict)
formatter.text/bml.doctype-public = +//ARIB STD-B24:1999//DTD BML Document//JA
formatter.text/bml.doctype-system = bml_1_0.dtd
formatter.text/bml.encoding = EUC-JP
and I describe the root-node of the xslt-file as below.
<xsl:processing-instruction name="cocoon-format">
type="text/bml"
</xsl:processing-instruction>
<xsl:processing-instruction name="bml">
bml-version="1.0"
</xsl:processing-instruction>
So condition1 is OK! but condition2 is...
<xsl:text disable-output-escaping="yes">
<![CDATA[
...
]]>
</xsl:text>
are translated into
<?xslt-next-is-raw formatter-to-dom?>
<![CDATA[
...
]]>
Next I changed as below...
formatter.type.text/bml = org.apache.cocoon.formatter.HTMLFormatter
So condition2 is OK! as below...
<![CDATA[
<![CDATA[
...
]]]]><![CDATA[>]]>
are translated into
<![CDATA[
...
]]>
But conditon1 is no good, because <?xml version="1.0"
encoding="EUC-JP" ?>..... are not outputted.
How can I get the file which fulfills the two conditions.
Please show me the way.
---------------
Shigeki Kosaka
[EMAIL PROTECTED]
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>