xsl-list
[Top] [All Lists]

Re: [xsl] text replacement with mixed content

2011-08-31 07:01:13
On 31 August 2011 12:38, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> 
wrote:
On 31/08/2011 12:30, Andrew Welch wrote:

..but what's the required output?

1) first I get some output that's not obviously wrong,
2) then I declare that is the required output,
3) then I declare victory.

Isn't that how software specification is supposed to go?

haven't got to stage 1 yet...

This might be stage 1....

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

Based on this input:

        <x>
            <p>my foo, zzz, my <bold>foo</bold>, zzz</p>
            <p>zzz my f-oo zzz m-y foo zzz</p>
            <p>zzz my foo zzz my <j>foo my foo</j> zzz</p>

            <p>zzz my<b> fjjj</b></p>
            <p>zzzzz<b>my </b><x> </x><b>foo zzz</b></p>
        </x>


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