Re: [docbook-apps] add 'id' afterwards automatically

From
Michael Wiedmann <>
Date
2003-10-15T09:01:26+00:00
ID
Thread
Re: [docbook-apps] add 'id' afterwards automatically
David Tolpin wrote:
...
>   perl -e 'while(<STDIN>) {/^\s*\<\w/ and last; print;}' < source.xml > target.xml
> 
> will get the xml declaration and the DTD.
> 
>   xslt source.xml addid.xsl | tail +1 >> target.xml
> 
> will add the data.

Great!
Included in my Makefile it works 'out of the box'.

Thanks
Michael
-- 
Michael Wiedmann   biz:     <>
                    private: <>
                             http://www.miwie.org