In the end I did it with post-processing. It's easy thanks to Ruby and
Nokogiri:
require 'rubygems'
require 'nokogiri'
# in real life this will be incoming parameter
f = '/Users/mattleopard/Desktop/a2xoutput/book.chunked/'
Dir.chdir(f)
files = Dir.glob('*.html')
files.each do |aFile|
aPath = Pathname(f) + aFile
doc = Nokogiri::XML(File.read(aPath))
doc.xpath("//@title").each {|anAttr| anAttr.remove}
File.open(aPath, "w") {|io| doc.write_xml_to(io) }
end
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.