This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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'.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |