metanorma / iso-10303-templates

Annotated EXPRESS rendering templates for ISO 10303
0 stars 0 forks source link

Add templates to render change annex in module documents #15

Closed manuelfuenmayor closed 4 months ago

manuelfuenmayor commented 4 months ago

As per https://github.com/metanorma/iso-10303-templates/issues/11

manuelfuenmayor commented 4 months ago

Issues to solve:

ronaldtse commented 4 months ago

The variable “edition” conflicts with the document attribute also called “edition”? But in YAML is it possible to use something like “data.edition” to refer to it?

manuelfuenmayor commented 4 months ago

The variable “edition” conflicts with the document attribute also called “edition”? But in YAML is it possible to use something like “data.edition” to refer to it?

@ronaldtse, no. The issue is: we need access to the "edition" document attribute inside the yaml2text block (not a variable edition).

Outside yaml2text, :edition: value can be accessed by doing {edition}, but inside, I get empty string.

That is:

= Document attributes
:edition: 10

== Clause

{edition} // renders 10

[yaml2text,...,data]
----
{edition} // empty
----
manuelfuenmayor commented 4 months ago

@ronaldtse this PR is almost ready for merging. What is left is the resolution of this issue to finish the template: https://github.com/metanorma/metanorma-plugin-datastruct/issues/33

manuelfuenmayor commented 4 months ago

Please, don't merge yet. I still need to make some adjustments. I'll let you know.

ronaldtse commented 4 months ago

OK thanks @manuelfuenmayor !

manuelfuenmayor commented 4 months ago

Ok @ronaldtse. Ready for merging 👍

ronaldtse commented 4 months ago

Thank you @manuelfuenmayor !