[xsl] Open Office Multi-Line Normalization

Subject: [xsl] Open Office Multi-Line Normalization
From: Michael B Allen <mba2000@xxxxxxxxxx>
Date: Wed, 18 Apr 2007 17:12:56 -0400
Open Office XML is somewhat annoying in that it tags each line separately. 

Can someone recommend how I might transform something like the following:
      
<text:p text:style-name="p_5f_prototype">session_start();</text:p>
<text:p text:style-name="p_5f_prototype">require_once('foo.php');</text:p>
<text:p text:style-name="p_5f_prototype"/>
<text:p text:style-name="p_5f_prototype">bool some_function(resource $px,</text:p>
<text:p text:style-name="p_5f_prototype"><text:s text:c="8"/>string $ssn_id,</text:p>
<text:p text:style-name="p_5f_prototype"><text:s text:c="8"/>array $options=NULL)</text:p>
     
into the this:
     
<pre>session_start();
require_once('foo.php');
     
bool some_function(resource $px,
        string $ssn_id,
        array $options=NULL)</pre>
     
Mike

-- 
Michael B Allen
PHP Active Directory Kerberos SSO
http://www.ioplex.com/

Current Thread