But then, what is the purpose of extensions? There are several extensions
which generate barcodes (barcode4j, zxing-fop-qrcode)... so if I follow your
reasoning, we should not use those and rather pre-generate the images and
use fo:external-graphic, right?

I don't see what you're talking about FOP supporting natively MediaWiki. How
does it support MediaWiki?

What I want to do is create an extension which can create a subtree of the
FO tree (and reusing basic nodes like Block, Table, FOText) but I can't find
any documentation explaining how to do that (if it's possible). I'd prefer
an extension doing the wiki->fo transformation in one pass instead of having
to write two XSL's with intermediate results:

<root>
    <description>
      * item1
      * item2
    </description>
</root>

transformed to:

<root>
    <description>
        <fo:list-block>
            <fo:list-item>...</fo:list-item>
            <fo:list-item>...</fo:list-item>
        </fo:list-item>
    </description>
</root>

and then only transformed into full fo:

<fo:root>
   ...
</fo:root>

I prefer having a self-contained extension which does all the work for me.

Regards,

Kalgon


Christopher R. Maden wrote:
> 
> On 06/14/2011 07:25 AM, kalgon wrote:
>> Yes I could transform the XML prior to rendering it to PDF but that
>> wouldn't be as nice and clean as an extension which would take care
>> of everything. Moreover, an extension can be reused whereas
>> pre-transforming the XML would require a specific XSLT for each XML
>> schema... definitely not the way I want to go.
> 
> Except that’s how XSL works, and what FOP implements.  FOP takes
> exactly[*] 1 kind of input: the FO markup in XML defined by the XSL
> Recommendations.
> 
> Nearly all FOP users, as well as users of other XSL formatters,
> transform their source either with XSLT or some other tool into FO for
> presentation to the formatter.
> 
> If FOP supports MediaWiki syntax natively, why not MoinMoin or some
> other wiki?  Why not HTML, DocBook, DITA, CALS, ...?
> 
> ~Chris
> 
> [*] approximately
> -- 
> Chris Maden, text nerd  <URL: http://crism.maden.org/ >
> “Before I built a wall I’d ask to know / What I was walling in or
>  out, / And to whom I was like to give offence.” — RF, Mending Wall
> GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/FOP-Extension-to-handle-Wiki-Syntax-tp31841403p31843185.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to