Changeset 129


Ignore:
Timestamp:
Oct 12, 2012, 12:58:49 AM (7 years ago)
Author:
duerst@…
Message:
  • added HOWTO.txt file to explain structure/requirements/use
  • refactored process_draft.rb so that XSLT processing is in a separate method (can be adapted to XSLT processor of choice)
  • added tweaked version of rfc2629.dtd
Location:
draft-ietf-iri-3987bis
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-iri-3987bis/process_draft.rb

    r127 r129  
    1 TCLSRC = '/cygdrive/c/Local/IETF/xml2rfc/xml2rfc.tcl'
     1# point the following constant to the TCL source
     2TCLSRC = 'xml2rfc.tcl'
     3
     4# change this method to call your favorite/available XSLT converter
     5def xslt_convert (enc, draft, temp_name)
     6  xslt = "#{enc}.xslt"
     7  puts `xsltproc --nodtdattr #{xslt} #{draft}.xml > #{temp_name}`
     8end
    29
    310def convert (draft, enc, type, ext=type)
     
    512  final_name = "#{draft}.#{ext}"
    613  puts "#{draft} ===> #{enc}/#{type} ===> #{draft}.#{ext}"
    7   xslt = "/cygdrive/c/Local/IETF/i18n_process/#{enc}.xslt"
    8   puts `xsltproc --nodtdattr #{xslt} #{draft}.xml > #{temp_name}`
     14  xslt_convert enc, draft, temp_name
    915  puts `tclsh #{TCLSRC} xml2#{type} #{temp_name} #{final_name}`
    1016  post_processing final_name if type=='txt'
     
    4652  convert draft, 'utf-8', 'html'
    4753  convert draft, 'utf-8', 'utf8.txt'
     54  # todo: automate production of PDF draft; currently using Word manually
    4855end
Note: See TracChangeset for help on using the changeset viewer.