xsl-list
[Top] [All Lists]

Re: [xsl] text replacement with mixed content

2011-08-31 06:13:42
On 31 August 2011 11:59, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> 
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

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