Hi,

 

I’m trying to have my PDF created from a xml document based on docbook DTD, reusing Norm’s docbook sourceforge xsl pack.

The good thing is that the xsl:fo is well generated, but there are errors when going through the FOP serializer.

There where errors when the backround-xxx attribute where encountered.

So I remove them by changing this line in the /docbook/fo/param.xsl :

<xsl:param name="draft.watermark.image" select="'http://docbook.sourceforge.net/release/images/draft.png'"/>

into

<xsl:param name="draft.watermark.image" select=" "/>

But it still doesn’t work !

 

This link to download docbook xsl kit : http://sourceforge.net/project/showfiles.php?group_id=21935

 

Here is the code :

docbook.xpl

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"> 

 

  <p:processor uri="oxf/processor/request">

    <p:input name="config">

      <config>

         <include>/request/parameters</include>

       </config>

    </p:input>

    <p:output name="data" id="request"/>

  </p:processor>

 

  <p:processor uri="oxf/processor/url-generator">

    <p:input name="config" href="aggregate('config', #request#xpointer(concat('oxf:/', /request/parameters/parameter[name='target']/value)))" />

    <p:output name="data" id="document" />

   </p:processor>

 

  <p:processor uri="oxf/processor/xslt">    

    <p:input name="data" href="#document" />

    <p:input name="config" href="oxf:/docbook/fo/docbook.xsl" />

    <p:output name="data" id="fo"/>

  </p:processor>

 

  <p:processor uri="oxf/processor/fop">

    <p:input name="config">

      <config/>

    </p:input>

    <p:input name="data" href="#fo"/>

  </p:processor>

 

</p:config>

 

A sample docbook xml file :

docbookSample.xpl

<?xml version="1.0" encoding="ISO-8859-1"?>

<article>

  <articleinfo>

    <title>This is a test </title>

    <author>

      <firstname>Bernard</firstname>

      <surname>Dupont</surname>

      <affiliation>

        <address>

          <email>[EMAIL PROTECTED]</email>

        </address>

      </affiliation>

    </author>

  </articleInfo>

</article>

 

Thanks for any help !

 

_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to