[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Open Office Multi-Line Normalization

Subject: Re: Open Office Multi-Line Normalization
From: Michael B Allen <mba2000@xxxxxxxxxx>
Date: Wed, 18 Apr 2007 18:16:50 -0400
Re:  Open Office Multi-Line Normalization
On Wed, 18 Apr 2007 23:03:44 +0100
David Carlisle <davidc@xxxxxxxxx> 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[@text:style-name='p_5f_prototype' and
       not(preceding-sibling::*[1][@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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.