On Thu, 2019-07-04 at 10:33 +0100, Ashjan Alsulaimani wrote: > > > What's the best way to approach such a task and the most efficient > way as I'm dealing with Medline database!
If your input files are a few hundred megabytes or less, start with the XSLT identity transform and add empty templates to match what you want to delete. If your input is over a gigabyte (say) or you do lots of different subsets of the same document, you may find XQuery update works better for you, with a databaase (e.g. BaseX or eXistb). Liam -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Upcoming courses: DocBook (sold out); CSS for XML People _______________________________________________ xml mailing list, project page http://xmlsoft.org/ firstname.lastname@example.org https://mail.gnome.org/mailman/listinfo/xml