[xep-support] Using entities for images in XEP
W. Eliot Kimber
eliot at isogen.com
Thu Jan 30 07:34:49 PST 2003
Nikolai Grigoriev wrote:
> Geurt,
>
>
>>Does XEP support constructs like:
>>
>><?xml version="1.0"?>
>><!DOCTYPE dog [
>> <!NOTATION JPEG SYSTEM "Joint Photographic Experts Group">
>> <!ENTITY colliepic SYSTEM "lassie.jpg" NDATA JPEG>
>> <!ELEMENT dog EMPTY>
>> <!ATTLIST dog picfile ENTITY #REQUIRED>
>>]>
>><dog picfile="colliepic"/>
This is an XSLT issue--in your XSLT transform you have to dereference
the entity named byh the picfile= attribute to its system ID and, as
Nikolai says, generate src="url($system-id)". E.g:
<xsl:template match="dog">
<fo:block>
<fo:external-graphic src="url({unparsed-entity-uri(@picfile)})"/>
</fo:block>
</xsl:template>
Cheers,
Eliot
--
W. Eliot Kimber, eliot at isogen.com
Consultant, ISOGEN International
1016 La Posada Dr., Suite 240
Austin, TX 78752 Phone: 512.656.4139
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
More information about the Xep-support
mailing list