[Fwd: [RFC] - textdump element]

James Robertson jwrober at linuxfromscratch.org
Sat Jun 5 19:36:54 PDT 2004


Kevin P. Fleming wrote:
> James Robertson wrote:
> 
>> !ELEMENT search_replace (file, find, replace)
>> !ATTLIST search_replace
>>           base           CDATA #IMPLIED
>>           mode           (replace | prepend) "replace"
> 
> 
> For consistency's sake the "mode" attribute would need to support 
> "append" as well. It would also make sense to add a "global" attribute, 
> which defaulted to "yes", with the obvious connotations.
> 
> This would definitely provide a simpler means to insert text into a file 
> than using search_replace with regular expressions, although the latter 
> is still something that I want to add, and it would dovetail nicely into 
>  setting the mode attribute to "pcre".

So this?

!ELEMENT search_replace (file, find, replace)
!ATTLIST search_replace
          base           CDATA #IMPLIED
          mode           (append | replace | prepend) "replace"
          global         (yes | no ) "yes

I think we are on a roll!

James

-- 
James Robertson -- jwrober at linuxfromscratch dot org
Reg. Linux User -- #160424 -- http://counter.li.org
Reg. LFS User   -- #6981   -- http://www.linuxfromscratch.org
LFS Bugzilla Maintainer    -- http://{blfs-}bugs.linuxfromscratch.org



More information about the alfs-discuss mailing list