xsl-list
[Top] [All Lists]

[xsl] Open Office Multi-Line Normalization

2007-04-18 14:46:32
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>