Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

std processing: add type attribute #45

Closed
Intelligent2013 opened this issue May 22, 2021 · 2 comments
Closed

std processing: add type attribute #45

Intelligent2013 opened this issue May 22, 2021 · 2 comments
Assignees

Comments

@Intelligent2013
Copy link
Contributor

Intelligent2013 commented May 22, 2021

Source: https://github.com/metanorma/mn-samples-bsi/issues/2
If value contains : and 4 digits at end end, then add the attribute type="dated":

<std type="dated">
   <std-ref>ISO Guide 73:2009</std-ref>
</std>

else type="undated":

<std type="undated">
    <std-ref>ISO 19011</std-ref>
</std>
@Intelligent2013 Intelligent2013 self-assigned this May 22, 2021
@Intelligent2013 Intelligent2013 transferred this issue from metanorma/sts2mn May 22, 2021
@Intelligent2013
Copy link
Contributor Author

For mn xml:

<bibitem>PD 6079-4:2006 (Book)</bibitem>

mn2sts sets non-correct value in @type, due (Book) at the end:

<std-ref type="undated">PD 6079-4:2006 (Book)</std-ref>```

Expected result is:

<std-ref type="dated">PD 6079-4:2006 (Book)</std-ref>

Need to improve algorithm.

Intelligent2013 added a commit that referenced this issue May 29, 2021
@Intelligent2013
Copy link
Contributor Author

Done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant