-
Notifications
You must be signed in to change notification settings - Fork 0
/
X3dTooltipConversions.xslt
2537 lines (2431 loc) · 145 KB
/
X3dTooltipConversions.xslt
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
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:saxon="http://icl.com/saxon"
saxon:trace="true"
extension-element-prefixes="saxon">
<xsl:param name="tooltipLanguage"/>
<xsl:param name="version"><xsl:text>3.1</xsl:text></xsl:param>
<!--
<head>
<meta name="filename" content="X3dToolTipConversions.xslt" />
<meta name="author" content="Don Brutzman" />
<meta name="created" content="15 April 2002" />
<meta name="revised" content="6 May 2006" />
<meta name="description" content="XSL stylesheet to build the X3D Tooltips (originally used for SIGGRAPH Online pages). Additional HTML improvements by Juan Gril and Jeff Weekley." />
<meta name="url" content="http://www.web3d.org/x3d/content/X3dToolTipConversions.xslt" />
</head>
Recommended tools:
- SAXON XML Toolkit (and Instant Saxon) from Michael Kay of ICL, http://saxon.sourceforge.net
Especially necessary since this stylesheet uses saxon-specific extensions for file handling
- XML Spy can be configured to use latest Saxon. See README.txt in this directory.
Invocation:
- cd C:\www.web3d.org\x3d\content
make tooltips
(or)
saxon -t -o X3dToolTips.html x3d-3.1.profile.xml X3dTooltipConversions.xslt
-->
<xsl:strip-space elements="*"/>
<xsl:output method="html" encoding="utf-8" media-type="text/html" indent="yes"/>
<xsl:variable name="x3dSpecificationUrlBase">
<!-- v3.3 includes bookmarks for each node in Node Index clause -->
<xsl:text>http://www.web3d.org/files/specifications/19775-1/V3.3/</xsl:text>
<!-- prior specification versions not used since less authoritative and (for 3.1) only include changes -->
<!-- <xsl:text>http://www.web3d.org/files/specifications/19775-1/V3.2/</xsl:text> -->
</xsl:variable>
<!-- $schemaDocumentationUrl and $doctypeDocumentationUrl moved here by Hyokwang Lee -->
<!-- http://www.web3d.org/specifications/X3dSchemaDocumentation3.3/x3d-3.3_Layer.html -->
<xsl:variable name="schemaDocumentationUrl">
<xsl:text>http://www.web3d.org/specifications/X3dSchemaDocumentation</xsl:text>
<xsl:value-of select="$version"/>
<xsl:text>/x3d-</xsl:text>
<xsl:value-of select="$version"/>
<xsl:text>.html</xsl:text>
</xsl:variable>
<!-- http://www.web3d.org/specifications/X3dDoctypeDocumentation3.3.html#AudioClip -->
<xsl:variable name="doctypeDocumentationUrl">
<xsl:text>http://www.web3d.org/specifications/X3dDoctypeDocumentation</xsl:text>
<xsl:value-of select="$version"/>
<xsl:text>.html</xsl:text>
</xsl:variable>
<xsl:variable name="x3dSpecificationTop">
<xsl:text>Part01/Architecture.html</xsl:text>
</xsl:variable>
<xsl:variable name="x3dSpecificationNodeIndex">
<xsl:text>Part01/versionContent.html</xsl:text>
</xsl:variable>
<xsl:variable name="pageName">
<xsl:text>X3dTooltips</xsl:text>
<xsl:if test="($tooltipLanguage != 'English')">
<xsl:value-of select="$tooltipLanguage"/>
</xsl:if>
<xsl:text>.html</xsl:text>
</xsl:variable>
<xsl:variable name="todaysDate">
<xsl:value-of select="fn:day-from-date(current-date())"/>
<xsl:text> </xsl:text>
<!-- adapted from http://www.xsltfunctions.com/xsl/functx_month-name-en.html -->
<xsl:sequence select="
('January', 'February', 'March', 'April', 'May', 'June',
'July', 'August', 'September', 'October', 'November', 'December')
[fn:month-from-date(current-date())]"/>
<!-- <xsl:value-of select="fn:month-from-date(current-date())"/> -->
<xsl:text> </xsl:text>
<xsl:value-of select="fn:year-from-date(current-date())"/>
</xsl:variable>
<!-- ****** root: start of file ****************************************************** -->
<xsl:template match="/">
<xsl:message>
<xsl:text>Processing X3D ToolTips</xsl:text>
<xsl:text> </xsl:text>
<xsl:value-of select="$version"/>
<xsl:if test="$tooltipLanguage">
<xsl:text> in </xsl:text>
<xsl:value-of select="$tooltipLanguage"/>
</xsl:if>
<xsl:text> ...</xsl:text>
</xsl:message>
<xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
]]></xsl:text>
<!-- first pass through entire tooltip file generates the output HTML files. -->
<xsl:apply-templates/>
<xsl:message>... X3D ToolTip help-page generation complete.</xsl:message>
<!-- perform other versions and schema next -->
</xsl:template>
<!-- ****** DTDProfile: topmost element****************************************************** -->
<xsl:template match="DTDProfile">
<xsl:variable name="langValue">
<xsl:choose>
<!-- TODO m17 add here for Chinese-->
<xsl:when test="$tooltipLanguage='Chinese'">
<xsl:text>zh</xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='French'">
<xsl:text>fr</xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='German'">
<xsl:text>de</xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Italian'">
<xsl:text>it</xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Korean'">
<xsl:text>kr</xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Portuguese'">
<xsl:text>pt</xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Spanish'">
<xsl:text>es</xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Thai'">
<xsl:text>th</xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='English'">
<xsl:text>en</xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage">
<xsl:value-of select="$tooltipLanguage"/>
</xsl:when>
</xsl:choose>
</xsl:variable>
<html lang="{$langValue}">
<head>
<title>
<xsl:text> X3D Tooltips </xsl:text>
<xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="$tooltipLanguage='Chinese'">
<!-- TODO m17 add here for Chinese-->
<xsl:text> 中文版 </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='French'">
<xsl:text> en Français </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='German'">
<xsl:text> auf Deutsch </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Italian'">
<xsl:text> in Italiano </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Korean'">
<xsl:text> 한국어 </xsl:text> <!-- Hyokwang Lee -->
</xsl:when>
<xsl:when test="$tooltipLanguage='Portuguese'">
<xsl:text> em Português </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Spanish'">
<xsl:text> en Español </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Thai'">
<xsl:text> ภาษาไทย </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage">
<xsl:text> in </xsl:text>
<xsl:value-of select="$tooltipLanguage"/>
</xsl:when>
</xsl:choose>
<xsl:text> version </xsl:text>
<xsl:value-of select="$version"/>
</title>
<link rel="shortcut icon" href="icons/X3DtextIcon16.png" title="X3D" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<!-- #000080 = navy -->
<!-- marginheight="10" marginwidth="10" topmargin="10" leftmargin="0" -->
<body bgcolor="#99cccc" link="navy" vlink="#447777" alink="#447777" style="margin: 10px">
<h1 align="center">
<xsl:element name="a">
<xsl:attribute name="name">
<xsl:text>top</xsl:text>
</xsl:attribute>
<xsl:text> </xsl:text>
<xsl:text>Extensible 3D (X3D) </xsl:text>
<xsl:value-of select="$version"/>
<xsl:text> Tooltips</xsl:text>
<xsl:choose>
<!-- TODO m17 add here for Chinese-->
<xsl:when test="$tooltipLanguage='Chinese'">
<xsl:text> 中文版 </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='French'">
<xsl:text> en Français </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='German'">
<xsl:text> auf Deutsch </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Italian'">
<xsl:text> in Italiano </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Korean'">
<xsl:text> 한국어 </xsl:text> <!-- Hyokwang Lee -->
</xsl:when>
<xsl:when test="$tooltipLanguage='Portuguese'">
<xsl:text> Em Português </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Spanish'">
<xsl:text> en Español </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Thai'">
<xsl:text> ภาษาไทย </xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='English'">
<!-- no output -->
</xsl:when>
<xsl:when test="$tooltipLanguage">
<xsl:text> in </xsl:text>
<xsl:value-of select="$tooltipLanguage"/>
</xsl:when>
</xsl:choose>
</xsl:element>
</h1>
<xsl:text> </xsl:text>
<!-- introduction paragraph -->
<table width="85%" summary="" align="center" border="0" cellspacing="0" cellpadding="6">
<tr>
<td align='center'>
<!-- translations go here -->
<xsl:choose>
<!-- TODO m17 add here for Chinese-->
<xsl:when test="$tooltipLanguage='Chinese'">
<xsl:text>此工具提示提供了每个X3D节点(元素)和域(属性)的描述和创作技巧,也为
</xsl:text>
<a href="https://savage.nps.edu/X3D-Edit" target="_blank">X3D-Edit 创作工具</a>
<xsl:text> 和 </xsl:text>
<!-- TODO
<xsl:text>提供了上下文敏感的支持,此工具提示也将整合到将来的
</xsl:text>
<a href="http://www.web3d.org/specifications" target="_blank">X3D Schema</a>
<xsl:text> 中。 </xsl:text>
-->
</xsl:when>
<xsl:when test="$tooltipLanguage='French'">
<xsl:text>Ces tooltips fournissent des descriptions rècapitulatives pour
chaque noeud (èlèment) et chaque zone (attribut) X3D. Ils fournissent un
support pour le outil de création
</xsl:text>
<a href="https://savage.nps.edu/X3D-Edit" target="_blank">X3D-Edit</a>
<xsl:text> et le </xsl:text>
<!-- TODO
<xsl:text>
et seront intègrès dans le prochain
</xsl:text>
<a href="http://www.web3d.org/specifications" target="_blank">schèma de X3D</a>
<xsl:text>.</xsl:text>
<xsl:text> </xsl:text>
-->
</xsl:when>
<xsl:when test="$tooltipLanguage='German'">
<xsl:text>Für alle X3D-Knoten (Elemente) und deren Felder (Attribute) existieren Tooltips mit kurzen Beschreibungen und
Hinweisen für Szenenautoren. Diese dienen als kontextsensitive Hilfe für das
</xsl:text>
<a href="https://savage.nps.edu/X3D-Edit" target="_blank">Autorenwerkzeug X3D-Edit</a>
<xsl:text> und der </xsl:text>
<!-- TODO
<xsl:text>
und werden auch im künftigen
</xsl:text>
<a href="http://www.web3d.org/specifications" target="_blank">X3D Schema</a>
<xsl:text> integriert sein.</xsl:text>
<xsl:text> </xsl:text>
-->
</xsl:when>
<xsl:when test="$tooltipLanguage='Italian'">
<xsl:text>Questi commenti forniscono delle descrizioni riassuntive e dei consigli
utili per ogni nodo (elemento) e campo (attributo) di X3D. Essi
forniscono supporto dipendente dal contesto per lo strumento di sviluppo
</xsl:text>
<a href="https://savage.nps.edu/X3D-Edit" target="_blank">X3D-Edit</a>
<xsl:text> e la </xsl:text>
<!-- TODO
<xsl:text> e saranno integrati nel futuro
</xsl:text>
<a href="http://www.web3d.org/specifications" target="_blank">Schema X3D</a>
<xsl:text>. </xsl:text>
-->
</xsl:when>
<!-- Hyokwang Lee -->
<xsl:when test="$tooltipLanguage='Korean'">
<xsl:text>
X3D 툴팁(Tooltips)은 버전
</xsl:text>
<xsl:value-of select="$version"/>
<xsl:text> 사양(Specification)의 각 X3D 노드(엘리먼트)와 필드(속성)에 대한
간략한 설명과 저작(authoring) 힌트를 제공한다.
</xsl:text>
<a href="https://savage.nps.edu/X3D-Edit" target="_blank">X3D-Edit</a>
<xsl:text>과 같은 툴 및 저자들을 위한 상황 대응적인 지원(context-sensitive support)이 제공되며,
또한 각 노드 별로
</xsl:text>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$x3dSpecificationUrlBase"/>
<xsl:value-of select="$x3dSpecificationTop"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:text>_blank</xsl:text>
</xsl:attribute>
<xsl:text disable-output-escaping="yes">X3D&nbsp;추상&nbsp;사양</xsl:text>
<xsl:text disable-output-escaping="yes"> (X3D&nbsp;Abstract Specification)
</xsl:text>
</xsl:element><xsl:text>,
</xsl:text>
<xsl:element name="a">
<xsl:attribute name="target">
<xsl:text>_blank</xsl:text>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="@name"/>
<xsl:text> documentation, X3D Schema</xsl:text>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="@name"/>
<xsl:text> documentation, X3D Schema</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="$schemaDocumentationUrl"/>
</xsl:attribute>
<xsl:text disable-output-escaping="yes">X3D&nbsp;스키마&nbsp;문서</xsl:text>
<xsl:text disable-output-escaping="yes"> (X3D&nbsp;Schema Documentation)</xsl:text>
</xsl:element><xsl:text>,
</xsl:text>
<xsl:element name="a">
<xsl:attribute name="target">
<xsl:text>_blank</xsl:text>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="@name"/>
<xsl:text> documentation, X3D DOCTYPE</xsl:text>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="@name"/>
<xsl:text> documentation, X3D DOCTYPE</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="$doctypeDocumentationUrl"/>
</xsl:attribute>
<xsl:text disable-output-escaping="yes">X3D&nbsp;DOCTYPE&nbsp;문서</xsl:text>
<xsl:text disable-output-escaping="yes"> (X3D&nbsp;DOCTYPE Documentation)</xsl:text>
</xsl:element>
<xsl:text>에 대한 적절한 링크가 제공된다.
</xsl:text>
</xsl:when>
<xsl:when test="$tooltipLanguage='Portuguese'">
<xsl:text>Estas dicas de ferramentas (tooltips) fornecem uma descrição
resumida e dicas de uso para cada nó X3D (elemento) e campo (atributo).
Elas fornecem ajuda sensível ao contexto para a ferramenta de edição
</xsl:text>
<a href="https://savage.nps.edu/X3D-Edit" target="_blank">X3D-Edit</a>
<xsl:text> eo </xsl:text>
<!-- TODO
<xsl:text>
e será integrada com o
</xsl:text>
<a href="http://www.web3d.org/specifications" target="_blank">X3D Schema</a>
<xsl:text>
que esta para surgir. </xsl:text>
-->
</xsl:when>
<xsl:when test="$tooltipLanguage='Spanish'">
<xsl:text>Estas notas de ayuda proporcionan descripciones resumidas y sugerencias de
autoría para cada nodo (elemento) X3D y campo (atributo). Proporcionan
ayuda contextual en la herramienta de autor
</xsl:text>
<a href="https://savage.nps.edu/X3D-Edit" target="_blank">X3D-Edit</a>
<xsl:text> y el </xsl:text>
<!-- TODO
<xsl:text> y se integrarán en el próximo
</xsl:text>
<a href="http://www.web3d.org/specifications" target="_blank">X3D Schema</a>
<xsl:text>. </xsl:text>
-->
</xsl:when>
<!-- Hassadee Pimsuwan -->
<xsl:when test="$tooltipLanguage='Thai'">
<xsl:text>
X3D tooltips เป็นเอกสารที่รวบรวมคำอธิบายโดยสรุปและข้อเสนอแนะของแต่ละโหนด (element) และฟิลด์ (attribute) ในรุ่น
</xsl:text>
<xsl:value-of select="$version"/>
<xsl:text>
เอกสารนี้ยังรวมถึงคำอธิบายช่วยเหลือสำหรับผู้ใช้เครื่องมือ อย่างเช่น
</xsl:text>
<a href="https://savage.nps.edu/X3D-Edit" target="_blank">X3D-Edit</a><xsl:text> ด้วย</xsl:text>
<xsl:text>โดยแต่ละโหนดจะมีการโยงไปถึง
</xsl:text>
<!-- TODO
<xsl:text> และกำลังจะรวมเข้ากับ
</xsl:text>
<a href="http://www.web3d.org/specifications" target="_blank">X3D Schema</a>
<xsl:text>. </xsl:text>
-->
</xsl:when>
<xsl:otherwise> <!-- English -->
<xsl:text>
The X3D tooltips provide summary descriptions and authoring hints for each
X3D node (element) and field (attribute) in the version
</xsl:text>
<xsl:value-of select="$version"/>
<xsl:text> specification.
They provide context-sensitive support for authors and tools (such as
</xsl:text>
<a href="https://savage.nps.edu/X3D-Edit" target="_blank">X3D-Edit</a><xsl:text>)</xsl:text>
<xsl:text>, with each node also providing appropriate links to the
</xsl:text>
<!-- TODO
<xsl:text> and will be integrated with the
</xsl:text>
<a href="http://www.web3d.org/specifications" target="_blank">X3D Schema</a>
<xsl:text>. </xsl:text>
-->
</xsl:otherwise>
</xsl:choose>
<!-- common header finish for all languages -->
<!-- this will not be applied to korean edition. Hyokwang Lee -->
<xsl:if test="not($tooltipLanguage='Korean')">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$x3dSpecificationUrlBase"/>
<xsl:value-of select="$x3dSpecificationTop"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:text>_blank</xsl:text>
</xsl:attribute>
<xsl:text disable-output-escaping="yes">X3D&nbsp;Abstract&nbsp;Specification</xsl:text>
</xsl:element>
<xsl:text>, the </xsl:text>
<xsl:element name="a">
<xsl:attribute name="target">
<xsl:text>_blank</xsl:text>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="@name"/>
<xsl:text> documentation, X3D Schema</xsl:text>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="@name"/>
<xsl:text> documentation, X3D Schema</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="$schemaDocumentationUrl"/>
</xsl:attribute>
<xsl:text disable-output-escaping="yes">X3D Schema Documentation</xsl:text>
</xsl:element>
<xsl:text> </xsl:text>
<xsl:text>and the </xsl:text>
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
<xsl:element name="a">
<xsl:attribute name="target">
<xsl:text>_blank</xsl:text>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="@name"/>
<xsl:text> documentation, X3D DOCTYPE</xsl:text>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="@name"/>
<xsl:text> documentation, X3D DOCTYPE</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="$doctypeDocumentationUrl"/>
</xsl:attribute>
<xsl:text disable-output-escaping="yes">X3D DOCTYPE Documentation</xsl:text>
</xsl:element>
<xsl:text>. </xsl:text>
</xsl:if>
</td>
</tr>
<xsl:if test="not($version='3.3')">
<tr>
<td align='center'>
<xsl:text> </xsl:text>
<xsl:text>Complete support for the latest X3D specification can be found in the </xsl:text>
<!-- relative link for local/online use -->
<a href="X3dTooltips.html">X3D Tooltips version 3.3</a>
<xsl:text>.</xsl:text>
<xsl:text> </xsl:text>
</td>
</tr>
</xsl:if>
</table>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<!-- ****** "elements" element****************************************************** -->
<xsl:template match="elements">
<!-- table of contents index, which would be better as a sorted column -->
<blockquote style="text-align: justify; align: center" >
<xsl:text> </xsl:text>
<xsl:for-each select="element[not(starts-with(@name,'XML_')) and not(@name='USE')]">
<xsl:sort select="@name" order="ascending" case-order="lower-first"/>
<font size="-1">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:value-of select="@name"/>
</xsl:element>
</font>
<xsl:text>   </xsl:text>
<!--   = -->
</xsl:for-each>
</blockquote>
<xsl:text> </xsl:text>
<!-- Detailed table containing names and tooltips for elements, attributes -->
<blockquote>
<!-- width="900" -->
<table summary="" align="center" width="98%" border="1" cellspacing="0" cellpadding="1">
<xsl:apply-templates select="element[not(starts-with(@name,'XML_'))]">
<xsl:sort select="@name" order="ascending" case-order="lower-first"/>
</xsl:apply-templates>
<!-- bookmark links row-->
<tr align="left">
<td bgcolor="#669999" align="right" valign="top">
<!-- bookmark -->
<xsl:element name="a">
<xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
<font size="-1">
<xsl:text> </xsl:text>
<!--   = -->
</font>
</xsl:element>
</td>
<!--m17 add here "width="600"" for word wrap width="600"-->
<td bgcolor="#669999" align="right" valign="top" colspan="2">
<xsl:element name="a">
<!-- <xsl:attribute name="href"><xsl:value-of select="$pageName"/></xsl:attribute> -->
<!-- <xsl:attribute name="target"><xsl:text>_self</xsl:text></xsl:attribute> -->
<xsl:attribute name="href"><xsl:text>#top</xsl:text></xsl:attribute>
<font size="-1" color="black">
<xsl:text>Top</xsl:text>
<!--   = -->
</font>
</xsl:element>
<xsl:text>   </xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:text>#accessType</xsl:text></xsl:attribute>
<xsl:attribute name="target"><xsl:text>_blank</xsl:text></xsl:attribute>
<font size="-1" color="black">
<xsl:text>accessType and type</xsl:text>
<!--   = -->
</font>
</xsl:element>
<xsl:text>   </xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:text>#credits</xsl:text></xsl:attribute>
<font size="-1" color="black">
<xsl:text>Credits</xsl:text>
<!--   = -->
</font>
</xsl:element>
<xsl:text>   </xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:text>../content/examples/X3dResources.html</xsl:text></xsl:attribute>
<xsl:attribute name="target"><xsl:text>_blank</xsl:text></xsl:attribute>
<font size="-1" color="black">
<xsl:text>X3D Resources</xsl:text>
<!--   = -->
</font>
</xsl:element>
</td>
</tr>
</table>
<xsl:text> </xsl:text>
<div width="95%">
</div>
<!-- Summary information table -->
<table summary="" width="95%" align="center" border="0" cellspacing="0" cellpadding="1">
<tr>
<td colspan="3">
<a name="accessType"><h3><i>accessType</i> Definitions</h3></a>
<p>
<i>accessType</i> determines whether a field corresponds to event input, event output, or persistent state information.
Events are strictly typed values with a corresponding timestamp.
ROUTE connections must match <i>accessType</i> between source field and target field.
<ul>
<li>
<i>initializeOnly</i>:
can be initialized, but cannot send or receive events.
This is usually the case for fields that are considered too computationally expensive to change at run time.
</li>
<li>
<i>inputOutput</i>:
can be initialized, and can also send or receive events.
</li>
<li>
<i>inputOnly</i>:
cannot be initialized or included in a scene file, but can receive input event values via a ROUTE.
</li>
<li>
<i>outputOnly</i>:
cannot be initialized or included in a scene file, but can send output event values via a ROUTE.
</li>
</ul>
</p>
<p>
X3D <i>accessType</i> design keeps 3D graphics rendering fast and interactive,
also helping to keep X3D players small and lightweight.
</p>
</td>
</tr>
<tr>
<td colspan="3">
<a name="type"><h3><i>type</i> Definitions</h3></a>
<p>
<a href="http://en.wikipedia.org/wiki/Data_types">Data types</a> classify the possible values for a variable.
X3D is a strongly typed language, meaning that data types must match for a scene to be correct.
Each field in each node (i.e. each XML attribute) has a strictly defined data type.
Multiple data types are provided for boolean, integer, floating-point and string values.
</p>
<ul>
<li>
Each of the base types are either single-value or multiple-value.
Examples: SFFloat (single-value), SFVec2f (2-tuple), SFVec3f (3-tuple), SFOrientation (4-tuple for axis-angle values).
</li>
<li>
Arrays are also provided for all base types. Nomenclature:
<b>SF = Single Field</b> (single value of base type), <b>MF = Multiple Field</b> (array of base-type values).
</li>
<li>
The X3D Schema is able to validate numeric type information and array tuple sizes in X3D scenes
for <i>initializeOnly</i> and <i>inputOutput</i> field initializations that appear within an X3D file.
</li>
<li>
ROUTEs pass events, which are strictly typed values with a corresponding timestamp.
ROUTE connections must match type between source field and target field.
Since they are transient, event values themselves cannot appear within an X3D file.
</li>
<li>
<!-- TODO check scene authoring hints -->
For MF multiple-field arrays, commas between values are normally treated as whitespace.
However, X3D Schema validation will not accept commas that appear within vector values, only between values.
MFColor examples: color="0.25 0.5 0.75, 1 1 0" is valid while color="0.25, 0.5, 0.75, 1, 1, 0" is invalid.
This is an authoring assist to help authors troubleshoot errors in long arrays of values.
</li>
<li>
Failure to match data types correctly is an error!
Types must match during scene validation, scene loading, and at run time.
This is A Good Thing since it allows authors to find problems when they exist,
rather than simply hoping (perhaps mistakenly) that everything will work for end users.
</li>
</ul>
<p>
Several Extensible Markup Language (XML) data types are also included in these tooltips.
</p>
<ul>
<li>
<b><a href="http://www.w3.org/TR/REC-xml/#syntax">CDATA</a></b>
is an XML term for
<a href="http://www.w3.org/TR/REC-xml/#syntax">Character Data</a>.
The base type for all XML attributes
consists of CDATA characters.
CDATA is used throughout the X3D DOCTYPE definitions, which can only check
for the presence of legal strings and thus are not able to validate numeric type information.
Strictly speaking, a few CDATA attributes (such as those for the <i>meta</i> element
and other elements appearing inside the head element)
are not fields of X3D nodes and thus do not have corresponding X3D data types.
</li>
<li>
<b><a href="http://www.w3.org/TR/REC-xml/#FixedAttr">FIXED</a></b>
indicates that no other value is allowed. When used with an empty string "" value,
this is used to indicate that
X3D inputOnly and outputOnly fields are not allowed to appear in an X3D file.
</li>
<li>
<b><a href="http://www.w3.org/TR/REC-xml/#sec-attribute-types">ID</a></b>
is a NMTOKEN that is unique within the scene, corresponding to the DEF label in X3D.
</li>
<li>
<b><a href="http://www.w3.org/TR/REC-xml/#sec-attribute-types">IDREF</a></b>
is a reference to one of these unique scene IDs, corresponding to the USE label in X3D.
</li>
<li>
<b><a href="http://www.w3.org/TR/REC-xml/#sec-common-syn">NMTOKEN</a></b>
is an XML term for
<a href="http://www.w3.org/TR/REC-xml/#sec-common-syn">Name Token</a>.
NMTOKEN is also a CDATA string
but must also match naming requirements for legal characters with no embedded spaces.
</li>
</ul>
<p>
The following table provides a complete list of X3D data type names, descriptions and example values.
</p>
<table border="1" cellpadding="2" align="center">
<tr>
<th>
Field-type names
</th>
<th>
Description
</th>
<th>
Example values
</th>
</tr>
<!-- ====================================================== -->
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFBoolAndMFBool" target="blank">SFBool</a>
</td>
<td>
Single-field boolean value
</td>
<td>
<b>true</b> or <b>false</b> (XML syntax in .x3d files),
<br />
TRUE or FALSE (ClassicVRML syntax in .wrl or .x3dv files)
</td>
</tr>
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFBoolAndMFBool" target="blank">MFBool</a>
</td>
<td>
Multiple-field boolean array, containing an ordered list of SFBool values
</td>
<td>
<b>true false false true</b> (XML syntax in .x3d files),
<br />
[ TRUE FALSE FALSE TRUE ] (ClassicVRML syntax in .wrl or .x3dv files)
</td>
</tr>
<!-- ====================================================== -->
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFColorAndMFColor" target="blank">SFColor</a>
</td>
<td>
Single-field color value, red-green-blue
</td>
<td>
0 0.5 1.0
</td>
</tr>
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFColorAndMFColor" target="blank">MFColor</a>
</td>
<td>
Multiple-field color array, containing an ordered list of SFColor values
</td>
<td>
1 0 0, 0 1 0, 0 0 1
</td>
</tr>
<!-- ====================================================== -->
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFColorRGBAAndMFColorRGBA" target="blank">SFColorRGBA</a>
</td>
<td>
Single-field color value, red-green-blue alpha (opacity)
</td>
<td>
0 0.5 1.0 0.75
</td>
</tr>
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFColorRGBAAndMFColorRGBA" target="blank">MFColorRGBA</a>
</td>
<td>
Multiple-field color array, containing an ordered list of SFColor values
</td>
<td>
1 0 0 0.25, 0 1 0 0.5, 0 0 1 0.75
(red green blue, with varying opacity)
</td>
</tr>
<!-- ====================================================== -->
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFInt32AndMFInt32" target="blank">SFInt32</a>
</td>
<td>
Single-field 32-bit integer value
</td>
<td>
0
</td>
</tr>
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFInt32AndMFInt32" target="blank">MFInt32</a>
</td>
<td>
Multiple-field 32-bit integer array, containing an ordered list of SFInt32 values
</td>
<td>
1 2 3 4 5
</td>
</tr>
<!-- ====================================================== -->
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFFloatAndMFFloat" target="blank">SFFloat</a>
</td>
<td>
Single-field single-precision floating-point value
</td>
<td>
1.0
</td>
</tr>
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFFloatAndMFFloat" target="blank">MFFloat</a>
</td>
<td>
Multiple-field single-precision floating-point array, containing an ordered list of SFFloat values
</td>
<td>
−1 2.0 3.14159
</td>
</tr>
<!-- ====================================================== -->
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFDoubleAndMFDouble" target="blank">SFDouble</a>
</td>
<td>
Single-field double-precision floating-point value
</td>
<td>
2.7128
</td>
</tr>
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFDoubleAndMFDouble" target="blank">MFDouble</a>
</td>
<td>
Multiple-field double-precision array, containing an ordered list of SFDouble values
</td>
<td>
−1 2.0 3.14159
</td>
</tr>
<!-- ====================================================== -->
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFImageAndMFImage" target="blank">SFImage</a>
</td>
<td>
Single-field image value
</td>
<td>
Contains special pixel-encoding values, see
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFImageAndMFImage" target="blank">X3D Specification</a>
for details
</td>
</tr>
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFImageAndMFImage" target="blank">MFImage</a>
</td>
<td>
Multiple-field image value, containing an ordered list of SFImage values
</td>
<td>
Contains special pixel-encoding values, see
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFImageAndMFImage" target="blank">X3D Specification</a>
for details
</td>
</tr>
<!-- ====================================================== -->
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFRotationAndMFRotation" target="blank">SFRotation</a>
</td>
<td>
Single-field rotation value using 3-tuple axis, radian angle form
</td>
<td>
0 1 0 1.57
</td>
</tr>
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFRotationAndMFRotation" target="blank">MFRotation</a>
</td>
<td>
Multiple-field rotation array, containing an ordered list of SFRotation values
</td>
<td>
0 1 0 0, 0 1 0 1.57, 0 1 0 3.14
</td>
</tr>
<!-- ====================================================== -->
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFStringAndMFString" target="blank">SFString</a>
</td>
<td>
Single-field string value
</td>
<td>
Example: an SFString is a simple string value.
<br />
<font color="#ee5500">Warning:</font> do not wrap quotation marks around SFString values.
<br />
<font color="#447777">Hint:</font> insert backslash characters prior to \"embedded quotation marks\" within an SFString value.
</td>
</tr>
<tr>
<td align="right">
<a href="http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/fieldsDef.html#SFStringAndMFString" target="blank">MFString</a>
</td>
<td>
Multiple-field string array, containing an ordered list of SFString values
</td>
<td>
“EXAMINE” “FLY” “WALK” “ANY”
</td>