metanorma / metanorma

The Metanorma project: www.metanorma.org
https://www.metanorma.org
BSD 2-Clause "Simplified" License
59 stars 26 forks source link

Create new gem for parsing and writing Metanorma XML #73

Open ronaldtse opened 5 years ago

ronaldtse commented 5 years ago

e.g.

doc = Metanorma::Document.new
doc.flavor = :iso
doc.doctype = "standard"
doc.metadata.title = "My document -- Part title"
doc.metadata.docidentifier = "ISO 99999"
doc.metadata.docidentifier = Metanorma::DocIdentifier.new("12345-1", :iso)

clause = Metanorma::Clause.new("Introduction", "Long text paragraph...")
doc.clauses << clause # Something like this

doc.to_xml # => <!xml...
abunashir commented 3 years ago

@ronaldtse - is this still relevant? Would you mind putting together the all the details in a new repo with the correct name?

ronaldtse commented 3 years ago

Yes. This should go into this very gem here. This will replace some functionality currently done in the metanorma-standoc gem.