Re: [xsl] text replacement with mixed content

Subject: Re: [xsl] text replacement with mixed content
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 31 Aug 2011 12:13:33 +0100
On 31 August 2011 11:59, David Carlisle <davidc@xxxxxxxxx> wrote:
> On 31/08/2011 11:55, Andrew Welch wrote:
>
>
> meanwhile I was trying this one
>
> <x>
> <p>my foo, zzz, my <bold>foo</bold>, zzz</p>
> <p>zzz my f<b/>oo zzz m<z>y f</z>oo zzz</p>
> <p>zzz my f<b/>oo zzz m<z>y f</z>o<j>o my foo</j> zzz</p>
> <p>zzz my<b> fjjj</b></p>
> <p>zzzzz<b>my </b></p><p><b>foo zzz</b></p>
> </x>

Do you also have the expected output for that :)

And/or the requirements on nesting depth (the <p><b> part at the end)
and whether the elements across boundaries are dropped or wrapped...

This is the current outout I have:

<x>
   <p>
      <group>my foo</group>, zzz, <group>my foo</group>, zzz</p>
   <p>zzz my f<b/>oo zzz m<z>y f</z>oo zzz</p>
   <p>zzz my f<b/>oo zzz m<z>y f</z>o<j>o <group>my foo</group>
      </j> zzz</p>
   <p>zzz my<b> fjjj</b>
   </p>
   <p>zzzzz<b>my </b>
   </p>
   <p>
      <b>foo zzz</b>
   </p>
</x>

...so single nesting depth, and dropping the elements across
boundaries.  I think anyway, that sample makes my eyes blurr... maybe
if you stare at it long enough a 3d picture emerges.

-- 
Andrew Welch
http://andrewjwelch.com

Current Thread