1 ps, several xml

Discussion in 'XML' started by zamba, Jan 15, 2008.

  1. zamba

    zamba Guest

    Hi, i'm working with APACHE FOP java libraries and i want to know if
    is posible instead of having 1 xsl template , 1 xml => 1 ps (or pdf) ,
    have 1 xsl temlate , 1000 xml => 1 ps (or pdf) , when i send ps to the
    printer , print 1000 documents.


    thanks a lot !!!!
     
    zamba, Jan 15, 2008
    #1
    1. Advertising

  2. zamba wrote:
    > Hi, i'm working with APACHE FOP java libraries and i want to know if
    > is posible instead of having 1 xsl template , 1 xml => 1 ps (or pdf) ,
    > have 1 xsl temlate , 1000 xml => 1 ps (or pdf) , when i send ps to the
    > printer , print 1000 documents.


    It's certainly possible to have XSLT combine input from many source
    documents, using the document() function. 1000 may start pushing your
    memory limits, though, unless they're pretty small. (Some XSLT
    processors have custom/nonstandard solutions to help with this sort of
    processing; I know Xalan does.)

    Making the XSL-FO document render through FOP as "1000 documents" should
    just be a matter of making sure the page breaks occur in the right
    places, right?


    --
    Joe Kesselman / Beware the fury of a patient man. -- John Dryden
     
    Joseph Kesselman, Jan 15, 2008
    #2
    1. Advertising

  3. zamba

    zamba Guest

    On 15 ene, 18:59, Joseph Kesselman <> wrote:
    > zamba wrote:
    > > Hi, i'm working with APACHE FOP java libraries and i want to know if
    > > is posible instead of having 1 xsl template , 1 xml => 1 ps (or pdf) ,
    > > have 1 xsl temlate , 1000 xml => 1 ps (or pdf) , when i send ps to the
    > > printer , print 1000 documents.

    >
    > It's certainly possible to have XSLT combine input from many source
    > documents, using the document() function. 1000 may start pushing your
    > memory limits, though, unless they're pretty small. (Some XSLT
    > processors have custom/nonstandard solutions to help with this sort of
    > processing; I know Xalan does.)
    >
    > Making the XSL-FO document render through FOP as "1000 documents" should
    > just be a matter of making sure the page breaks occur in the right
    > places, right?
    >
    > --
    > Joe Kesselman / Beware the fury of a patient man. -- John Dryden


    Thanks a lot for you response...Do you know where can i have
    documentation - examples about document() function ? Im new at java
    and about XSL ...
     
    zamba, Jan 16, 2008
    #3
  4. zamba wrote:

    > Thanks a lot for you response...Do you know where can i have
    > documentation - examples about document() function ?


    The documentation is in the W3C specifications:
    <URL:http://www.w3.org/TR/xslt#document>
    <URL:http://www.w3.org/TR/xslt20/#document>
    If you want to load a lot of documents then you might also be interested
    in extensions that save memory, see
    <URL:http://www.saxonica.com/documentation/extensions/functions/discarddocument.html>
    for instance.


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Jan 16, 2008
    #4
  5. Joseph Kesselman, Jan 16, 2008
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    511
  2. Replies:
    2
    Views:
    430
    TextDoctor
    May 7, 2005
  3. Replies:
    1
    Views:
    381
  4. idiotprogrammer
    Replies:
    4
    Views:
    1,141
    Joseph Kesselman
    Mar 5, 2007
  5. Victor \Zverok\ Shepelev

    RDOC: several related modules in several C files

    Victor \Zverok\ Shepelev, Mar 6, 2007, in forum: Ruby
    Replies:
    3
    Views:
    184
    Max Lapshin
    Mar 16, 2007
Loading...

Share This Page