maybe something like

<map:match pattern="*.pdf">
<map:generate src="xdocs/{1}.xml"/>
<map:transform src="stylesheets/document2fo.xsl"/>
<map:transform src="stylesheets/fix-imagelinks.xsl">
<map:parameter name="ctxroot" value="{realpath:/}"/>
<map:parameter name="context" value="{request:sitemapURI}"/>
<map:parameter name="dir" value="/"/>
</map:transform>
<map:serialize type="fo2pdf"/>
<map:serialize type="xml"/>
</map:match>

Marc

Omer kamal a écrit :

*Dear Adam,*

* *

*Thanks for kind reply.*

*I saw it, but I think its half way solution to my problem yet.*

*In this sample their source is already a FO file. *

* *

*I don’t know how I can fix this problem. *

*Is this possible that I could create FO file dynamically, and later use it with*

*This fix-imagelinks.xsl, so it could tell the FO that where these links should be read?*

* *

*I am sure it’s possible, but I have lack of knowledge how to manage these both in a pipeline. *

*I tried all today if I could find some online example or tutorial but could not succeed yet.*

*With Regards,*

*Omer Kamal Khattak*

*/http://www.starnic.net/kamal/index.php/*

-----Original Message-----
*From:* Adam Ratcliffe [mailto:[EMAIL PROTECTED]
*Sent:* March 12, 2005 11:09 PM
*To:* [email protected]
*Subject:* RE: external-graphics tag problem in Cocoon

Hi Omer

Do you see the images in the documents created in the fop samples block?

Cheers

Adam

    -----Original Message-----
    *From:* Omer Kamal [mailto:[EMAIL PROTECTED]
    *Sent:* Sunday, 13 March 2005 10:09 a.m.
    *To:* [email protected]
    *Subject:* fo:external-graphics tag problem in Cocoon

    I am creating PDF with Cocoon 2.1.6 .I am having a problem with
    <fo: external-graphics> tag.

    I can’t see the image in my document.

    Some body advised me to use absolute path but I am not sure how it
    works in Cocoon.
    I am sure there is some unique way to do it.

    I tried with many option but don’t know why it not works.
    My that part of code view for some options is as under;

    (1)

    *<fo: static-content flow-name="xsl-region-before">

    <fo: block>
    <fo: external-graphics width="1.75in" src=url"('file://\C:\Program
    Files\cocoon-2.1.6\build\webapp\mypdf\canadaflag.jpg')"/>

    </fo: block>*

    /* tried also without single coots in the braces and without using
    file://\ <file:///%5C%5C> thing.
    /
    (2)



    *<fo: static-content flow-name="xsl-region-before">

    <fo:block>
    <fo:external-graphics width="200px" height="200px"
    src="http://localhost:8888/mypdf/canadaflag.jpg"/
    <http://localhost:8888/mypdf/canadaflag.jpg%22/>>

    </fo:block>*




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to