Skip to content
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

ISO/IEC Coding Guidelines: URL processing #239

Closed
Intelligent2013 opened this issue Sep 7, 2022 · 1 comment
Closed

ISO/IEC Coding Guidelines: URL processing #239

Intelligent2013 opened this issue Sep 7, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Intelligent2013
Copy link
Contributor

Source: #190

  • uri:
    Example: <p>Further information is available at <uri>http://my.url</uri> on the interweb.</p>
  • <ext-link> is using for incomplete URLs, e.g. URLs without http://
  • <ext-link> is using display text and the actual link are different:
    Example: <ext-link xlink:href="http://www.surveymonkey.com/s/20000-1">ISO/IEC 20000-1 online survey</ext-link></p>
@Intelligent2013
Copy link
Contributor Author

mnconvert updated. Now link converts to the uri and ext-link:

  • ext-link, if url isn't start with http:, https:, ftp:, mailto:, or link/@target is different than the text in link
  • otherwise uri

Examples:

  • <link target="https://www.iso.org/obp"/> converts to
    <uri>https://www.iso.org/obp</uri>
  • <link target="http://www.iso.org/directives">www.iso.org/directives</link> converts to
    <ext-link xlink:href="http://www.iso.org/directives">www.iso.org/directives</ext-link>
  • <link target="http://standards.iso.org/iso/10303/tech/step_titles.htm">ISO website</link> converts to
    <ext-link xlink:href="http://standards.iso.org/iso/10303/tech/step_titles.htm">ISO website</ext-link>
  • <link target="mailto:[email protected]"/> converts to
    <uri>mailto:[email protected]</uri></p>

Intelligent2013 added a commit that referenced this issue Sep 15, 2022
mn2xml.xslt updated for uri and ext-link processing, #239
Repository owner moved this from 🏗 In progress to ✅ Done in Metanorma Sep 15, 2022
@ronaldtse ronaldtse removed this from Metanorma Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant