📄 Eclipse cheat sheets (XML) to DITA with Ruby, XSL, Nokogiri
From Java, XSLT 2.0 with Saxon to Ruby, XSLT 1.0 with the Nokogiri Ruby gem
Using Ruby on this project allows us to harness the power of RubyGems particularly the Nokogiri gem along with XSLT 1.0 / XPath 1.0 to create the DITA XML files. Using Ruby eliminates the need to use Eclipse and Apache Ant and can be run standalone from the command line as long as you have Ruby installed.
The Ruby file:
ruby-cheatsheets-to-dita.rb builds the output parent Ditamap
map.ditamap (output/map.ditamap), and the 4 sub DITA tasks in the
The DITA standard is maintained by the OASIS DITA Technical Committee.
Eclipse cheat sheets
test data folder -
cheatsheets-xml-test-data is best viewed inside Eclipse,
and is used as input when
$ ruby ruby-cheatsheets-to-dita.rb -h Usage: ruby-cheatsheets-to-dita.rb [options] Specific options: -p, --path path Enter the directory or path relative to this directory to the cheatsheets XML test data: --delay N Delay N seconds before executing -t, --time [TIME] Begin execution at given time Common options: -h, --help Show this message --version Show version