This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] add 'id' afterwards automatically
- From: "Michael Wiedmann" <michael dot wiedmann at detewe dot de>
- To: David Tolpin <dvd at davidashen dot net>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 15 Oct 2003 11:04:34 +0200
- Subject: Re: [docbook-apps] add 'id' afterwards automatically
- Organization: Cordless Technology
- References: <200310150818.h9F8IuWa090358@adat.davidashen.net>
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: <michael.wiedmann@detewe.de>
private: <mw@miwie.in-berlin.de>
http://www.miwie.org
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.