line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#============================================================= -*-perl-*- |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# XML::Schema::Constants.pm |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# DESCRIPTION |
6
|
|
|
|
|
|
|
# Module defining constants for XML::Schema |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# AUTHOR |
9
|
|
|
|
|
|
|
# Andy Wardley |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
# COPYRIGHT |
12
|
|
|
|
|
|
|
# Copyright (C) 2001 Canon Research Centre Europe Ltd. |
13
|
|
|
|
|
|
|
# All Rights Reserved. |
14
|
|
|
|
|
|
|
# |
15
|
|
|
|
|
|
|
# This module is free software; you can redistribute it and/or |
16
|
|
|
|
|
|
|
# modify it under the same terms as Perl itself. |
17
|
|
|
|
|
|
|
# |
18
|
|
|
|
|
|
|
# REVISION |
19
|
|
|
|
|
|
|
# $Id: Constants.pm,v 1.2 2001/12/20 13:26:27 abw Exp $ |
20
|
|
|
|
|
|
|
# |
21
|
|
|
|
|
|
|
#======================================================================== |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
package XML::Schema::Constants; |
24
|
|
|
|
|
|
|
|
25
|
13
|
|
|
13
|
|
1147
|
use strict; |
|
13
|
|
|
|
|
29
|
|
|
13
|
|
|
|
|
1950
|
|
26
|
13
|
|
|
13
|
|
74
|
use Exporter; |
|
13
|
|
|
|
|
21
|
|
|
13
|
|
|
|
|
618
|
|
27
|
13
|
|
|
13
|
|
74
|
use base qw( Exporter ); |
|
13
|
|
|
|
|
28
|
|
|
13
|
|
|
|
|
1305
|
|
28
|
13
|
|
|
13
|
|
69
|
use vars qw( $VERSION @EXPORT_OK %EXPORT_TAGS ); |
|
13
|
|
|
|
|
33
|
|
|
13
|
|
|
|
|
1451
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
$VERSION = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/); |
31
|
|
|
|
|
|
|
|
32
|
13
|
|
|
13
|
|
74
|
use constant UNBOUNDED => 'unbounded'; |
|
13
|
|
|
|
|
25
|
|
|
13
|
|
|
|
|
1023
|
|
33
|
|
|
|
|
|
|
|
34
|
13
|
|
|
13
|
|
73
|
use constant OPTIONAL => 'optional'; |
|
13
|
|
|
|
|
32
|
|
|
13
|
|
|
|
|
617
|
|
35
|
13
|
|
|
13
|
|
67
|
use constant REQUIRED => 'required'; |
|
13
|
|
|
|
|
34
|
|
|
13
|
|
|
|
|
518
|
|
36
|
13
|
|
|
13
|
|
64
|
use constant PROHIBITED => 'prohibited'; |
|
13
|
|
|
|
|
26
|
|
|
13
|
|
|
|
|
556
|
|
37
|
|
|
|
|
|
|
|
38
|
13
|
|
|
13
|
|
244
|
use constant FIXED => 'fixed'; |
|
13
|
|
|
|
|
37
|
|
|
13
|
|
|
|
|
506
|
|
39
|
13
|
|
|
13
|
|
60
|
use constant DEFAULT => 'default'; |
|
13
|
|
|
|
|
26
|
|
|
13
|
|
|
|
|
588
|
|
40
|
|
|
|
|
|
|
|
41
|
13
|
|
|
13
|
|
72
|
use constant SKIP => 'skip'; |
|
13
|
|
|
|
|
37
|
|
|
13
|
|
|
|
|
522
|
|
42
|
13
|
|
|
13
|
|
65
|
use constant LAX => 'lax'; |
|
13
|
|
|
|
|
24
|
|
|
13
|
|
|
|
|
773
|
|
43
|
13
|
|
|
13
|
|
69
|
use constant STRICT => 'strict'; |
|
13
|
|
|
|
|
26
|
|
|
13
|
|
|
|
|
588
|
|
44
|
|
|
|
|
|
|
|
45
|
13
|
|
|
13
|
|
70
|
use constant ANY => 'any'; |
|
13
|
|
|
|
|
21
|
|
|
13
|
|
|
|
|
658
|
|
46
|
13
|
|
|
13
|
|
69
|
use constant ONE => 'one'; |
|
13
|
|
|
|
|
26
|
|
|
13
|
|
|
|
|
543
|
|
47
|
13
|
|
|
13
|
|
58
|
use constant NOT => 'not'; |
|
13
|
|
|
|
|
28
|
|
|
13
|
|
|
|
|
3625
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
my @OCCURS = qw( UNBOUNDED ); |
50
|
|
|
|
|
|
|
my @ATTRIBS = qw( FIXED DEFAULT OPTIONAL REQUIRED PROHIBITED ); |
51
|
|
|
|
|
|
|
my @PROCESS = qw( SKIP LAX STRICT ); |
52
|
|
|
|
|
|
|
my @SELECT = qw( ANY ONE NOT ); |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
@EXPORT_OK = ( @OCCURS, @ATTRIBS, @PROCESS, @SELECT ); |
55
|
|
|
|
|
|
|
%EXPORT_TAGS = ( |
56
|
|
|
|
|
|
|
'all' => [ @EXPORT_OK ], |
57
|
|
|
|
|
|
|
'occurs' => [ @OCCURS ], |
58
|
|
|
|
|
|
|
'attribs' => [ @ATTRIBS ], |
59
|
|
|
|
|
|
|
'process' => [ @PROCESS ], |
60
|
|
|
|
|
|
|
'select' => [ @SELECT ], |
61
|
|
|
|
|
|
|
'wildcard' => [ @PROCESS, @SELECT ], |
62
|
|
|
|
|
|
|
); |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
1; |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
|