-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXPRESS schema documentation should follow SC 4 Supplementary Directives #10
Comments
@Intelligent2013 all the XSLT boilerplate content is under “xsl” |
I sent Ron a copy of the supplementary directives that contains the boilerplate in one document.
|
The Supplementary Directives text for 5.3, 6.7 and 8 which relate to ISO 10303 is provided here: https://github.com/metanorma/iso-tc184-sc4-directives/blob/master/supplementary-directives.adoc The exact XSL transformations are available here:
|
Related to metanorma/iso-tc184-sc4-boilerplate#1 |
I need some clarification.
What is descriptions.xml? Do you mean, for example, like this \data\resources\action_schema\action_schema.xml ? Section That means xslt should put placeholder in the section 8? Or xslt should check type definitions only for section 5?
|
|
Because this schema does not have EXPRESS "type" and EXPRESS "function" content. |
@ronaldtse thank you for explanation, I've thought about something else...
In this case should stepmod2mn put boilerplate remark after that additionally?
|
sect_4_express.xsl generates some text yet, for example
> [[types]]
> == action_schema type definitions
>
>[[action_schema.as_description_attribute_select]]
> ==== as_description_attribute_select
>
> The *as_description_attribute_select* type is an extension of the *description_attribute_select* type. It adds the data type action_request_solution to the list of alternate data types.
In this case should stepmod2mn put boilerplate remark after that additionally?
No, the above text is the boilerplate.
|
I've added boilerplate displaying in https://github.com/metanorma/stepmod2mn/blob/master/src/main/resources/stepmod2mn.adoc.xsl (code must be changed for real values). In boilerplate we can display:
<xsl:call-template name="insertBoilerplate">
<xsl:with-param name="folder" select="'General'"/>
<xsl:with-param name="identifier" select="'SC4_xxxx'"/>
<xsl:with-param name="text">Example: Put boilerplate for type select, see https://github.com/metanorma/iso-tc184-sc4-directives/blob/master/supplementary-directives.adoc</xsl:with-param>
<xsl:with-param name="file">https://raw.githubusercontent.com/metanorma/stepmod2mn/master/README.adoc</xsl:with-param>
</xsl:call-template> On next step I need to know how to determine values for
It means that we need to enclose it in
or leave as is? |
As I understand it, the intent was to make the boilerplate text available at a URI.
For now, leave as is since you have a local copy.
|
@Intelligent2013 I've discussed with @opoudjis , we are envisioning that:
i.e. no remote boilerplate fetches needed in rendering. Thoughts? |
To parse liquid templates in stepmod2mn I see two options:
I've added |
@Intelligent2013 I think stepmod2mn only needs to point to the liquid templates (via AsciiDoc Reason is:
Thoughts @opoudjis ? |
It's a vulnerability, so I'm not in love with it, and people really will need to ensure that the submodules are in the right place, but ok. I see that @Intelligent2013 has already added a command line parameter to configure the boilerplate path; that will still be needed to populate any include paths. |
Vulnerability in the general sense because a change in that repo may affect the build, right. I assume we’re going to create the repo and submodule anyway so it will be at the right place. |
Currently, the text [[maths_value_arm.maths_atom]]
===== maths_atom (((maths_atom,ARM object definition)))
A *maths_value* is a single Boolean, real integer or complex value.
Error: boilerplate text is empty.
[.underline]#EXPRESS specification:# As noticed in #105:
therefore I'll move the message To put the boilerplate:
we need to pass the submodule's path into |
What is the boilerplate? What exactly is missing? |
for example, let's take a look at the document The output adoc
The reason - in the <?xml version="1.0" encoding="utf-8"?>
...
<ext_descriptions module_directory="shape_appearance_layers" schema_file="arm.xml" rcs.date="$Date: 2009/12/03 13:09:58 $" rcs.revision="$Revision: 1.5 $">
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Schema: Shape_appearance_layers_arm
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<ext_description linkend="Shape_appearance_layers_arm"/>
</ext_descriptions> there isn't description like this: <ext_description linkend="Shape_appearance_layers_arm.sal_appearance_context">
Description text...
</ext_description> From the initial post:
In the 2.5 years ago post #10 (comment)
Is there such submodule with boilerplate text as liquid templates? |
Which means that stepmod2mn will need to insert them as remarks, if there are none present. @ronaldtse and/or @TRThurman, you will need to direct @Intelligent2013 to where the XSLT resides, so he can replicate it.
The text was updated successfully, but these errors were encountered: