xsl-list
[Top] [All Lists]

Re: [xsl] Open Office Multi-Line Normalization

2007-04-18 15:17:10
On Wed, 18 Apr 2007 23:03:44 +0100
David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:


looks like you just want

<pre>
<xsl:apply-templates/>
</pre>

the default element and text node templates will do the rest for you,

Hi David,

Ok, but there's no outer tag to match on. I failed to mention that there
are many of these "pre" sequences. If I can isolate each set then I can
use the template you suggest.

A set in this case would be a sequence of <text:p
text:style-name="p_5f_prototype"> with adjacent siblings with the
same style.

I can identify the first of a sequence with an expression like the
following:

  text:p[(_at_)text:style-name='p_5f_prototype' and
       not(preceding-sibling::*[1][(_at_)text:style-name='p_5f_prototype'])]

but that's not the full set ...

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>