cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frey, David" <DF...@nationaljournal.com>
Subject DOCTYPE declaration with an external entity
Date Thu, 17 Mar 2005 22:44:59 GMT
We are creating a NewsML/NITF doc out of our process.  The header of this
document needs to contain an entity statement.  The very top of this
document should look like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE NewsML SYSTEM "http://nationaljournal.com/dtd/NewsML_1.2.dtd" [
<!ENTITY % nitf SYSTEM "http://nationaljournal.com/dtd/nitf-2-5.dtd">
%nitf;
]> 


Currently I have been pulling the <!DOCTYPE> in by using a <doctype-system>
child tag of serializer:


<!-- 03.09.05.df newsml serializer -->
    <map:serializer logger="sitemap.serializer.xml" mime-type="text/xml"
          name="newsml" src="org.apache.cocoon.serialization.XMLSerializer">
        <cdata-section-elements>p ul</cdata-section-elements>
        <doctype-system>
           http://nationaljournal.com/dtd/NewsML_1.2.dtd
        </doctype-system>
        <encoding>UTF-8</encoding>
    </map:serializer>
<!-- 03.09.05.df END newsml serializer -->

I've scoured the web looking for an answer, but have come up short.  Any
ideas on how to accomplish this?

Best,
David



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


Mime
View raw message