At 11:32 AM 1/9/2006, Mark Barratt wrote:
>In this case I need to suck in xhtml character entities but save out 
>UTF-8-encoded Unicode for the next application in the workflow

   Create two versions of the DTD, one with the entity declarations and one 
without. Use the one with the entity declarations to import your document 
and the one without the declarations for export. I'd create the following 

main.dtd (element type and attribute definition list declarations)

entity.mod (module with entity declarations)

    <!ENTITY % main SYSTEM "main.dtd">
    <!ENTITY % entity SYSTEM "entity.mod">

Then I'd import files that start:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xxx SYSTEM "main.entity.dtd">

However, I'd specify main.dtd as the DTD in the XML application.


Lynne A. Price
Text Structure Consulting, Inc.
Specializing in structured FrameMaker consulting, application development, 
and training
lprice at  
voice/fax: (510) 583-1505      cell phone: (510) 421-2284 

Reply via email to