metanorma / mn-samples-plateau

Project PLATEAU by MLIT: Japanese Ministry of Land, Infrastructure, Transport and Tourism (国土交通省)
https://www.mlit.go.jp/plateau/
1 stars 0 forks source link

Obtaining semantic XML from GHA: `document.xml` is missing for 001 #188

Closed strogonoff closed 2 weeks ago

strogonoff commented 3 weeks ago

cc @ronaldtse

Any chance downloadable GHA artefacts could include Semantic XML as well?

ronaldtse commented 3 weeks ago

The GHA artifacts already contain both.

strogonoff commented 3 weeks ago

No, there is only one XML file per logical document, and the file is called document.presentation.xml. @ronaldtse

strogonoff commented 3 weeks ago

Correction, there is a file called document.xml but it’s only present for 002-v4. Can we include it for 001-v4, as well?

opoudjis commented 2 weeks ago

@strogonoff As I have already told you, both verbally and in the documentation, the Presentation XML file contains the Semantic XML with appropriate prefixing, and that is the file you MUST consume.

The output formats for each file are a document attribute, :mn-output-extensions:. You will see in sources/001-v4/document.adoc

:mn-output-extensions:html,pdf

and in sources/002-v4/document.adoc

:mn-output-extensions: xml,html,pdf,rxl

If you want to output document.xml as well into the compilation, you now know what to do. Edit the attribute.

We will have EXTREMELY limited patience about RTFM.

strogonoff commented 2 weeks ago

@opoudjis I’m building an HTML renderer for Metanorma XML. I have no issues being pointed to XML schema reference, but reading operation manuals for all the various parts of the preexisting toolchain in order to obtain that XML for various documents is hours of time and a lot of mental overhead that is not strictly pertinent to my goal.

While I am aware that presentation XML includes semantic data in a prefixed way, semantic XML will apparently be required for my purposes (better not get into those right here).