xsl-list
[Top] [All Lists]

Re: [xsl] Open Office Multi-Line Normalization

2007-04-19 03:49:34
Michael B Allen wrote:

  <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 ...

yields:

  require_once('plexcel.php');
  bool ...

whereas I would like:

  require_once('plexcel.php');
bool ...

Mike



Just add the following somewhere:

<xsl:template match="text:p[. = '']">&#xA;</xsl:template>

And change your main match as follows:

<xsl:template match="text:p[. != ''][(_at_)text:style-name='p_5f_prototype' and not(preceding-sibling::*[1][(_at_)text:style-name='p_5f_prototype'])]">

or something similar.

HTH,

Cheers,
-- Abel Braaksma

--~------------------------------------------------------------------
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>