metanorma / stepmod2mn

Migrating STEPmod documents to Metanorma
0 stars 1 forks source link

Parse string `[SOURCE: ...]` #181

Closed Intelligent2013 closed 4 months ago

Intelligent2013 commented 4 months ago

From https://github.com/metanorma/stepmod2mn/issues/179#issuecomment-2083273335.

The source XML (data\modules\reference_schema_for_sysml_mapping\module.xml):

 <definition>
     <term>ARM in SysML</term>
     <def>
        <p>
        application reference model transformed from EXPRESS to SysML
        </p>
        <p>
        [SOURCE: ISO/TS 10303-4000:2023, 3.1.1, Modified – Notes to entry removed]
        </p>
    </def>
 </definition>

The source paragraph should be parsed into:

[.source]
<<bibitem_ISO10303-4000,clause=3.1.1>>, Notes to entry removed