[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: adding unparsed entities

Subject: RE: adding unparsed entities
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Wed, 9 Jun 2004 09:29:15 +0300
saxon doctype
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
Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.