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.
@@ -227,279 +227,279 @@ RSpec.describe Metanorma::Standoc do
227
227
  :htmltoclevels: 4
228
228
  INPUT
229
229
  output = <<~OUTPUT
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>
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
- <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>
330
- <affiliation>
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>
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
- <?xml version="1.0" encoding="UTF-8"?>
559
- <standard-document xmlns="https://www.metanorma.org/ns/standoc" type="semantic" version="#{Metanorma::Standoc::VERSION}">
560
- <bibdata type="standard">
561
- <title language="en" format="text/plain">Document title</title>
562
- <title language="eo" format="text/plain">Dokumenttitolo</title>
563
- <uri>A</uri>
564
- <uri type="xml">B</uri>
565
- <uri type="html">C</uri>
566
- <uri type="pdf">D</uri>
567
- <uri type="doc">E</uri>
568
- <uri type="relaton">F</uri>
569
- <docidentifier>1000-1-1</docidentifier>
570
- <docnumber>1000</docnumber>
571
- <date type='published'>
572
- <on>1000-01</on>
573
- </date>
574
- <contributor>
575
- <role type="author"/>
576
- <organization>
577
- <name>IEC</name>
578
- </organization>
579
- </contributor>
580
- <contributor>
581
- <role type="author"/>
582
- <organization>
583
- <name>IETF</name>
584
- </organization>
585
- </contributor>
586
- <contributor>
587
- <role type="author"/>
588
- <organization>
589
- <name>ISO</name>
590
- </organization>
591
- </contributor>
592
- <contributor>
593
- <role type='author'/>
594
- <person>
595
- <name>
596
- <completename>Fred Flintstone</completename>
597
- </name>
598
- <affiliation>
599
- <organization>
600
- <name>Slate Rock and Gravel Company</name>
601
- <address>
602
- <street>1 Infinity Loop</street>
603
- <city>Cupertino</city>
604
- <state>CA</state>
605
- <country>USA</country>
606
- <postcode>95014</postcode>
607
- </address>
608
- </organization>
609
- </affiliation>
610
- </person>
611
- </contributor>
612
- <contributor>
613
- <role type='author'/>
614
- <person>
615
- <name>
616
- <completename>Barney Rubble</completename>
617
- </name>
618
- <affiliation>
619
- <organization>
620
- <name>Slate Rock and Gravel Company</name>
621
- <address>
622
- <street>Pavillon de Breteuil</street>
623
- <city>S&#232;vres CEDEX</city>
624
- <country>France</country>
625
- <postcode>F-92312</postcode>
626
- </address>
627
- </organization>
628
- </affiliation>
629
- </person>
630
- </contributor>
631
- <contributor>
632
- <role type="publisher"/>
633
- <organization>
634
- <name>IEC</name>
635
- </organization>
636
- </contributor>
637
- <contributor>
638
- <role type="publisher"/>
639
- <organization>
640
- <name>IETF</name>
641
- </organization>
642
- </contributor>
643
- <contributor>
644
- <role type="publisher"/>
645
- <organization>
646
- <name>ISO</name>
647
- </organization>
648
- </contributor>
649
- <version>
650
- <revision-date>2000-01</revision-date>
651
- </version>
652
- <language>el</language>
653
- <script>Grek</script>
654
- <abstract><p>This is the abstract of the document</p>
655
- <p>This is the second paragraph of the abstract of the document.</p></abstract>
656
- <status><stage>published</stage></status>
657
- <copyright>
658
- <from>#{Date.today.year}</from>
659
- <owner>
660
- <organization>
661
- <name>IEC</name>
662
- </organization>
663
- </owner>
664
- </copyright>
665
- <copyright>
666
- <from>#{Date.today.year}</from>
667
- <owner>
668
- <organization>
669
- <name>IETF</name>
670
- </organization>
671
- </owner>
672
- </copyright>
673
- <copyright>
674
- <from>#{Date.today.year}</from>
675
- <owner>
676
- <organization>
677
- <name>ISO</name>
678
- </organization>
679
- </owner>
680
- </copyright>
681
- <ext>
682
- <doctype>this-is-a-doctype</doctype>
683
- <subdoctype>This is a DocSubType</subdoctype>
684
- </ext>
685
- </bibdata>
686
- <preface>
687
- <abstract id='_'>
688
- <title>Abstract</title>
689
- <p id='_'>This is the abstract of the document</p>
690
- <p id='_'>This is the second paragraph of the abstract of the document.</p>
691
- </abstract>
692
- </preface>
693
- <sections>
694
- <clause id='_' language='en' inline-header='false' obligation='normative'>
695
- <title>Clause 1</title>
696
- </clause>
697
- </sections>
698
- </standard-document>
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&#232;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)