[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: adding unparsed entities
Hi, > I am transforming a document to TEI.2. TEI.2 requires that graphics > (such as JPEGS) be included using unparsed entities. > > I assume there is no way to really add an unparsed entity to a result > tree (except by using escaping, which I don't like to do). Am > I correct? > Has anyone come across this problem? You could use extensions offered by some processors, e.g. Saxon gives you <saxon:doctype xsl:extension-element-prefixes="saxon"> <dtd:doctype name="booklist"> <dtd:entity name="cover" system="cover.gif" notation="GIF"/> <dtd:notation name="GIF" system="http://gif.org/"/> </dtd:doctype> </saxon:doctype> or you could write out the entity declarations as processing instructions and use your own serializer to turn them into entity declarations in the internal subset. Cheers, Jarno - Painbastard: Damned To Suffer
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|