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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
|
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
targetNamespace="http://java.sun.com/xml/ns/j2ee"
xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="2.0">
<xsd:annotation>
<xsd:documentation>
@(#)web-jsptaglibrary_2_0.xsds 1.36 08/18/03
</xsd:documentation>
</xsd:annotation>
<xsd:annotation>
<xsd:documentation>
Copyright 2003 Sun Microsystems, Inc., 901 San Antonio
Road, Palo Alto, California 94303, U.S.A. All rights
reserved.
Sun Microsystems, Inc. has intellectual property rights
relating to technology described in this document. In
particular, and without limitation, these intellectual
property rights may include one or more of the U.S. patents
listed at http://www.sun.com/patents and one or more
additional patents or pending patent applications in the
U.S. and other countries.
This document and the technology which it describes are
distributed under licenses restricting their use, copying,
distribution, and decompilation. No part of this document
may be reproduced in any form by any means without prior
written authorization of Sun and its licensors, if any.
Third-party software, including font technology, is
copyrighted and licensed from Sun suppliers.
Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE,
JavaServer Pages, Enterprise JavaBeans and the Java Coffee
Cup logo are trademarks or registered trademarks of Sun
Microsystems, Inc. in the U.S. and other countries.
Federal Acquisitions: Commercial Software - Government Users
Subject to Standard License Terms and Conditions.
</xsd:documentation>
</xsd:annotation>
<xsd:annotation>
<xsd:documentation>
<![CDATA[
This is the XML Schema for the JSP Taglibrary
descriptor. All Taglibrary descriptors must
indicate the tag library schema by using the Taglibrary
namespace:
http://java.sun.com/xml/ns/j2ee
and by indicating the version of the schema by
using the version element as shown below:
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="..."
version="2.0">
...
</taglib>
The instance documents may indicate the published
version of the schema using xsi:schemaLocation attribute
for J2EE namespace with the following location:
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd
]]>
</xsd:documentation>
</xsd:annotation>
<xsd:include schemaLocation="j2ee_1_4.xsd"/>
<!-- **************************************************** -->
<xsd:element name="taglib" type="j2ee:tldTaglibType">
<xsd:annotation>
<xsd:documentation>
The taglib tag is the document root.
The definition of taglib is provided
by the tldTaglibType.
</xsd:documentation>
</xsd:annotation>
<xsd:unique name="tag-name-uniqueness">
<xsd:annotation>
<xsd:documentation>
The taglib element contains, among other things, tag and
tag-file elements.
The name subelements of these elements must each be unique.
</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath="j2ee:tag|j2ee:tag-file"/>
<xsd:field xpath="j2ee:name"/>
</xsd:unique>
<xsd:unique name="function-name-uniqueness">
<xsd:annotation>
<xsd:documentation>
The taglib element contains function elements.
The name subelements of these elements must each be unique.
</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath="j2ee:function"/>
<xsd:field xpath="j2ee:name"/>
</xsd:unique>
</xsd:element>
<!-- **************************************************** -->
<xsd:complexType name="body-contentType">
<xsd:annotation>
<xsd:documentation>
Specifies the type of body that is valid for a tag.
This value is used by the JSP container to validate
that a tag invocation has the correct body syntax and
by page composition tools to assist the page author
in providing a valid tag body.
There are currently four values specified:
tagdependent The body of the tag is interpreted by the tag
implementation itself, and is most likely
in a different "language", e.g embedded SQL
statements.
JSP The body of the tag contains nested JSP
syntax.
empty The body must be empty
scriptless The body accepts only template text, EL
Expressions, and JSP action elements. No
scripting elements are allowed.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="j2ee:string">
<xsd:enumeration value="tagdependent"/>
<xsd:enumeration value="JSP"/>
<xsd:enumeration value="empty"/>
<xsd:enumeration value="scriptless"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="extensibleType" abstract="true">
<xsd:annotation>
<xsd:documentation>
The extensibleType is an abstract base type that is used to
define the type of extension-elements. Instance documents
must substitute a known type to define the extension by
using xsi:type attribute to define the actual type of
extension-elements.
</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="functionType">
<xsd:annotation>
<xsd:documentation>
The function element is used to provide information on each
function in the tag library that is to be exposed to the EL.
The function element may have several subelements defining:
description Optional tag-specific information
display-name A short name that is intended to be
displayed by tools
icon Optional icon element that can be used
by tools
name A unique name for this function
function-class Provides the name of the Java class that
implements the function
function-signature Provides the signature, as in the Java
Language Specification, of the Java
method that is to be used to implement
the function.
example Optional informal description of an
example of a use of this function
function-extension Zero or more extensions that provide extra
information about this function, for tool
consumption
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="j2ee:descriptionGroup"/>
<xsd:element name="name"
type="j2ee:tld-canonical-nameType">
<xsd:annotation>
<xsd:documentation>
A unique name for this function.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="function-class"
type="j2ee:fully-qualified-classType">
<xsd:annotation>
<xsd:documentation>
Provides the fully-qualified class name of the Java
class containing the static method that implements
the function.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="function-signature"
type="j2ee:string">
<xsd:annotation>
<xsd:documentation>
Provides the signature, of the static Java method that is
to be used to implement the function. The syntax of the
function-signature element is as follows:
FunctionSignature ::= ReturnType S MethodName S?
'(' S? Parameters? S? ')'
ReturnType ::= Type
MethodName ::= Identifier
Parameters ::= Parameter
| ( Parameter S? ',' S? Parameters )
Parameter ::= Type
Where:
* Type is a basic type or a fully qualified Java class name
(including package name), as per the 'Type' production
in the Java Language Specification, Second Edition,
Chapter 18.
* Identifier is a Java identifier, as per the 'Identifier'
production in the Java Language Specification, Second
Edition, Chapter 18.
Example:
java.lang.String nickName( java.lang.String, int )
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="example"
type="j2ee:xsdStringType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The example element contains an informal description
of an example of the use of this function.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="function-extension"
type="j2ee:tld-extensionType"
minOccurs="0"
maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Function extensions are for tool use only and must not affect
the behavior of a container.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="tagFileType">
<xsd:annotation>
<xsd:documentation>
Defines an action in this tag library that is implemented
as a .tag file.
The tag-file element has two required subelements:
description Optional tag-specific information
display-name A short name that is intended to be
displayed by tools
icon Optional icon element that can be used
by tools
name The unique action name
path Where to find the .tag file implementing this
action, relative to the root of the web
application or the root of the JAR file for a
tag library packaged in a JAR. This must
begin with /WEB-INF/tags if the .tag file
resides in the WAR, or /META-INF/tags if the
.tag file resides in a JAR.
example Optional informal description of an
example of a use of this tag
tag-extension Zero or more extensions that provide extra
information about this tag, for tool
consumption
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="j2ee:descriptionGroup"/>
<xsd:element name="name"
type="j2ee:tld-canonical-nameType"/>
<xsd:element name="path"
type="j2ee:pathType"/>
<xsd:element name="example"
type="j2ee:xsdStringType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The example element contains an informal description
of an example of the use of a tag.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="tag-extension"
type="j2ee:tld-extensionType"
minOccurs="0"
maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Tag extensions are for tool use only and must not affect
the behavior of a container.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="tagType">
<xsd:annotation>
<xsd:documentation>
The tag defines a unique tag in this tag library. It has one
attribute, id.
The tag element may have several subelements defining:
description Optional tag-specific information
display-name A short name that is intended to be
displayed by tools
icon Optional icon element that can be used
by tools
name The unique action name
tag-class The tag handler class implementing
javax.servlet.jsp.tagext.JspTag
tei-class An optional subclass of
javax.servlet.jsp.tagext.TagExtraInfo
body-content The body content type
variable Optional scripting variable information
attribute All attributes of this action that are
evaluated prior to invocation.
dynamic-attributes Whether this tag supports additional
attributes with dynamic names. If
true, the tag-class must implement the
javax.servlet.jsp.tagext.DynamicAttributes
interface. Defaults to false.
example Optional informal description of an
example of a use of this tag
tag-extension Zero or more extensions that provide extra
information about this tag, for tool
consumption
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="j2ee:descriptionGroup"/>
<xsd:element name="name"
type="j2ee:tld-canonical-nameType"/>
<xsd:element name="tag-class"
type="j2ee:fully-qualified-classType">
<xsd:annotation>
<xsd:documentation>
Defines the subclass of javax.serlvet.jsp.tagext.JspTag
that implements the request time semantics for
this tag. (required)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="tei-class"
type="j2ee:fully-qualified-classType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Defines the subclass of javax.servlet.jsp.tagext.TagExtraInfo
for this tag. (optional)
If this is not given, the class is not consulted at
translation time.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="body-content"
type="j2ee:body-contentType">
<xsd:annotation>
<xsd:documentation>
Specifies the format for the body of this tag.
The default in JSP 1.2 was "JSP" but because this
is an invalid setting for simple tag handlers, there
is no longer a default in JSP 2.0. A reasonable
default for simple tag handlers is "scriptless" if
the tag can have a body.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="variable"
type="j2ee:variableType"
minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="attribute"
type="j2ee:tld-attributeType"
minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="dynamic-attributes"
type="j2ee:generic-booleanType"
minOccurs="0"/>
<xsd:element name="example"
type="j2ee:xsdStringType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The example element contains an informal description
of an example of the use of a tag.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="tag-extension"
type="j2ee:tld-extensionType"
minOccurs="0"
maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Tag extensions are for tool use only and must not affect
the behavior of a container.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="tld-attributeType">
<xsd:annotation>
<xsd:documentation>
The attribute element defines an attribute for the nesting
tag. The attributre element may have several subelements
defining:
description a description of the attribute
name the name of the attribute
required whether the attribute is required or
optional
rtexprvalue whether the attribute is a runtime attribute
type the type of the attributes
fragment whether this attribute is a fragment
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description"
type="j2ee:descriptionType"
minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="name"
type="j2ee:java-identifierType"/>
<xsd:element name="required"
type="j2ee:generic-booleanType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Defines if the nesting attribute is required or
optional.
If not present then the default is "false", i.e
the attribute is optional.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:choice>
<xsd:sequence>
<xsd:element name="rtexprvalue"
type="j2ee:generic-booleanType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Defines if the nesting attribute can have scriptlet
expressions as a value, i.e the value of the
attribute may be dynamically calculated at request
time, as opposed to a static value determined at
translation time.
If not present then the default is "false", i.e the
attribute has a static value
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="type"
type="j2ee:fully-qualified-classType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Defines the Java type of the attributes value. For
static values (those determined at translation time)
the type is always java.lang.String.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:element name="fragment"
type="j2ee:generic-booleanType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
"true" if this attribute is of type
javax.jsp.tagext.JspFragment, representing dynamic
content that can be re-evaluated as many times
as needed by the tag handler. If omitted or "false",
the default is still type="java.lang.String"
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="tld-canonical-nameType">
<xsd:annotation>
<xsd:documentation>
Defines the canonical name of a tag or attribute being
defined.
The name must conform to the lexical rules for an NMTOKEN.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="j2ee:xsdNMTOKENType"/>
</xsd:simpleContent>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="tld-extensionType">
<xsd:annotation>
<xsd:documentation>
The tld-extensionType is used to indicate
extensions to a specific TLD element.
It is used by elements to designate an extension block
that is targeted to a specific extension designated by
a set of extension elements that are declared by a
namespace. The namespace identifies the extension to
the tool that processes the extension.
The type of the extension-element is abstract. Therefore,
a concrete type must be specified by the TLD using
xsi:type attribute for each extension-element.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="extension-element"
type="j2ee:extensibleType"
maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="namespace"
use="required"
type="xsd:anyURI"/>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="tldTaglibType">
<xsd:annotation>
<xsd:documentation>
The taglib tag is the document root, it defines:
description a simple string describing the "use" of this taglib,
should be user discernable
display-name the display-name element contains a
short name that is intended to be displayed
by tools
icon optional icon that can be used by tools
tlib-version the version of the tag library implementation
short-name a simple default short name that could be
used by a JSP authoring tool to create
names with a mnemonic value; for example,
the it may be used as the prefered prefix
value in taglib directives
uri a uri uniquely identifying this taglib
validator optional TagLibraryValidator information
listener optional event listener specification
tag tags in this tag library
tag-file tag files in this tag library
function zero or more EL functions defined in this
tag library
taglib-extension zero or more extensions that provide extra
information about this taglib, for tool
consumption
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="j2ee:descriptionGroup"/>
<xsd:element name="tlib-version"
type="j2ee:dewey-versionType">
<xsd:annotation>
<xsd:documentation>
Describes this version (number) of the taglibrary.
It is described as a dewey decimal.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="short-name"
type="j2ee:tld-canonical-nameType">
<xsd:annotation>
<xsd:documentation>
Defines a simple default name that could be used by
a JSP authoring tool to create names with a
mnemonicvalue; for example, it may be used as the
preferred prefix value in taglib directives. Do
not use white space, and do not start with digits
or underscore.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="uri"
type="j2ee:xsdAnyURIType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Defines a public URI that uniquely identifies this
version of the taglibrary. Leave it empty if it
does not apply.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="validator"
type="j2ee:validatorType"
minOccurs="0">
</xsd:element>
<xsd:element name="listener"
type="j2ee:listenerType"
minOccurs="0" maxOccurs="unbounded">
</xsd:element>
<xsd:element name="tag"
type="j2ee:tagType"
minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element name="tag-file"
type="j2ee:tagFileType"
minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element name="function"
type="j2ee:functionType"
minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element name="taglib-extension"
type="j2ee:tld-extensionType"
minOccurs="0"
maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Taglib extensions are for tool use only and must not affect
the behavior of a container.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="version"
type="j2ee:dewey-versionType"
fixed="2.0"
use="required">
<xsd:annotation>
<xsd:documentation>
Describes the JSP version (number) this taglibrary
requires in order to function (dewey decimal)
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="validatorType">
<xsd:annotation>
<xsd:documentation>
A validator that can be used to validate
the conformance of a JSP page to using this tag library is
defined by a validatorType.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description"
type="j2ee:descriptionType"
minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element name="validator-class"
type="j2ee:fully-qualified-classType">
<xsd:annotation>
<xsd:documentation>
Defines the TagLibraryValidator class that can be used
to validate the conformance of a JSP page to using this
tag library.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="init-param"
type="j2ee:param-valueType"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
The init-param element contains a name/value pair as an
initialization param.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="variable-scopeType">
<xsd:annotation>
<xsd:documentation>
This type defines scope of the scripting variable. See
TagExtraInfo for details. The allowed values are,
"NESTED", "AT_BEGIN" and "AT_END".
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="j2ee:string">
<xsd:enumeration value="NESTED"/>
<xsd:enumeration value="AT_BEGIN"/>
<xsd:enumeration value="AT_END"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="variableType">
<xsd:annotation>
<xsd:documentation>
The variableType provides information on the scripting
variables defined by using this tag. It is a (translation
time) error for a tag that has one or more variable
subelements to have a TagExtraInfo class that returns a
non-null value from a call to getVariableInfo().
The subelements of variableType are of the form:
description Optional description of this
variable
name-given The variable name as a constant
name-from-attribute The name of an attribute whose
(translation time) value will
give the name of the
variable. One of name-given or
name-from-attribute is required.
variable-class Name of the class of the variable.
java.lang.String is default.
declare Whether the variable is declared
or not. True is the default.
scope The scope of the scripting varaible
defined. NESTED is default.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description"
type="j2ee:descriptionType"
minOccurs="0" maxOccurs="unbounded"/>
<xsd:choice>
<xsd:element name="name-given"
type="j2ee:java-identifierType">
<xsd:annotation>
<xsd:documentation>
The name for the scripting variable.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="name-from-attribute"
type="j2ee:java-identifierType">
<xsd:annotation>
<xsd:documentation>
The name of an attribute whose
(translation-time) value will give the name of
the variable.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
<xsd:element name="variable-class"
type="j2ee:fully-qualified-classType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The optional name of the class for the scripting
variable. The default is java.lang.String.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="declare"
type="j2ee:generic-booleanType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Whether the scripting variable is to be defined
or not. See TagExtraInfo for details. This
element is optional and "true" is the default.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="scope"
type="j2ee:variable-scopeType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The element is optional and "NESTED" is the default.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
</xsd:schema>
|