Alvis-Convert

 view release on metacpan or  search on metacpan

bin/alvisXSL  view on Meta::CPAN

#################################################################


#   each call is one execution of XSLTPROC
sub XSLfill {
    my $size = 0;
    #print STDERR "Starting XSLfill\n";

    #   set up new XSLT instance
    #   note we need to set this up with open/waitpid
    #   combination say that one STDOUT is finished before
    #   the next one is started
    my $pid = 0;
    if ($pid = open(FOUT, "|-") ) {
	#  goal is to fill up the XSLTPROC with one XML file
	my $filled = 0;
	if ( eof(XIN) ) {
	    close(XIN);
	    my $nf;
	    my $closed = 1;
	    while ( $closed && ($nf=&nextfile()) ) {

t/test-data/to-split/29.xml  view on Meta::CPAN

<documentRecord id="0770964CAC923ACCDC189E0EA4208AE0" xmlns="http://alvis.info/enriched/">
    <acquisition>
      <acquisitionData>
        <modifiedDate>1141993156883</modifiedDate>
        <httpServer>Apache/1.3.34 (Unix) DAV/1.0.3 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.1 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a</httpServer>
        <urls>
          <url>http://battellemedia.com/archives/002391.php</url>
        </urls>
      </acquisitionData>
      <canonicalDocument>        
        <section>From a Reuters story: Sen. Ron Wyden on Thursday proposed legislation aimed at preventing high-speed Internet service providers from charging content companies extra so consumers have faster access to their Web sites or receive speci...
      <metaData>
        <meta name="title">Net Neutrality Bill Unveiled</meta>
        <meta name="dc:type">text/html</meta>
      </metaData>
      <links>
        <outlinks>
          <link type="a">
            <anchorText>IPDemocracy</anchorText>
            <location>http://www.ipdemocracy.com/archives/2006/03/02/index.php#001213</location>
          </link>

t/test-data/to-split/29.xml  view on Meta::CPAN

<documentRecord id="070E7EB628CC943FBF90E7C6A703D9B2" xmlns="http://alvis.info/enriched/">
    <acquisition>
      <acquisitionData>
        <modifiedDate>1149606759016</modifiedDate>
        <httpServer>Apache/1.3.28 (Unix) mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.15 OpenSSL/0.9.7c</httpServer>
        <urls>
          <url>http://www.seroundtable.com/archives/003894.html</url>
        </urls>
      </acquisitionData>
      <canonicalDocument>        
        <section>Any SEO/M will tell you their job description sucks because in the process of describing exactly what they do, they nearly always watch the listener's eyes glaze over, waiting for a topic that may make better sense. Same thing with u...
      <metaData>
        <meta name="title">Officer Usability and General SEO</meta>
        <meta name="dc:date">Mon, 05 Jun 2006 11:52:34 GMT</meta>
        <meta name="dc:type">text/html</meta>
      </metaData>
      <links>
        <outlinks>
          <link type="a">
            <anchorText>Should links still be underlined and blue?</anchorText>
            <location>http://www.cre8asiteforums.com/forums/index.php?s=&amp;showtopic=36893&amp;view=findpost&amp;p=181570</location>



( run in 0.479 second using v1.01-cache-2.11-cpan-483215c6ad5 )