Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > 1 ps, several xml

Reply
Thread Tools

1 ps, several xml

 
 
zamba
Guest
Posts: n/a
 
      01-15-2008
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 !!!!
 
Reply With Quote
 
 
 
 
Joseph Kesselman
Guest
Posts: n/a
 
      01-15-2008
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
 
Reply With Quote
 
 
 
 
zamba
Guest
Posts: n/a
 
      01-16-2008
On 15 ene, 18:59, Joseph Kesselman <(E-Mail Removed)> 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 ...
 
Reply With Quote
 
Martin Honnen
Guest
Posts: n/a
 
      01-16-2008
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/
 
Reply With Quote
 
Joseph Kesselman
Guest
Posts: n/a
 
      01-16-2008
Also see the XPath document.

Also see Dave Pawson's XSLT FAQ website,
http://www.dpawson.co.uk/xsl/sect2/sect21.html

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RDOC: several related modules in several C files Victor \Zverok\ Shepelev Ruby 3 03-16-2007 04:15 PM
concatenate several xml files into one big xml/html file? idiotprogrammer XML 4 03-05-2007 06:43 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
how to convert XML document to several XML documents in a new format enyetor@gmail.com XML 2 05-07-2005 07:22 PM
how to convert XML document to several XML documents in a new format enyetor@gmail.com XML 1 04-26-2005 08:15 AM



Advertisments