metanorma-standoc 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/lib/isodoc/html/htmlstyle.css +25 -19
- data/lib/isodoc/html/htmlstyle.scss +7 -2
- data/lib/metanorma/standoc/base.rb +14 -0
- data/lib/metanorma/standoc/cleanup.rb +12 -1
- data/lib/metanorma/standoc/converter.rb +1 -0
- data/lib/metanorma/standoc/macros_terms.rb +13 -0
- data/lib/metanorma/standoc/version.rb +1 -1
- data/spec/metanorma/base_spec.rb +440 -413
- data/spec/metanorma/cleanup_terms_spec.rb +203 -203
- data/spec/metanorma/macros_spec.rb +2 -0
- data/spec/metanorma/refs_spec.rb +101 -6
- data/spec/vcr_cassettes/hide_refs.yml +599 -0
- metadata +3 -2
data/spec/metanorma/base_spec.rb
CHANGED
@@ -227,279 +227,279 @@ RSpec.describe Metanorma::Standoc do
|
|
227
227
|
:htmltoclevels: 4
|
228
228
|
INPUT
|
229
229
|
output = <<~OUTPUT
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
230
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
231
|
+
<standard-document xmlns="https://www.metanorma.org/ns/standoc" type="semantic" version="#{Metanorma::Standoc::VERSION}">
|
232
|
+
<bibdata type="standard">
|
233
|
+
<title language="en" format="text/plain">Main Title — Title</title>
|
234
|
+
<docidentifier>1000-1</docidentifier>
|
235
|
+
<docidentifier type='ISBN'>ISBN-13</docidentifier>
|
236
|
+
<docidentifier type='ISBN10'>ISBN-10</docidentifier>
|
237
|
+
<docnumber>1000</docnumber>
|
238
|
+
<date type="published">
|
239
|
+
<on>1000-01-01</on>
|
240
|
+
</date>
|
241
|
+
<date type="accessed">
|
242
|
+
<on>1001-01-01</on>
|
243
|
+
</date>
|
244
|
+
<date type="created">
|
245
|
+
<on>1002-01-01</on>
|
246
|
+
</date>
|
247
|
+
<date type="implemented">
|
248
|
+
<on>1003-01-01</on>
|
249
|
+
</date>
|
250
|
+
<date type="obsoleted">
|
251
|
+
<on>1004-01-01</on>
|
252
|
+
</date>
|
253
|
+
<date type="confirmed">
|
254
|
+
<on>1005-01-01</on>
|
255
|
+
</date>
|
256
|
+
<date type="updated">
|
257
|
+
<on>1006-01-01</on>
|
258
|
+
</date>
|
259
|
+
<date type="issued">
|
260
|
+
<on>1007-01-01</on>
|
261
|
+
</date>
|
262
|
+
<date type="circulated">
|
263
|
+
<on>1008-01-01</on>
|
264
|
+
</date>
|
265
|
+
<date type="unchanged">
|
266
|
+
<on>1009-01-01</on>
|
267
|
+
</date>
|
268
|
+
<date type='vote-started'>
|
269
|
+
<on>1011-01-01</on>
|
270
|
+
</date>
|
271
|
+
<date type='vote-ended'>
|
272
|
+
<on>1012-01-01</on>
|
273
|
+
</date>
|
274
|
+
<date type="Fred">
|
275
|
+
<on>1010-01-01</on>
|
276
|
+
</date>
|
277
|
+
<date type="Jack">
|
278
|
+
<on>1010-01-01</on>
|
279
|
+
</date>
|
280
|
+
<contributor>
|
281
|
+
<role type="author"/>
|
282
|
+
<organization>
|
283
|
+
<name>Hanna Barbera</name>
|
284
|
+
</organization>
|
285
|
+
</contributor>
|
286
|
+
<contributor>
|
287
|
+
<role type="author"/>
|
288
|
+
<organization>
|
289
|
+
<name>Cartoon Network</name>
|
290
|
+
</organization>
|
291
|
+
</contributor>
|
292
|
+
<contributor>
|
293
|
+
<role type="author"/>
|
294
|
+
<organization>
|
295
|
+
<name>Ribose, Inc.</name>
|
296
|
+
</organization>
|
297
|
+
</contributor>
|
298
|
+
<contributor>
|
299
|
+
<role type="author"/>
|
300
|
+
<person>
|
301
|
+
<name>
|
302
|
+
<completename>Fred Flintstone</completename>
|
303
|
+
</name>
|
304
|
+
<affiliation>
|
305
|
+
<organization>
|
306
|
+
<name>Slate Rock and Gravel Company</name>
|
307
|
+
<abbreviation>SRG</abbreviation>
|
308
|
+
<subdivision>Hermeneutics Unit</subdivision>
|
309
|
+
<subdivision>Exegetical Subunit</subdivision>
|
310
|
+
<address>
|
311
|
+
<formattedAddress>
|
312
|
+
6 Rubble Way, Bedrock
|
313
|
+
</formattedAddress>
|
314
|
+
</address>
|
315
|
+
</organization>
|
316
|
+
</affiliation>
|
317
|
+
<phone>123</phone>
|
318
|
+
<phone type='fax'>456</phone>
|
319
|
+
<uri>http://slate.example.com</uri>
|
320
|
+
</person>
|
321
|
+
</contributor>
|
322
|
+
<contributor>
|
323
|
+
<role type="editor"/>
|
324
|
+
<person>
|
325
|
+
<name>
|
326
|
+
<forename>Barney</forename>
|
327
|
+
<initial>B. X.</initial>
|
328
|
+
<surname>Rubble</surname>
|
329
|
+
</name>
|
304
330
|
<affiliation>
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
<code>1</code>
|
478
|
-
</ics>
|
479
|
-
<ics>
|
480
|
-
<code>2</code>
|
481
|
-
</ics>
|
482
|
-
<ics>
|
483
|
-
<code>3</code>
|
484
|
-
</ics>
|
485
|
-
</ext>
|
486
|
-
</bibdata>
|
487
|
-
<misc-container>
|
488
|
-
<presentation-metadata>
|
489
|
-
<name>TOC Heading Levels</name>
|
490
|
-
<value>2</value>
|
491
|
-
</presentation-metadata>
|
492
|
-
<presentation-metadata>
|
493
|
-
<name>TOC Heading Levels</name>
|
494
|
-
<value>2</value>
|
495
|
-
</presentation-metadata>
|
496
|
-
<presentation-metadata>
|
497
|
-
<name>TOC Heading Levels</name>
|
498
|
-
<value>2</value>
|
499
|
-
</presentation-metadata>
|
500
|
-
</misc-container>
|
501
|
-
<sections/>
|
502
|
-
</standard-document>
|
331
|
+
<organization>
|
332
|
+
<name>Rockhead and Quarry Cave Construction Company</name>
|
333
|
+
<abbreviation>RQCCC</abbreviation>
|
334
|
+
<subdivision>Hermeneutics Unit</subdivision>
|
335
|
+
<subdivision>Exegetical Subunit</subdivision>
|
336
|
+
<address>
|
337
|
+
<formattedAddress>6A Rubble Way, <br/>Bedrock</formattedAddress>
|
338
|
+
</address>
|
339
|
+
</organization>
|
340
|
+
</affiliation>
|
341
|
+
<phone>789</phone>
|
342
|
+
<phone type='fax'>012</phone>
|
343
|
+
<email>barney@rockhead.example.com</email>
|
344
|
+
</person>
|
345
|
+
</contributor>
|
346
|
+
<contributor>
|
347
|
+
<role type="publisher"/>
|
348
|
+
<organization>
|
349
|
+
<name>Hanna Barbera</name>
|
350
|
+
<address>
|
351
|
+
<formattedAddress>
|
352
|
+
1 Infinity Loop
|
353
|
+
<br/>
|
354
|
+
California
|
355
|
+
</formattedAddress>
|
356
|
+
</address>
|
357
|
+
<phone>3333333</phone>
|
358
|
+
<phone type='fax'>4444444</phone>
|
359
|
+
<email>x@example.com</email>
|
360
|
+
<uri>http://www.example.com</uri>
|
361
|
+
</organization>
|
362
|
+
</contributor>
|
363
|
+
<contributor>
|
364
|
+
<role type="publisher"/>
|
365
|
+
<organization>
|
366
|
+
<name>Cartoon Network</name>
|
367
|
+
<address>
|
368
|
+
<formattedAddress>
|
369
|
+
1 Infinity Loop
|
370
|
+
<br/>
|
371
|
+
California
|
372
|
+
</formattedAddress>
|
373
|
+
</address>
|
374
|
+
<phone>3333333</phone>
|
375
|
+
<phone type='fax'>4444444</phone>
|
376
|
+
<email>x@example.com</email>
|
377
|
+
<uri>http://www.example.com</uri>
|
378
|
+
</organization>
|
379
|
+
</contributor>
|
380
|
+
<contributor>
|
381
|
+
<role type="publisher"/>
|
382
|
+
<organization>
|
383
|
+
<name>Ribose, Inc.</name>
|
384
|
+
<address>
|
385
|
+
<formattedAddress>
|
386
|
+
1 Infinity Loop
|
387
|
+
<br/>
|
388
|
+
California
|
389
|
+
</formattedAddress>
|
390
|
+
</address>
|
391
|
+
<phone>3333333</phone>
|
392
|
+
<phone type='fax'>4444444</phone>
|
393
|
+
<email>x@example.com</email>
|
394
|
+
<uri>http://www.example.com</uri>
|
395
|
+
</organization>
|
396
|
+
</contributor>
|
397
|
+
<edition>2</edition>
|
398
|
+
<version>
|
399
|
+
<revision-date>2000-01-01</revision-date>
|
400
|
+
<draft>3.4</draft>
|
401
|
+
</version>
|
402
|
+
<language>en</language>
|
403
|
+
<script>Latn</script>
|
404
|
+
<status>
|
405
|
+
<stage>10</stage>
|
406
|
+
<substage>20</substage>
|
407
|
+
<iteration>3</iteration>
|
408
|
+
</status>
|
409
|
+
<copyright>
|
410
|
+
<from>2001</from>
|
411
|
+
<owner>
|
412
|
+
<organization>
|
413
|
+
<name>Ribose, Inc.</name>
|
414
|
+
<address>
|
415
|
+
<formattedAddress>
|
416
|
+
1 Infinity Loop
|
417
|
+
<br/>
|
418
|
+
California
|
419
|
+
</formattedAddress>
|
420
|
+
</address>
|
421
|
+
<phone>3333333</phone>
|
422
|
+
<phone type='fax'>4444444</phone>
|
423
|
+
<email>x@example.com</email>
|
424
|
+
<uri>http://www.example.com</uri>
|
425
|
+
</organization>
|
426
|
+
</owner>
|
427
|
+
</copyright>
|
428
|
+
<copyright>
|
429
|
+
<from>2001</from>
|
430
|
+
<owner>
|
431
|
+
<organization>
|
432
|
+
<name>Hanna Barbera</name>
|
433
|
+
<address>
|
434
|
+
<formattedAddress>
|
435
|
+
1 Infinity Loop
|
436
|
+
<br/>
|
437
|
+
California
|
438
|
+
</formattedAddress>
|
439
|
+
</address>
|
440
|
+
<phone>3333333</phone>
|
441
|
+
<phone type='fax'>4444444</phone>
|
442
|
+
<email>x@example.com</email>
|
443
|
+
<uri>http://www.example.com</uri>
|
444
|
+
</organization>
|
445
|
+
</owner>
|
446
|
+
</copyright>
|
447
|
+
<relation type="partOf">
|
448
|
+
<bibitem>
|
449
|
+
<title>--</title>
|
450
|
+
<docidentifier>ABC</docidentifier>
|
451
|
+
</bibitem>
|
452
|
+
</relation>
|
453
|
+
<relation type="translatedFrom">
|
454
|
+
<bibitem>
|
455
|
+
<title>GHI</title>
|
456
|
+
<docidentifier>DEF</docidentifier>
|
457
|
+
</bibitem>
|
458
|
+
</relation>
|
459
|
+
<relation type="translatedFrom">
|
460
|
+
<bibitem>
|
461
|
+
<title>PQR</title>
|
462
|
+
<docidentifier>JKL MNO</docidentifier>
|
463
|
+
</bibitem>
|
464
|
+
</relation>
|
465
|
+
<classification type='a'>b</classification>
|
466
|
+
<classification type='default'>c</classification>
|
467
|
+
<keyword>a</keyword>
|
468
|
+
<keyword>b</keyword>
|
469
|
+
<keyword>c</keyword>
|
470
|
+
<ext>
|
471
|
+
<doctype>article</doctype>
|
472
|
+
<editorialgroup>
|
473
|
+
<technical-committee number="1" type="A">TC</technical-committee>
|
474
|
+
<technical-committee number="11" type="A1">TC1</technical-committee>
|
475
|
+
</editorialgroup>
|
476
|
+
<ics>
|
477
|
+
<code>1</code>
|
478
|
+
</ics>
|
479
|
+
<ics>
|
480
|
+
<code>2</code>
|
481
|
+
</ics>
|
482
|
+
<ics>
|
483
|
+
<code>3</code>
|
484
|
+
</ics>
|
485
|
+
</ext>
|
486
|
+
</bibdata>
|
487
|
+
<misc-container>
|
488
|
+
<presentation-metadata>
|
489
|
+
<name>TOC Heading Levels</name>
|
490
|
+
<value>2</value>
|
491
|
+
</presentation-metadata>
|
492
|
+
<presentation-metadata>
|
493
|
+
<name>TOC Heading Levels</name>
|
494
|
+
<value>2</value>
|
495
|
+
</presentation-metadata>
|
496
|
+
<presentation-metadata>
|
497
|
+
<name>TOC Heading Levels</name>
|
498
|
+
<value>2</value>
|
499
|
+
</presentation-metadata>
|
500
|
+
</misc-container>
|
501
|
+
<sections/>
|
502
|
+
</standard-document>
|
503
503
|
OUTPUT
|
504
504
|
expect(xmlpp(Asciidoctor.convert(input, *OPTIONS)))
|
505
505
|
.to be_equivalent_to xmlpp(output)
|
@@ -544,6 +544,10 @@ RSpec.describe Metanorma::Standoc do
|
|
544
544
|
:city_2: Sèvres CEDEX
|
545
545
|
:country_2: France
|
546
546
|
:postcode_2: F-92312
|
547
|
+
:semantic-metadata-hello-world: A, B, "C, D"
|
548
|
+
:semantic-metadata-hello: what-not
|
549
|
+
:presentation-metadata-hello: Hello?
|
550
|
+
:presentation-metadata-Manifold: "hello, world","yes"
|
547
551
|
|
548
552
|
[abstract]
|
549
553
|
== Abstract
|
@@ -555,147 +559,170 @@ RSpec.describe Metanorma::Standoc do
|
|
555
559
|
== Clause 1
|
556
560
|
INPUT
|
557
561
|
output = <<~OUTPUT
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
<
|
689
|
-
|
690
|
-
|
691
|
-
</
|
692
|
-
</
|
693
|
-
<
|
694
|
-
<
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
562
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
563
|
+
<standard-document xmlns="https://www.metanorma.org/ns/standoc" type="semantic" version="#{Metanorma::Standoc::VERSION}">
|
564
|
+
<bibdata type="standard">
|
565
|
+
<title language="en" format="text/plain">Document title</title>
|
566
|
+
<title language="eo" format="text/plain">Dokumenttitolo</title>
|
567
|
+
<uri>A</uri>
|
568
|
+
<uri type="xml">B</uri>
|
569
|
+
<uri type="html">C</uri>
|
570
|
+
<uri type="pdf">D</uri>
|
571
|
+
<uri type="doc">E</uri>
|
572
|
+
<uri type="relaton">F</uri>
|
573
|
+
<docidentifier>1000-1-1</docidentifier>
|
574
|
+
<docnumber>1000</docnumber>
|
575
|
+
<date type='published'>
|
576
|
+
<on>1000-01</on>
|
577
|
+
</date>
|
578
|
+
<contributor>
|
579
|
+
<role type="author"/>
|
580
|
+
<organization>
|
581
|
+
<name>IEC</name>
|
582
|
+
</organization>
|
583
|
+
</contributor>
|
584
|
+
<contributor>
|
585
|
+
<role type="author"/>
|
586
|
+
<organization>
|
587
|
+
<name>IETF</name>
|
588
|
+
</organization>
|
589
|
+
</contributor>
|
590
|
+
<contributor>
|
591
|
+
<role type="author"/>
|
592
|
+
<organization>
|
593
|
+
<name>ISO</name>
|
594
|
+
</organization>
|
595
|
+
</contributor>
|
596
|
+
<contributor>
|
597
|
+
<role type='author'/>
|
598
|
+
<person>
|
599
|
+
<name>
|
600
|
+
<completename>Fred Flintstone</completename>
|
601
|
+
</name>
|
602
|
+
<affiliation>
|
603
|
+
<organization>
|
604
|
+
<name>Slate Rock and Gravel Company</name>
|
605
|
+
<address>
|
606
|
+
<street>1 Infinity Loop</street>
|
607
|
+
<city>Cupertino</city>
|
608
|
+
<state>CA</state>
|
609
|
+
<country>USA</country>
|
610
|
+
<postcode>95014</postcode>
|
611
|
+
</address>
|
612
|
+
</organization>
|
613
|
+
</affiliation>
|
614
|
+
</person>
|
615
|
+
</contributor>
|
616
|
+
<contributor>
|
617
|
+
<role type='author'/>
|
618
|
+
<person>
|
619
|
+
<name>
|
620
|
+
<completename>Barney Rubble</completename>
|
621
|
+
</name>
|
622
|
+
<affiliation>
|
623
|
+
<organization>
|
624
|
+
<name>Slate Rock and Gravel Company</name>
|
625
|
+
<address>
|
626
|
+
<street>Pavillon de Breteuil</street>
|
627
|
+
<city>Sèvres CEDEX</city>
|
628
|
+
<country>France</country>
|
629
|
+
<postcode>F-92312</postcode>
|
630
|
+
</address>
|
631
|
+
</organization>
|
632
|
+
</affiliation>
|
633
|
+
</person>
|
634
|
+
</contributor>
|
635
|
+
<contributor>
|
636
|
+
<role type="publisher"/>
|
637
|
+
<organization>
|
638
|
+
<name>IEC</name>
|
639
|
+
</organization>
|
640
|
+
</contributor>
|
641
|
+
<contributor>
|
642
|
+
<role type="publisher"/>
|
643
|
+
<organization>
|
644
|
+
<name>IETF</name>
|
645
|
+
</organization>
|
646
|
+
</contributor>
|
647
|
+
<contributor>
|
648
|
+
<role type="publisher"/>
|
649
|
+
<organization>
|
650
|
+
<name>ISO</name>
|
651
|
+
</organization>
|
652
|
+
</contributor>
|
653
|
+
<version>
|
654
|
+
<revision-date>2000-01</revision-date>
|
655
|
+
</version>
|
656
|
+
<language>el</language>
|
657
|
+
<script>Grek</script>
|
658
|
+
<abstract><p>This is the abstract of the document</p>
|
659
|
+
<p>This is the second paragraph of the abstract of the document.</p></abstract>
|
660
|
+
<status><stage>published</stage></status>
|
661
|
+
<copyright>
|
662
|
+
<from>#{Date.today.year}</from>
|
663
|
+
<owner>
|
664
|
+
<organization>
|
665
|
+
<name>IEC</name>
|
666
|
+
</organization>
|
667
|
+
</owner>
|
668
|
+
</copyright>
|
669
|
+
<copyright>
|
670
|
+
<from>#{Date.today.year}</from>
|
671
|
+
<owner>
|
672
|
+
<organization>
|
673
|
+
<name>IETF</name>
|
674
|
+
</organization>
|
675
|
+
</owner>
|
676
|
+
</copyright>
|
677
|
+
<copyright>
|
678
|
+
<from>#{Date.today.year}</from>
|
679
|
+
<owner>
|
680
|
+
<organization>
|
681
|
+
<name>ISO</name>
|
682
|
+
</organization>
|
683
|
+
</owner>
|
684
|
+
</copyright>
|
685
|
+
<ext>
|
686
|
+
<doctype>this-is-a-doctype</doctype>
|
687
|
+
<subdoctype>This is a DocSubType</subdoctype>
|
688
|
+
</ext>
|
689
|
+
</bibdata>
|
690
|
+
<misc-container>
|
691
|
+
<semantic-metadata>
|
692
|
+
<hello-world>A</hello-world>
|
693
|
+
</semantic-metadata>
|
694
|
+
<semantic-metadata>
|
695
|
+
<hello-world>B</hello-world>
|
696
|
+
</semantic-metadata>
|
697
|
+
<semantic-metadata>
|
698
|
+
<hello-world>C, D</hello-world>
|
699
|
+
</semantic-metadata>
|
700
|
+
<semantic-metadata>
|
701
|
+
<hello>what-not</hello>
|
702
|
+
</semantic-metadata>
|
703
|
+
<presentation-metadata>
|
704
|
+
<hello>Hello?</hello>
|
705
|
+
</presentation-metadata>
|
706
|
+
<presentation-metadata>
|
707
|
+
<manifold>hello, world</manifold>
|
708
|
+
</presentation-metadata>
|
709
|
+
<presentation-metadata>
|
710
|
+
<manifold>yes</manifold>
|
711
|
+
</presentation-metadata>
|
712
|
+
</misc-container>
|
713
|
+
<preface>
|
714
|
+
<abstract id='_'>
|
715
|
+
<title>Abstract</title>
|
716
|
+
<p id='_'>This is the abstract of the document</p>
|
717
|
+
<p id='_'>This is the second paragraph of the abstract of the document.</p>
|
718
|
+
</abstract>
|
719
|
+
</preface>
|
720
|
+
<sections>
|
721
|
+
<clause id='_' language='en' inline-header='false' obligation='normative'>
|
722
|
+
<title>Clause 1</title>
|
723
|
+
</clause>
|
724
|
+
</sections>
|
725
|
+
</standard-document>
|
699
726
|
OUTPUT
|
700
727
|
expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
|
701
728
|
.to be_equivalent_to xmlpp(output)
|