Subject: Re: FO question
From: "ryoko sato" <satoury@xxxxxxxxxxx>
Date: Mon, 24 Jun 2002 15:21:03 +0900
|
Thanks for your reply, Mr. Pietschmann!
I finally succeeded in showing a text data from URL in a pdf file!
As you mentioned, I used the ENTITY command in DTD file and specified the
entity name in xml file.
My work is as follows:
In xml file,
<?xml version="1.0" encoding='Shift_JIS'?>
…
<url>&urltext;</url>
…
In xsl file,
<xsl:template match="url">
<fo:block
<xsl:apply-templates />
</fo:block>
</xsl:template>
and in dtd file,
<!ENTITY urltext SYSTEM "URL">
I really appreciate for your help!
Thank you very much!
Ryoko
----- Original Message -----
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Saturday, June 22, 2002 6:05 AM
Subject: 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
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- FO question
- ryoko sato - Fri, 21 Jun 2002 02:10:26 -0400 (EDT)
- J.Pietschmann - Fri, 21 Jun 2002 17:05:12 -0400 (EDT)
- ryoko sato - Mon, 24 Jun 2002 02:20:23 -0400 (EDT) <=
|
|