This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FO question


ryoko sato wrote:
> I want to display a text document from URL in a pdf file, but I have no idea
> how to write it in my xsl file. I’m also not sure if I can do that or not.
> Does anybody know it, please let me know.
> 
> I'm looking for the tag, which corresponds to that for an image,
> “external-graphics” because a resource of an image might be from URL. That
> is, I want to write something like this:

There is no such tag.
You can try various workarounds, including
implementing your own FO extension elements.

A simple possibility could be to declare
your text document as external parsed entity:

<?xml version="1.0"?>
<!DOCTYPE fo:root [
<!ENTITY text SYSTEM "http://foo/bar.text">
]>
<fo:root>
  ...
    <fo:block>&text;</fo:block>

(Beware: Untested, and possibly dependent on
environment)
It is recommended to migrate your data into
an XML document, which is more amenable to
convenient processing.

J.Pietschmann


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]