-
Notifications
You must be signed in to change notification settings - Fork 3
/
S1000D.less
748 lines (692 loc) · 17.2 KB
/
S1000D.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
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
304
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
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
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
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
@import "dc.css";
@namespace xlink "http://www.w3.org/1999/xlink";
@namespace oxy "http://www.oxygenxml.com/extensions/author";
:root {
margin:1em;
}
oxy|comment,
oxy|processing-instruction {
display:none!important;
}
identAndStatusSection{
.section("Indent and Status");
}
dmAddress {
.section("Address");
}
ddnAddress{
display:block;
border:1px dotted black;
padding:3px;
}
ddnAddress:before{
content:"Address: ";
display:block;
border-bottom:1px solid;
font-weight:bold;
color:brown;
}
ddnIdent{
display:block;
margin-left:0.5em;
}
ddnIdent:before{
display:block;
content:"Identifier:";
font-weight:bold;
color:brown;
}
/*<ddnCode modelIdentCode="S1000DBIKE" senderIdent="C3002" receiverIdent="U8025" yearOfDataIssue="2012" seqNumber="00001"/>*/
ddnCode{
display:block;
content: oxy_label(text, " Model: ",width, 100px) oxy_textfield(edit, "@modelIdentCode", columns, 20) "\A"
oxy_label(text, " Sender: ", width, 100px) oxy_textfield(edit, "@senderIdent", columns, 20) "\A"
oxy_label(text, " Receiver: ", width, 100px) oxy_textfield(edit, "@receiverIdent", columns, 20) "\A"
oxy_label(text, " Year: ", width, 100px) oxy_textfield(edit, "@yearOfDataIssue", columns, 20) "\A"
oxy_label(text, " Number: ", width, 100px) oxy_textfield(edit, "@seqNumber", columns, 20)
}
dispatchTo{
border:1px dotted black;
padding:3px;
}
dispatchTo:before{
content:"To: ";
display:block;
border-bottom:1px solid;
font-weight:bold;
color:brown;
}
dispatchAddress{
display:block;
margin-left:0.5em;
}
dispatchAddress:before{
display:block;
content:"Address: ";
font-weight:bold;
color:brown;
}
enterprise{
display:block;
margin-left:0.5em;
}
enterprise:before{
display:block;
content:"Enterprise: ";
font-weight:bold;
color:brown;
}
enterpriseName{
display:block;
content:oxy_label(text, "Enterprise Name: ", width, 100px) oxy_textfield(edit, "#text", columns, 20);
visibility:-oxy-collapse-text;
padding-left:1em;
}
enterpriseUnit{
display:block;
content:oxy_label(text, "Unit: ", width, 100px) oxy_textfield(edit, "#text", columns, 20);
visibility:-oxy-collapse-text;
padding-left:1em;
}
/* <dispatchPerson>
<lastName>Schäfer</lastName>
<firstName>Uwe</firstName>
</dispatchPerson>
*/
dispatchPerson{
display:block;
margin-left:0.5em;
}
dispatchPerson:before{
display:block;
content:"Dispatch Person: ";
font-weight:bold;
color:brown;
}
lastName{
display:block;
content:oxy_label(text, " Last Name: ", width, 100px) oxy_textfield(edit, "#text", columns, 20);
visibility:-oxy-collapse-text;
}
firstName{
display:block;
content:oxy_label(text, " First Name: ", width, 100px) oxy_textfield(edit, "#text", columns, 20);
visibility:-oxy-collapse-text;
}
/* <address>
<street>Livry-Gargan-Strasse</street>
<postalZipCode>82256</postalZipCode>
<city>Fürstenfeldbruck</city>
<country>Germany</country>
</address>
*/
address{
display:block;
white-space:normal;
margin-left:0.5em;
}
address:before{
display:block;
content:"Address: ";
font-weight:bold;
color:brown;
}
street{
display:block;
content:oxy_label(text, " Street: ", width, 100px) oxy_textfield(edit, "#text", columns, 20);
visibility:-oxy-collapse-text;
}
postalZipCode{
display:block;
content:oxy_label(text, " Postal Zip Code: ", width, 100px) oxy_textfield(edit, "#text", columns, 20);
visibility:-oxy-collapse-text;
}
city{
display:block;
content:oxy_label(text, " City: ", width, 100px) oxy_textfield(edit, "#text", columns, 20);
visibility:-oxy-collapse-text;
}
country{
display:block;
content:oxy_label(text, " Country: ", width, 100px) oxy_textfield(edit, "#text", columns, 20);
visibility:-oxy-collapse-text;
}
ddnAddressItems{
display:block;
padding-left:0.5em;
}
issueDate{
.section('Issue Date');
content:
oxy_label(text, "DD / MM / YYYY", width, 25%, color, inherit)
oxy_textfield(edit, "@day", columns, 3) "/"
oxy_textfield(edit, "@month", columns, 3) "/"
oxy_textfield(edit, "@year", columns, 5)
;
}
dispatchFrom{
border:1px dotted black;
padding:3px;
}
dispatchFrom:before{
content:"From: ";
display:block;
border-bottom:1px solid;
font-weight:bold;
color:brown;
}
ddnStatus{
border:1px dotted black;
padding:3px;
}
ddnStatus:before{
content:"Status: ";
display:block;
border-bottom:1px solid;
font-weight:bold;
color:brown;
}
dmStatus {
.section('Status');
}
/*<security securityClassification="01" commercialClassification="cc51" caveat="cv51"/>0*/
security{
.section('Security');
.textfield("Classification", 'securityClassification');
.textfield("Commercial Classification", 'commercialClassification');
.textfield("Caveat", 'caveat');
}
/* <dataRestrictions>
<restrictionInstructions>
<dataDistribution>To be made available to all S1000D users.</dataDistribution>
<exportControl>
<exportRegistrationStmt>
<simplePara>Export of this data module to all countries that are the residence of organizations that are users of S1000D is permitted. Storage of this data module is to be at the discretion of the organization.</simplePara>
</exportRegistrationStmt>
</exportControl>
<dataHandling>There are no specific handling instructions for this data module.</dataHandling>
<dataDestruction>Users may destroy this data module in accordance with their own local procedures.</dataDestruction>
<dataDisclosure>There are no dissemination limitations that apply to this data module.</dataDisclosure>
</restrictionInstructions>*/
dataRestrictions{
border:1px dotted black;
padding:3px;
}
dataRestrictions:before{
content:"Restrictions: ";
display:block;
border-bottom:1px solid;
font-weight:bold;
color:brown;
}
restrictionInstructions{
padding:3px;
}
restrictionInstructions:before{
content:"Instructions: ";
display:block;
border-bottom:1px solid;
font-weight:bold;
color:brown;
}
dataDistribution{
display:block;
content:oxy_label(text, "Distribution: ", color, brown);
}
exportControl{
display:block;
padding:3px;
}
exportControl:before{
content:"Export control: ";
display:block;
border-bottom:1px solid;
font-weight:bold;
color:brown;
}
exportRegistrationStmt{
display:block;
padding:3px;
}
exportControl:before{
content:"Registration Statement: ";
display:block;
border-bottom:1px solid;
font-weight:bold;
color:brown;
}
dataHandling{
display:block;
content:oxy_label(text, "Data Handling: ", color, brown);
}
dataDestruction{
display:block;
content:oxy_label(text, "Data Destruction: ", color, brown);
}
dataDisclosure{
display:block;
content:oxy_label(text, "Data Disclosure: ", color, brown);
}
simplePara{
display:block;
}
/*<restrictionInfo>
<copyright>
<copyrightPara>
<emphasis>Copyright (C) 2013</emphasis>by each of the following organizations:<randomList><listItem><para>AeroSpace and Defence Industries Associations of Europe - ASD.</para></listItem><listItem><para>Ministries of Defence of the member countries of ASD.</para></listItem></randomList></copyrightPara>
<copyrightPara>
<emphasis>Limitations of Liability:</emphasis>
</copyrightPara>
<copyrightPara>
<randomList>
<listItem>
<para>This material is provided "As Is" and neither ASD nor any person who has contributed to the creation, revision or maintenance of the material makes any representations or warranties, express or implied, including but not limited to, warranties of merchantability or fitness for any particular purpose.</para>
</listItem>
<listItem>
<para>Neither ASD nor any person who has contributed to the creation, revision or maintenance of this material shall be liable for any direct, indirect, special or consequential damages or any other liability arising from any use of this material.</para>
</listItem>
<listItem>
<para>Revisions to this document may occur after its issuance. The user is responsible for determining if revisions to the material contained in this document have occurred and are applicable.</para>
</listItem>
</randomList>
</copyrightPara>
</copyright>
<policyStatement>TPSMG TOR 001</policyStatement>
<dataConds>There are no known conditions that would change the data restrictions for, or security classification of, this data module.</dataConds>
</restrictionInfo>*/
restrictionInfo{
display:block;
padding:3px;
}
restrictionInfo:before{
content:"Restriction Information: ";
display:block;
border-bottom:1px solid;
font-weight:bold;
color:brown;
}
copyright{
display:block;
padding:3px;
}
copyright:before{
content:"Copyright: ";
display:block;
border-bottom:1px solid;
font-weight:bold;
color:brown;
}
copyrightPara{
display:block;
}
emphasis{
display:inline;
font-weight:bold;
}
randomList{
display:block;
}
listItem{
display:list-item;
list-style-type:disc;
margin-left:5em;
}
para{
display:block;
}
policyStatement{
display:block;
content:oxy_label(text, "Policy Statement: ", color, brown);
}
dataConds{
display:block;
content: oxy_label(text, "Data Conditions: ", color, brown);
}
/*<authorization>TPSMG</authorization>
<brexDmRef>
<dmRef>
<dmRefIdent>
<dmCode modelIdentCode="S1000DBIKE" systemDiffCode="AAA" systemCode="D00" subSystemCode="0" subSubSystemCode="0" assyCode="00" disassyCode="00" disassyCodeVariant="AA" infoCode="022" infoCodeVariant="A" itemLocationCode="D"/>
</dmRefIdent>
</dmRef>
</brexDmRef>
*/
authorization{
display:block;
content: oxy_label(text, "Authorization: ", color, brown);
}
brexDmRef{
display:block;
}
dmRef{
.labeledSection('Data Model Reference');
}
dmRefIdent{
.labeledSection('Data Model Reference Indentifier');
}
dmCode{
.section('Data Model');
.textfield("Model Code", 'modelIndentCode');
.textfield("System Code", 'systemCode');
.textfield("Sub-System Code", 'subSystemCode');
.textfield("Sub-Sub-System Code", 'subSubSystemCode');
.textfield("Assy Code", 'assyCode');
}
deliveryList{
display:block;
}
deliveryList:before{
content:"Delivery List: ";
border-bottom:1px solid;
font-weight:bold;
color:brown;
}
deliveryListItem{
display:list-item;
margin:1em;
list-style-type:circle;
}
ddn, ddnContent{
display:block;
}
dispatchFileName{
content:oxy_label(text, "File Name: ", width, 150px) oxy_textfield(edit, "#text", columns, 30);
visibility:-oxy-collapse-text;
display:block;
}
entityControlNumber{
content:oxy_label(text, "Control Number: ", width, 150px) oxy_textfield(edit, "#text", columns, 30);
visibility:-oxy-collapse-text;
display:block;
}
issueInfo{
content: " : " oxy_textfield(edit, "@", columns, 10);
.section('Issue Information');
.textfield("Issue number", 'issueNumber');
.textfield("In Work", 'inWork');
}
mediaIdent{
display:block;
content:oxy_label(text, "Media Identifier: ", color, brown) oxy_textfield(edit, "@label");
}
dmodule{
display:block;
}
/* <language countryIsoCode="US" languageIsoCode="en"/>*/
language{
.section('Language');
.textfield("Country ISO", 'countryIsoCode');
.textfield("Language ISO", 'languageIsoCode');
}
/* <dmTitle>
<techName>Mountain bicycle</techName>
<infoName>Products cross-reference table</infoName>
</dmTitle>
*/
dmTitle{
display:block;
font-size:larger;
font-weight:bold;
}
techName{
.labeledTitle('Technical name');
}
infoName{
.labeledTitle('Information name');
}
/* <qualityAssurance>
<firstVerification verificationType="tabtop"/>
</qualityAssurance>
<reasonForUpdate>
<simplePara>schema cleanup</simplePara>
<simplePara>element/attribute renaming</simplePara>
</reasonForUpdate>
*/
qualityAssurance{
.labeledSection("Quality Assurance: ");
}
unverified{
.flag("Unverified");
}
firstVerification {
.section("First Verification");
.textfield("Type", "verificationType");
}
reasonForUpdate{
display:block;
content: "Reason For Update: ";
}
content{
.section("Content");
}
productCrossRefTable{
display:table;
}
product{
display:table-row;
}
/* <assign applicPropertyIdent="serialno" applicPropertyType="prodattr"
applicPropertyValue="1B070701"/>*/
assign{
display:table-cell;
content: "Assign " "\AProperty Ident: " oxy_textfield(edit, "@applicPropertyIdent") "\AProperty Type: " oxy_textfield(edit, "applicPropertyType")
"\AProperty Value: " oxy_textfield(edit, "@applicPropertyValue");
border:1px solid;
padding:0.5em;
}
/* <responsiblePartnerCompany enterpriseCode="SF815">
<enterpriseName>SIOM</enterpriseName>
</responsiblePartnerCompany>
*/
responsiblePartnerCompany{
.section("Responsible Partner Company");
.textfield("Enterprise Code", 'enterpriseCode');
.textfield('Id','id');
}
originator{
.section("Originator");
.textfield("Enterprise Code", 'enterpriseCode');
.textfield('Id','id');
}
applic {
.labeledSection('Applicable to');
}
procedure {
.labeledSection('Procedure');
}
preliminaryRqmts {
.section('Preliminary Requirements');
}
closeRqmts {
.section('Close Requirements');
}
subScript{
font-size:smaller;
vertical-align:sub;
}
superScript{
font-size:smaller;
vertical-align:super;
}
verbatimText{
font-family:monospace;
white-space:pre;
font-size:0.9em;
}
/*<figure id="fig-0001">
<title>Headset</title>
<graphic xlink:type="simple" xlink:actuate="onRequest" xlink:show="new" xlink:href="URN:S1000D:ICN-S1000DBIKE-AAA-DA23000-0-U8025-00533-A-04-1" xlink:title="Headset" infoEntityIdent="ICN-S1000DBIKE-AAA-DA23000-0-U8025-00533-A-04-1"/>
</figure>*/
figure{
.labeledSection('Figure');
}
figure > title{
.labeledTitle('Title');
}
graphic[infoEntityIdent]{
content:oxy_url(oxy_unparsed-entity-uri(attr(infoEntityIdent)));
}
description {
.labeledSection("Description");
}
levelledPara {
.labeledSection("Levelled Paragraph");
}
levelledPara > title {
.labeledTitle("Levelled Paragraph Title");
}
mainProcedure {
.section('Main Procedure');
}
proceduralStep {
.labeledSection('Step');
}
note {
.section('Note');
}
notePara {
.labeledSection('Note Paragraph');
}
proceduralStep > title {
.labeledTitle("Title");
}
reqCondGroup {
.labeledSection("Required Conditions");
}
reqSupportEquips {
.labeledSection("Required Support Equipments");
}
noSupportEquips {
.flag('No Support Equipments');
}
reqSupplies {
.labeledSection("Required Supplies");
}
noSupplies {
.flag('No Supplies');
}
reqSpares {
.labeledSection("Required Spares");
}
noSpares {
.flag('No Spares');
}
reqSafety {
.labeledSection("Required Safety");
}
noSafety {
.flag('No Safety');
}
noConds {
.flag('No Conditions');
}
internalRef:before {
font-style:italic;
content: "[" attr(internalRefId) "]";
link: "#" attr(internalRefId);
}
acronymDefinition:before {
content:"(";
}
acronymDefinition {
font:arial, helvetica, sans-serif;
font-size:smaller;
color:gray;
}
acronymDefinition:after {
content:")";
}
.section(@label) {
& {
display:block;
margin:0.5em;
border:1px solid lightgray;
padding:0.2em;
border-radius:5px;
width:90%;
}
&:before(500) {
background-color:#FAFAFA;
border-bottom:1px solid lightgray;
margin-bottom:0.5em;
display:block;
color:blue;
font-family:arial, helvetica, sans-serif;
content:@label;
font-size:0.8em;
}
}
/* editors */
.textfield(@label, @attribute) {
& {
content+_:
oxy_label(text, "@{label}", width, 25%, color, inherit)
oxy_textfield(
edit, '@@{attribute}',
width, 70%);
}
}
.combobox(@label, @attribute) {
& {
content+_:
oxy_label(text, "@{label}", width, 25%, color, inherit, styles, 'font-family:arial, helvetica, sans-serif;')
oxy_combobox(
edit, '@@{attribute}',
width, 70%,
editable, true
);
}
}
.urlChooser(@label, @attribute) {
& {
content+_:
oxy_label(text, "@{label}", width, 25%, color, inherit)
oxy_urlChooser(
edit, '@@{attribute}',
width, 70%
);
}
}
.labeledTitle(@label) {
&:before(1000) {
display:block;
font-size:xx-small;
color:gray;
content:@label;
font-family:arial, helvetica, sans-serif;
}
& {
display:block;
font-size:2em;
margin:0.2em;
}
}
.labeledSection(@label) {
& {
display:block;
margin:0.5em;
padding-left:0.5em;
border-left:1px dotted lightgray;
}
&:before(1000) {
display:block;
font-size:xx-small;
color:gray;
content:@label;
font-family:arial, helvetica, sans-serif;
}
}
.inlineLabeledSection(@label) {
&:before(1000) {
display:inline;
font-size:xx-small;
color:lightgray;
content:" * " @label;
font-family:arial, helvetica, sans-serif;
}
}
.flag(@label:oxy_local-name()) {
display:block;
color:brown;
content: @label;
}