๐Ÿ“„ 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 output/dita folder.

DITA Background๏ƒ

Darwin Information Typing Architecture (DITA) is an XML data model for authoring and using the DITA Open Toolkit (DITA-OT) you can publish those ideas.

The DITA standard is maintained by the OASIS DITA Technical Committee.

The Project๏ƒ

The Ruby code in ruby-cheatsheets-to-dita.rb has some XSL code embedded, as well as some XML markup in a interpolated string literal syntax.

The Eclipse cheat sheets test data folder - cheatsheets-xml-test-data is best viewed inside Eclipse, and is used as input when ruby-cheatsheets-to-dita.rb runs.

$ 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

Resources๏ƒ