Manuale di progettazione schemi XML

Transcript

Manuale di progettazione schemi XML
Ministero dell'economia e delle finanze
Dipartimento per le politiche fiscali - Ufficio coordinamento tecnologie informatiche
Sergio Baldelli
Manuale di progettazione schemi XML
Conformi alle regole del Repository
dell'Amministrazione finanziaria
Manuale di progettazione schemi XML
Conformi alle regole del Repository dell'Amministrazione finanziaria
) ! "
! #! $
! %& '
! % %(
*) © %
+
"
& ( ,- ( ."" ")!
/) 01 ) 2 (#
()1 3* 4
/ 20 * " ) ! 2
) 552
5
5*(
(555 6) 552
5
5*(
(5557 2 (
! 89 :0 ! ) -! -
! "
! ;8! .
Sommario
,'-<3$# F
3#/'$.<3$# ,)=>%4 ,)=)>%4 9 ,)= ) >%4 9
8
,
?/
?
@-
?
,'$A//<3$#%$.4' ;
9 'A$4 3 ,'$A//<3$# A43 :%3 >%4 9'
9%
9 ) 99 . "
& "
98 & &
B9 9 % +
"&
&
) 9?A &
8
9@
8
9C 8
9;. 9 D E 9 ' )&
"
&
?
9 "
&
2 ?
9) @
99' C
98 F
* F
* C
99 ' "&
;
99#+
;
99 # 999 ' &
98 ' 2 & DE 98-&
98
9 ' 2 2
9
9? ' 2 ) D E 8
8,,#33 @
8 / &
@
8- ;
89 ) ;
88 ) 9
8 ) 9
8? ) " ' * 9
8?, 9
8? +
.%4 2& G') &
.3.H 9
8? + 2& 9
8? 98
8?-.3. 98
2
%
&
) >%4
8?3
"&
.3.9
8?93
"&
3
&& 9?
8?83
&&9@
8?.&
9C
8?9) 9;
8@ # " +
&
"
& 88
A8
"8;
2
Lista delle Tabelle
8'
@
8')&
@
89 ' "&
C
88 ' 2 & DE C
8 ' 2 2
C
8? ' 2 ) D E ;
2
2
Lista degli Esempi
9 % & %3 '- 9
9 )&
8
99 2 & 8
98 .&& "
2 ?
9 )&
9? . F
* F
* C
9@ . F
* F
* "" C
9C &
+
2 ;
9; &
2
9 2
&
&
9 & ' * 9 )&
9
993
&
2
9
98 3 &
) 8
8 % ) >%4 " ' * ;
8 ) ;
89 ) 9
88 ) 9
8) 9;
8?) 8
8@ ) 89
F
F
PREFAZIONE
# I
J
& J3
"! 3
D ;8 ;; E!
J
&
IK "0 L I 2
2 ! "! 2K ") &
! &
3
"
2 &
M ) 2 " ) J
& J
K " 2
! I
) I 2 2 "&
$! I
K K "&
! (
"2! ) &
2! 2 2&&! (
N! ! K ) "
2(
IK ! "
""
) 2 I "
(
&
#J I ) "&
G(
H K I
K !
2K I &
"0 )! 22
! && (
! 2 ) IK % ! ) K! 22
(
J! && 2 " 01"0 (
"
3 "0 " K ) (2 "K! "&
! ) (
! 2 ""! ! ! (
2
! &&
3
I " 2&&&
D
! 2
! ! ! " (
E! J3$ &&&
&
)
" 2 2 IK ! 2 &
! "
) 2 ""
J3
"0!
2
(
! 2 "
IK "0 D
"(
( ! "
&
E &
J (
2 " ! ! L 2 ! "
# ! )= ) J3
" D3
"&
E
2 ) 22 ) J3
" 3
"&
IK! "
! ! "! I
G
& 2H ) ) " 2 )2 &
J
-&&
J
&
IK L ! ) J
3$ IK #0 B1 3 #9;9 8! O
P
O
(P
O
" /
D I ! ! "! ! ! E! (
4* *! ! 0)! " D 2
(
/F5 %
E! I ( DI2 I
2E ) >%4
3
"" >%4 DF
%1 4
E L Q B9 B B B
F
;;C Q ) (! " ! I
I ! &
DE " ""
& J:/%4! ) I &
! >%4 D &
E M " >%4 ""
2&& ""
D0 B! ! E!
"0 4 &
>%4 " "
2
, 2
IK ( &&
>%4! "
&
3 L &
"
:
= I
K "&
! 2 ! I ! 2 N G
9H ) &
! &
! (
2 K ! 2 ! ) ! 2 3 9! ! " ! ! &
"2! ! "(
2 " 2 ! (
! 2
&
2
! N L (
L I
K "&
) 2
2
(
2 2
= ) && K ""&
! "&
! 2!
" ""K! ) N ! N 2 IK 2K
3
) && I
K "&
(
&& ) 2 I
O
P
O
"&
P
O
P
O
&P
O
3
I 2 "&
! >%4 2
(
&
"&
! "
J
&
&
! "
&
) ! 4* & &
! 2 && &
3
2 ! "&
D )&
E " ) "
L " 3
>%4 I ") ) ) .
) >%4 L " ) 2 "&& " (
$22
I
2 ! ! ") (
! K ! 2&&&
" "(
)! ! &&&
2
.
&& >%4! M ) ! 2 3
"0
& ! GB H! L B ) = "(
2 ) "&
4 ! 2
! L I J ) >%4 F
&
! "&
J &
J
&
"
& (
2 ) 2 ) "
) (
2 N 2 , &
R J2K &
) >%4! (
! ' * ) 2K &
01"0 &&2 "
3 ' * ) K K GH
2 ) 2 &
3 "
) 2 2
) &&&
) L " (
K! 2 2 N 2 2! J
K! "&
" 4 ) 2K " 2 & 2& &
2(
2 J
&
3
! 2 2K (
! I
! 2
& ) "2 J
&
"
& D K "
/E
. ) "
"2 K J
K O
J
K J
"&
)! P
O
J
K ! ) K ) SKT &
3
I O
&
! &
! "
&
"
P
O
&
)P
O
P
O
O
"
3 &
K &
! & $3 $! K I
2 &
# D &
E
3 &
) &
) )
K && 2 ) >%4 .
! '
.
! -
! "
2 &
&
! ) 2K 2&
U & K 22 3 D , , (2
J
&
! , # ' 22 ! E J (
2 &
"
4J &
2 "2 O
&
" "&
2P
O
! "2 P
F
O
N "2 " 2&& 2 2 4 "
K L I
G" H! "K! "2 (
2 &&&
2& 2 ) &&
""
4J &
K ! 2&&
J
! & &
!
& &&2 2 2 ! &
22! (
2 IK
#
F2
Capitolo 1. INTRODUZIONE
1.1. Perché XML
>%4 D$
% E L ) ! ! I
I &
DE " (
R I ) D
! ! E! 2 (
""
>%4! >%4 L B B B 6) 550000957 DB9E
( & "0! 2K 2 ( )
) N 0 D :/%4 B E
J #
# & L M (
&& 2 4 2 ) &&
2(
&
>%4 ! I " D,3E " >%4
D$% >E
- 3 " ) >%4 " ! " J! ) D'E M ! D
# E! JK 2 2
"2
3
"
! .
! >%4 M I
I "
" R ) I %
4 DG)HE! 22 J&
! J
>%4! " D <PrezzoUnitario>34,25</PrezzoUnitario>E! (
& & "2K D"
E! " 3
>%4 L G
H
4 K )
" >%4! &
DA%4E! " &
! "2
3 ""
22 >%4 L 2 ) 2 2
) )
&K! &
!
"
&
"&
! ! "
&K! &&! - 2! K 2 ! B 2! >%4 &
2 3 B 2! &
" D" &
6) 55000&
5 50)5(;;8;?(C9C;VW-
X./-CY
X9899?7E! 2
) J
&
&
D3 $
'
(
)
E
1.2. Perché schemi XML
3
"
! J "! K &
2 2! >%4 ) G* H ) 2 G
& 2
JH
4 K >%4 " ) 2 ! 2 (
&
"0 / D! $! E >%4 D $ +,E! L J
&
" >%4 ! 22! (
" >%4! & K 2 ,
D%" $""! $ $""! E " >%4P M " ) J
&&&
D! ! &
! E N 2(
&&&
&
22
R
2 &
>%4 )! 2! 2
&! )= 2 " ! "" I Q ) "
L
" Q && K " >%4 M I ) G
"
H! JG H +3/
! &! 2 2
& K >%4 >%4 D E 4 L J & (
2 L R ) (
>%4! J
&
! 2&& " N 2 " " >%4 2 P D & 2 2 ! >4/! >,)! ZE R! L
J
K! && 52& M 2 2 2 0! ,! 2
! 4+
(
! ! L >%4 ! ! I ) ) ) L "&
:/%4 ,- " >4/
#
I
)! ""
! >%4 ""
(
) &
D ! I %
E
) J
&
"
& ) >%4 " )
>%4 2
K && 2 &
1.2. Perché schemi XML
>%4! L ) &
, (
2! L " I " D E ) (
&
D I
& 2E J ) ) ""
P ""2
L 2 N 4 L 2 ) >%4 >%4 M D "!
) ! E ! ! K 2 J 2
2 ) G
H 2 >%4 L ) ) G "H ! 2 &
2 ) 2
2 >%4! 2 )
" I M " ) G&H ) "
>%4 2(
1.3. Perché i repositories di schemi XML
3
>%4 I ") ) G)H .
) >%4 L " ) (
"&& >%4 D "! ! )&
!
) ! ) "! E
.
) "! ! ")K ) >%4 ) L D
&
! ! E I! ! M 2
D J
&
! ! &
! && "E 3
! ) ! ! " & D2 ! (
K! 2K! K! E
A )! )= " ! U " G
H R ! ! " >%4
3 " ) ) " )! 2 &
! G
H R 2 " ! ! >%4 2 ") D)E >%4 &
3
! J &
! " >%4 ! M 2K (
) "
& D2E "" D
) &'
E K "0 D"
&
E 2 .
! ! &
"
>%4 >%4! ) J
&
"! " 3 >%4 &
! ) 2
) ! 2& &
""! ) ) 2 (
L A&& ""
!"# !" $
1.3. Perché i repositories di schemi XML
I
L ) I
)! K! I
) 2 ) >%4
&
) >%4 " & &
>%4 J
&&&
! 2 ) && 2 &
2
2 J &
R (
2 2
O
'K N 2 )
&
D &&! &
! E 2
"
2
O
K &
) D & ! ! "
! E
O
2K D / ) *- E
O
3
"&
DE ) &&
O
&
O
#
&& ) 2 D ["! -! /-! E
9
1.3. Perché i repositories di schemi XML
/ I
2 %
" &
K 2 " D>%4E 2K && ) 2 J 2 ) & L 2 ) " >%4
>%4 ""
! 2 &
, )= L JI2
& " )! )= J
) ) 2
S&
T D
D
( E 5 2 L )E
R 2
P &
) " 3
! J
K! ! ! 2
! 2 (
, 22 I 2
&&&
&&&
) (
# "
& I J.4 D. , E $3
&&&
) 2 &
D"! ! E >'4 D
, /
E & >'4 3
&&&
) (
2 K D
! E
) J$ 2
J&
) # " & 0# ('
+$ ) 2 & 8 &
J J/- D
1
E ! ) +! "&
" &
"
DAAE
J$! & $3 ) J&
(
2 "&
" D AE 4 &
(
) " ( ."" ")! 9 9
) ) &
)
) &&&
2
) 4 N
2
& &
D"
E .
! '
.
-
)
2
J&
) &
. .\! " J! )
2 ) D! ! &
E 3 2
.! ! "
) )! &&
>%4 (
"2 & ) && - 2K! 2
&
"
&
) 2 (
2 D
&
"! &&! E "
) "
2 &&2! ! 2 )
!
/
#! # ) &
(
2 3
I ) >%4! ) ! ) (
! ! ! ! "0! 3 &&2 ) "
! ! " &&&
2 &
4J
&
"
& ) K && >%4 2& D'&
""!
.
! E 2 , 2 ) ! 8
1.4. Destinatari
J2
& "
22K >%4 L 2 2 &&&
I 2 J
&
)! K ! ) 2 >%4 '
U ! K 2 ) D ! (
! ! &
GH K! E
3 && I J
&
I "
& )! !
"2 ! 2 J
"0! 2 & ] 2 2" I 2
)! ) " ) && * J &&2 D ' *E ) 2 &(
&&
2
) 2 2 ""
! (
! ! L && ) 2 "" &
) " R )= ) >%4 3
"!
& "K "" N ""! 2 M ) +
&
) ) R 2(
""K " >%4
3
"
! +2
& ! " &&&
1.4. Destinatari
3 2 &(
&&
&
) &&
>%4 ) &
3 *- D ' *E! & "(
K! "" ) >%4 + &
)&
! "
"
+! ! 3 "
&
N +
K 1.5. Principi guida
4 &
"
! "
(
&
&
) >%4 && D" "!
E
/ K
"0
4+ & >%4 +
&
"
& L ""
2 ,
&
2
""
(
) 2K &&&
4 &
) " 2
"
&
! ! &&&
&
2
(
1.6. Terminologia
4K
A ) 2 " 2
)
' C5
4 2 "
W "
&
K ) "
+CW
%
&
4 &
) 2 2 &
&&&
3 "&
) '(
* 2 N ' 4 &
>%4 && 2 2 N (
) 4 I L "" "(
"
)= ) & >%4 2 +
&
N 2
U ) 1.6. Terminologia
# )2 ! $#$! #$# ! #$# $#$! $'! $'(
'$ )
" 2 +'- ; 2 %./! %./ #$/! :$.4 L
5$#$
'I #$# 5#$# $#$
2 $'5$''$ 3
& 2 (
&
! &
2
&& 2 &
+ &
1.7. Formato del documento
3 L >%4 " +%! (
& $3 6) 55000( 5157! L " DG2HE ) D/E "" (
1 6) 55000( 515F57
M ! & ! &
"&
N
2 D)! ! E
3
! " N "" &
&
D 3/E! " "&
" >%4 2
" &
D:/%4! ,-! E
4 "&
" &
) D:/%4 ,-E L " " 6) 550115 51>*)7 D
#
E #
B) 6) 55
0)57
D 6) 55000( 5157 1E >4/ F
6) 55F
"
57
" " + ! 2 (
) "&
>4/ & &&&
%
?
1.7. Formato del documento
4+
&
"
&
" >4/ L "" ) && '() * +
,--...//-
-0 DE (
& A,4
Note al capitolo
4+
&
%
& U G/) " #2* D$#E 2
" F
%1 4
D>%4E
S "* F >%4 )
* )2 * " *TH " 6+
& .#
+ / 2CB37
@
C
Capitolo 2. PROGETTAZIONE
MODULARE
&
! ) ' * +
&
"
& L GH &
)
.
+) ) 2 2
! K &
/ ) M && &&
) ,343<<<3$# :%3
"
&
2 )
) ) ) (
2 D ) 2 (
! ) ! !
E
) "
&
&(
&& )! L G H D E
&&! &
"!
"! ) ) )
"
2 DE Dxs:enumerationE
, ) +
(
,<3$ 3 #$%3
) 2
& DE !
"
' *
R ! " " &
! 2
3%,$'/<3$#
O
,K " "
2 " ) D (
&& "
2
&& 2E
O
A
" 2
) & +
2
"
& ) R 2
K D" ' 2 2
E
A& &
! "" B9 >%4 )! L (
) )! "
&
I (
2 ) ) ) A & 2 ) 2 "
&
) ;
3
! +
K ! ) +
&
"(
&! 2
+
&
+
2
"
&
) ! Capitolo 3. REGOLE DI
PROGETTAZIONE DEGLI SCHEMI XML
3.1. Regole generali
3.1.1. Metalinguaggio standard
3 ) ' * L *- R ! 2 &
B9 L N "" L &2 &&&
) >%4 D .4! * .! 44 +
& .#!
E
3 *- L " D/! 'F #A! )
! E (
2
O
" N & 0
O
&2 &&&
O
K O
K "
&
O
O
K 2 "
&
' $
) &
B9 0
5 0
6+
#4
3.1.2. Struttura generale degli schemi
, & " &
! ) '(
* 2
&& ) ,)=!
&&&
! ) ' * 2
D! E! ) 2 " 2 2 ) 6;7! ) 697! ) 697
' $
) " 2 ) ! "
2 ) 6;7 ! ) (
697! ) 697
3.1.3. Uso preferenziale dei tipi semplici predefiniti
4 &
B9 0
6+
# "" N I
"
(
D #E , "2 ! L I "
2
) 3.1.4. Spazio dei nomi della raccomandazione del W3C XML Schema
' 9
3 "
*- 0
6+
# $''$ 2
I
3.1.4. Spazio dei nomi della raccomandazione del W3C
XML Schema
4 ) *- "K && (
&
, "2 N ) L ) ) 2
) (
& &
B9 ) "
3
! " (
+
)! & 2 " xs
' 8
$
) J
xs:schema )&
GF
FX) 550000955>%4)H
3.1.5. Metadati per l'identificazione e documentazione degli schemi
, "&
) L && "
) ' * 2
" %3 D+ )
.E
3 %3 L D I
E +3$ C9?
2
%3 ) ' * 2 &
(
" D&
+E
/
3 L L "
^
! ! / ! +
2
)2 "&
] &
2 +
2 )
" "&
&
.
&
* / 4 3
) 2
(
! "
&
! ! ] &
2
+
2 ) " "(
&
, 2 &
" +
-$'%/ 6# ! ) >%4 I K GB9 >%4 )H7
"
-
4 &
" / ! " M (
3 " M "0 +)0 2&& 6# ! ! I
K 2 GF5FH7
4
4 L 6R! !
K +
! 3$ 9?; G3/H7
4+
K ) ) K &&&
6# (
2
+
&
"
&(
3.1.6. Gruppi di sostituzione
+ # " +
&
"
& 68877
)
4+
) ) K 6# (
2
+
&
G' * ) >%4 &
-
&H + +.'4 (
2! L G) 55000"
&5 *>%4H7
4 &&&
) "
! &
' * 4 2 " ! (
3$ C?! L G((H G(9(H
"
3
"
.
"
2 6# (
2K +.'# && "
) G
2"
&
&
)@9(H7
3
! I
) L 2
2 ) ! 2K &
D
'&
E G
$"H 2 K +.'# ) "
) 2
3 2
/ +
1% D'-E! (
&
B! "
B9 2 &
#+ - 6;7 2
" ) " ' ' *
'- 2 ) %3 " K ) I
N 2 # ) " ' ' * 7
! K! N 2 , ) && N +
&
3
+
'- <rdf:li/> +
'<rdf:bag/>
*
1/2/ '3 4'5
<!-- ... -->
<dc:creator>
<rdf:Bag>
<rdf:li>AGENZIA ENTRATE - DC GEST. TRIB. - PROC. AUT. E SERV. TELEMATICI</rdf:li>
<rdf:li>AGENZIA TERRITORIO - DC ORG. E SS.II. - AREA GEST. OPERATIVA</rdf:li>
</rdf:Bag>
</dc:creator>
<!-- ... -->
3 2 F
! " F
)
&
) 2 ) 6;7! ) 697! ) 697
' $
) ) 2
"K J -
6;7 3 2
F
! " (
F
) &
) 2 ) 6;7! ) 697! ) 697
9
3.1.7. Elemento xsd:all
3.1.6. Gruppi di sostituzione
A& &
DsubstitutionGroup = QNameE L "
) (
2
& #
2
) + substitutionGroup "
&
xs:element
# ) ' * &
2
2
O
3 &
"
&
"0 +&
) !
&
'
&
! K
O
xs:choice ) &
xs:substitution +
K
' ?
3 &
DsubstitutionGroup = QNameE #$# $#$ 3.1.7. Elemento xsd:all
.&& ! xs:all ) " I
2
xs:complexType! ) minOccurs maxOccurs L "(
"2 xs:all 2 minOccurs="0" maxOccurs="1" 3
xs:all
2 +
& " 3 L ) &! I
I ! "2 N 2 R &
) ' *! "
&& "
&
&
! ) &
N ' C
4J
xs:all #$# 3.1.8. Attributo nillable
# )&
! _2_ + Dnillable="true"E 2 & 2 *
1/6/ ' <xs:element name="dataSpedizione" type="xs:date" nillable="true"/>
*
1/1/ * 3 "
>%4 & & <dataSpedizione></dataSpedizione>
2 >%4 )= +
8
&
3.1.9. Uso degli attributi
) 2 >%4 D
"
&
+
E ,
! ) 2N ! 2 ' ;
4J nillable #$# 3.1.9. Uso degli attributi
A ""
2 >%4 & 4
" L 2
(
,)= "
+
K &
L ) +
K! ' &
' * +
&
"
& L ) ! L ) " D +KE (
2 ! I
"&
G 2H ! G H ! G
H (
! 3
&
+ 2
&
O
&& + ' * N &2 &&&
>%4 O
' K K 2
" ) "0 &
>%4 D &
*- E 2 &
2 I 3
! 2 2
O
) " ' 5
A $#$ 3.1.10. Contenuto misto (mixed content)
>%4 N " R "K &
>%4 ! ! ! 3 " >%4 && &
) ) 2
K A +&
"" 2 K ,
! &
) && 2
(
2 &
&
I ! 2 2 ' 3 D E #$# 3.2.1. Definizione globale dei tipi non primitivi
3.2. Regole di dichiarazione e definizione
3.2.1. Definizione globale dei tipi non primitivi
3
*- 2 D ) E "
G
H G
H
GH "
" +
) D<xs:schema....>E GH "
+
2 +
) DL (
" +
E
3 "
2
O
,
&& I
I +
) ) ( (
&
D
E ( "2
U & &
(
K "2
O
-2
+
K )&& )= & & O
-
&
L ""
" "
2 )= " ) 5 ) "
"
"
3 "
*
1/7/ 8 <!-- ... -->
<!-- Definizione globale di un tipo complesso -->
<xs:complexType name="NomePersonaType">
<xs:sequence>
<xs:element name="Nome" type="xs:string"/>
<xs:element name="Cognome" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<!-- Utilizzo di un tipo complesso globale -->
<xs:complexType name="DatiAnagrafici">
<xs:sequence>
<xs:element name="NomePersona" type="NomePersonaType"/>
<!-- ... -->
</xs:sequence>
</xs:complexType >
<!-- ... -->
#+ +
K! ) "
' *! 2 2
(
&! &
)! 2 "
&
(
M " ) 2
) "
2 "
(
2 9
4 )&
2 L I
L ) " 2
) && ?
3.2.2. Schema radice
R
! )&
2 2 + K ' * / &
2
2 + 2&
*
# ) 2 ) 2 +
& / 2
) R ! "
+! +
"K ) K
A ) &
) 2 (
&
)P I
) 2
"
2 , I
L 2 ' / $#$ ) "
2 "
2
4 )&
2 +&
"(
2
& 2
+
"
2 (
+ 2&
*
3.2.2. Schema radice
3 ' * 2 &
) "
O
- O
4 "&
"
&
O
- &
) 2
&
2 "
&
K *- "
L ) GH! &
! G) H D 2&
&! ) 2 ! E
4 ) 2 ! +
<xs:schema/> +
+ &
(
8
) ! ) "
&
) && >%4 &
" ) I
4+
L ! + type=""! )+ ) 2 (
)
, && I
L ' 9
, GH " ) ' 8
3
) " )&
) "
GH ) / "
xs:annotation )! 2! " xs:documentation (
GR && D
'
E & I )H
' , ) ) "
+
@
3.2.4. Costrutti xs:any e xs:anyAttribute
3.2.3. Riuso di componenti
+ ! "2 2 "
&
"(
&
! ) 2 ) && 2 '
' ?
.
) #$# K ) 2
+
xs:inport
! L ) ( ) +
&
( 2
) D "(
)! ! ! K! E / )! 2
I ! 2 GH A && ) 2
"
' @
3 &
&& $#$ "
) (
&& " + )
697
3.2.4. Costrutti xs:any e xs:anyAttribute
3 xs:any xs:anyAttribute "
2! &! M I
I >%4 )= "
*
1/9/ 8 :,; :,;<
<!-- ... -->
<xs:element name="Indirizzo" type="IndirizzoType"/>
<xs:complexType name="IndirizzoType">
<xs:sequence>
<xs:element name="Via" type="ViaType"/>
<xs:element name="NumeroCivico" type="NumeroCivicoType"/>
<xs:element name="Citta" type="CittaType"/>
<xs:element name="Provincia" type="ProvinciaType"/>
<xs:element name="CAP" type="CAPType"/>
<xs:any minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute/>
</xs:complexType>
<!-- ... -->
#+ +
G3
&&H! M &
+
G,H L 3
M ) )+ R "
G
)H & &
>%4 2&
D +
xs:any
L +
& G3
&&HE
*
1/=/ 8 :,; :,;< <!-- ... -->
<xs:element name="Indirizzo" type="IndirizzoType"/>
C
3.3. Regole per la formazione dei nomi
<xs:complexType name="IndirizzoType">
<xs:sequence>
<xsd:any minOccurs="0" maxOccurs="2"/>
<xs:element name="Via" type="ViaType"/>
<xs:element name="NumeroCivico" type="NumeroCivicoType"/>
<xs:element name="Citta" type="CittaType"/>
<xs:element name="Provincia" type="ProvinciaType"/>
<xs:element name="CAP" type="CAPType"/>
</xs:sequence>
<xs:anyAttribute/>
</xs:complexType>
<!-- ... -->
+ ! 2 & +
GH xs:any D
I
&E! >%4 GH L I
I xs:any +
GH "
I
&
3
"! )= xs:any ) K ! GH D xs:any + +
GHE
, G H I )&
GH "! + >%4 2 9
N 2
! )! ! L M " ) L 3
! xs:any xs:anyAttribute! && )
! "&
>%4 & ,
L ' C
3 xs:any xs:anyAttribute #$# $#$ 3.3. Regole per la formazione dei nomi
3.3.1. Nome dell'elemento radice
4+ ' * 2 ) GH "
) 2 ) ! ) )
G
H! K 2 &
, N ) ) L ) 2 (
2 ) ) 2 3
2 )&
! ! ') ! 3
! )= )&
! 2 ! )+ ) ! ) "
! ) I 2 (
3 2 2 I
*
1/>/ ' ? , 2 ') 2 # ) D"E ')F
;
3.3.2. Nomi dei marcatori e catalogo dati
# +
<xs:element name="RichiestaVisuraCatastale"
type="RichiestaVisuraCatastaleType"/>
# 2 +
<xs:complexType
name="RichiestaVisuraCatastaleType">
, I
L 2 ' ;
4J
G 2H ) ' 3 J
IJ "" G/* H D
& E
3.3.2. Nomi dei marcatori e catalogo dati
) L ! L &
3$ @;(
.
2 +
&&&
L " +
! (
&
! +
K 2 3
2K &
) ) ' *
%
) &
2K 2 &
2 )
3
& N "" &
D" &E >%4! +&& ! ! 2
I D &! ! ! E
' 3 ! $#$ " 2 G&
H
DI
E 2 &
D &! ! 2! E
3.3.3. Regole generali di assegnazione dei nomi
4 &
" I N &(
&&
&&&
D$3! .#5-/! E ) ) 44 1 )8
44 +
& .#
' # ! #$# $#$ 2&
(
I 2 G ' *H 3
I 2 " J
J2&
xs:documentation " J
xs:annotation " J
! 2 2&
*
1/@/ ' <!-- ... -->
<xs:complexType name="ConvenzioneOCSE">
<xs:annotation>
3.4. Regole relative allo spazio dei nomi (namespaces)
<xs:documentation>OCSE: Organizzazione per la Cooperazione
e lo Sviluppo Economico</xs:documentation>
</xs:annotation>
<!-- ... -->
</xs:complexType>
<!-- ... -->
' 9
, "&
2
&
D.E
' 8
, "&
2
&
D4E
' 2 ! 2 "" G#H
*
1/2A/ 3 <!-- ... -->
<xs:element name="AliquotaImposta" type="AliquotaImpostaType">
<xs:complexType name="AliquotaImpostaType"> <!-- UpperCamelCase -->
<xs:element type="AliquotaImpostaType"/>
<xs:attribute name="valutaAliquotaImposta" type="xs:string"/> <!-- lowerCamelCase -->
</xs:complexType>
<!-- ... -->
3.4. Regole relative allo spazio dei nomi (namespaces)
3.4.1. Formazione dei namespaces
4 G & H DE L "
&
B9 ) &
&& D ! E " 2
A& I L & +) ) "2 (
) " 3
I ! (
2 L ! I
I ) &! " "
I+
"
) I ! ) & 2 R ) + & +
)&
2 D" E
3
N &2 &&&
&
) L "
+.'# D& / E )L "" + &
3
"! +.'# " &
" L +.'# L (
2 && " 2 L ) +.'4 D& / E
3
K L ) .'# ) && " .'4
, && 2
"" L ) ) 3.4.2. Target namespace
* 4 K "&
' ?
, ) ' * ) " & urn:it:gov:finanze:<organizzazione>:[radice|libreria|codici]:<nome>:<pr
imario>:<secondario>
' @
A .'# $#$ 2 ! ) $#$ 2
(
&
D4E J
! ) 2
&
D.E
B 84B 4
;/
O
4 ` a 2 2 L + +.'#
O
4 I 6 7 2 2 O
4+.'# 2
"
+'- 8
O
urn:it:gov:finanze L +G.'# H D /E ' *
O
<organizzazione> L ( +
&
) ) K &&&
) +.'# 3 2 I 2 2 " +
&
"
& + # " +
&
"
& 6887
O
<nome> L ) ) D +
E
O
<primario> L 2
)P I
2 2
L N (
O
<secondario> L 2
)P I
2 2
L 4+ .'# ' *
*
1/22/ C
4
;
urn:it:gov:finanze:agenziaEntrate:radice:RichiestaCodiceFiscale:1:0
3.4.2. Target namespace
3 "
& " 2
) ) '(
* 2 " )! ! "
+&
&
&& ) ' *
, && I
L ) ) ' * ) +
xs:schema+ xs:targetNamespace + 2
3.5. Regole relative alla versione
A& )&
! ) ) ) G3
M 2 &
D.#E "
&
)(
&
H & B9! 0
9 0: -45
,
2 2 ' C
$
) ) & J xs:targetNamespace
*
1/26/ ' 3 "
)&
) 2 ) "
<!-- ... -->
<xs:schema
targetNamespace="urn:it:gov:finanze:agenziaEntrate:radice:RichiestaCodiceFiscale:1:0"
<!-- ... -->
3.5. Regole relative alla versione
A ) ' * 2
K
3 +
"&
2
) 2 (
! I
) & 2 (
&
) "
"
2) , && I "&
2
2
) ) ) ) 2
2
(
) ) + version +
xs:schema
4+
&
2
L +G
H +G
H
4 2
) L P I
") )
"
& K ) 2
+
2 2 ) L N
2
+
*
1/21/ -
) G')-FH ) +
&
2
<!-- ... -->
<xs:schema
targetNamespace="urn:it:gov:finanze:agenziaEntrate:radice:RichiestaCodiceFiscale:1:0"
version="1.0"
<!-- ... -->
4 "&&
I
9
3.6. Regole relative agli elenchi di codici (code lists)
' ;
4 2
) >%4 "
) + version
+
xs:schema 2
& ) L (
+ targetNamespace ' 9
4J
2
GH &
&
' 9
4J
2
& ) I
") ) )
"" K >%4 & ) ") ' 9
4J
2
& ) >%4 & 2 ) 2 2
)
3.6. Regole relative agli elenchi di codici (code
lists)
"
"2 & " &
! && ) ' *
2
"
) &
Dxs:enumerationE
4 .'# &
2 ) L urn:it:gov:finanze:agenziaEntrate:codici:codiciTributo:1:0
A ) &&
) ) "
&
(
2 +
xs:import
*
1/27/ 3 "
) ) ) && "(
&
<!-- ... -->
<xs:import namespace="urn:it:gov:finanze:agenziaEntrate:codici:codiciTributo:1:0"
schemaLocation=”http://www.finanze.it/repositoryXML/codiciTributo.1.0.xsd”/>
<!-- ... -->
2 ) ' 99
/ ) ' * $#$ ) "
+ ) 697
Note al capitolo
GH G
H 2 I
I ) 2 4 ""
& " L 2 ) ) ) ) ,)= ' * L ) " L 22 ) K 9
, )&
"
&
+
2 ) 2 + # &P " 8
3.6. Regole relative agli elenchi di codici (code lists)
*
1/D/ *
<!-- ... -->
<xs:element name="indirizzo">
<xs:complexType>
<xs:sequence>
<xs:element name="Via" type="xs:string"/>
<xs:element name="NumeroCivico" type="xs:string"/>
<xs:element name="CodiceAvviamentoPostale" type="xs:string"/>
<!-- ... -->
</xs:sequence>
</xs:complexType>
</xs:element>
8
$22
<xs:import namespace="" schemaLocation=""/>
+2&
! L G "H + xmlns
?
Capitolo 4. APPENDICI
4.1. Tabelle delle regole di progettazione
E 7/2/ 4 ' $
) &
B9 0
5 0
6+
#4
' $
) " 2 ) ! "
2 ) 6;7 ! ) (
697! ) 697
' 9
3 "
*- 0
6+
# $''$ 2
I
' 8
$
) J
xs:schema )&
GF
FX_) 550000955>%4)_H
' $
) ) 2
"K J -
6;7 3 2
F
! " (
F
) &
) 2 ) 6;7! ) 697! ) 697
' ?
3 ' @
4J final "
&
Dxs:complexTypeE &&
2 &
2
&
' C
4J
xs:all #$# ' ;
4J nillable #$# ' A $#$ ' 3 D E #$# &
DsubstitutionGroup = QNameE #$# $#$ E 7/6/ 4 ' / $#$ ) "
2 "
2
4 )&
2 +&
"(
2
& 2
+
"
2 (
+ 2&
*
' 9
, GH " ) ' 8
3
) " )&
) "
GH ) / "
xs:annotation )! 2! " xs:documentation (
GR && D
'
E & I )H
' , ) ) "
+
' ?
.
) #$# K ) 2
+
xs:inport
@
4.1. Tabelle delle regole di progettazione
' @
3 &
&& $#$ "
&& ' C
3 xs:any xs:anyAttribute $#$ ) (
E 7/1/ 4 ' ;
4J
2 ) ' 3 J
IJ
"
"" G/* H D
& E
' 3 ! $#$ " 2 G&
H
DI
E 2 &
D &! ! 2! E
' # ! #$# $#$ 2&
(
I 2 G ' *H 3
I 2 " J
J2&
xs:documentation " J
xs:annotation " J
! 2 2&
' 9
, "&
2
&
D.E
' 8
, "&
2
&
D4E
' 2 ! 2 "" G#H
E 7/7/ 4 FG
' ?
, ) ' * ) " & urn:it:gov:finanze:<organizzazione>:[radice|libreria|codici]:<nome>:<pr
imario>:<secondario>
' @
A .'# $#$ 2 ! ) $#$ 2
(
&
D4E J
! ) 2
&
D.E
' C
$
) ) & J xs:targetNamespace
E 7/D/ 4 ' ;
4 2
) >%4 "
) + version
+
xs:schema 2
& ) L (
+ targetNamespace ' 9
4J
2
GH &
&
' 9
4J
2
& ) I
") ) )
"" K >%4 & ) ") ' 9
4J
2
& ) C
4.2. Formato dei metadati
>%4 & 2 ) 2 2
)
E 7/9/ 4 F G
' 99
/ ) ' * $#$ ) "
+ ) 697
4.2. Formato dei metadati
3
) * 2 ) 2
) / 2
" %3 D
% 3
2E (
2
'- D' -01E 3 "
) >%4 2 )&
@9! " I
*
7/2/ 4
;
<!-- .... -->
<xs:annotation>
<xs:documentation>
<metadati>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc ="http://purl.org/dc/elements/1.1/
xmlns:dcterms ="http://purl.org/dc/terms/">
<rdf:Description rdf:about="">
<dc:title>730 on line 2005</dc:title>
<dc:subject>
<rdf:Bag>
<rdf:li>fisco</rdf:li>
<rdf:li>imposta sul reddito</rdf:li>
<rdf:li>dichiarazione</rdf:li>
<!-- etc. -->
</rdf:Bag>
</dc:subject>
<dc:description>Questo schema definisce il formato XML della
dichiarazione dei redditi delle persone fisiche inviata telematicamente
tramite il web service “FiscoSmart”...</dc:description>
<dc:type>W3C XML Schema</dc:type>
<dc:format>text/xml</dc:format>
<dc:language>IT</dc:language>
<dc:creator>AGENZIA ENTRATE - DC GESTIONE TRIBUTI</dc:creator>
<dc:publisher>
<rdf:Bag>
<rdf:li>Repository schemi XML Amministrazione Finanziaria</rdf:li>
<rdf:li rdf:resource=”http://www.finanze.it/repositoryXML”/>
</rdf:Bag>
</dc:publisher>
<dc:date>2005-03-04</dc:date>
<dc:identifier rdf:resource=”urn:it:gov:finanze:
agenziaEntrate:radice:730-2005:1:1”/>
<dcterms:isVersionOf rdf:resource="urn:it:gov:finanze:
agenziaEntrate:radice:730-2005:1:0"/>
</rdf:Description">
</rdf:RDF>
</metadati>
</xs:documentation>
</xs:annotation>
<!-- .... -->
4.3. Struttura generale degli schemi radice
*
7/6/ C ;
4.4. Struttura generale degli schemi libreria
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================
<!-- ==== [NOMEPROCESSO]; [VERSIONE]
===
<!-- ====================================================================
<xs:schema
version="[VERSIONE]"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:it:gov:finanze:[ORGANIZZAZIONE]:
radice:[NOMEPROCESSO]:[VERSIONE]"
... ULTERIORI NAMESPACES ...
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- ====================================================================
<!-- ==== Importazioni
===
<!-- ====================================================================
<xs:import namespace="..." schemaLocation="..."/>
<!-- ====================================================================
<!-- ==== Metadati (Come da relativa appendice
===
<!-- ====================================================================
<xs:annotation>
<xs:documentation>
<metadati>
<!-- Cfr. relativa appendice -->
</metadati>
</xs:documentation>
</xs:annotation>
<!-- ====================================================================
<!-- ==== Elemento radice
===
<!-- ====================================================================
<xs:element name="[NOMEPROCESSO]" type="[NOMEPROCESSO]Type">
<xs:annotation>
<xs:documentation>Questo elemento DEVE essere utilizzato come
elemento radice (document element) in ogni documento istanza basato
su questo schema</xs:documentation>
</xs:annotation>
</xs:element>
<!-- ====================================================================
<!-- ==== Tipo complesso radice (referenziato dall'elemento radice)
===
<!-- ====================================================================
<xs:complexType name="[NOMEPROCESSO]Type">
<!-- ... -->
</xs:complexType>
<!-- ... -->
<!-- ====================================================================
<!-- ==== Tipi globali
===
<!-- ====================================================================
</xs:schema>
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
4.4. Struttura generale degli schemi libreria
*
7/1/ C <?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================
<!-- ==== [NOMELIBRERIA] ; [VERSIONE]
===
<!-- ====================================================================
<xs:schema
version="[VERSIONE]"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:it:gov:finanze:[ORGANIZZAZIONE]:
schema:[NOMELIBRERIA]:[VERSIONE]"
... ULTERIORI NAMESPACES ...
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- ====================================================================
<!-- ==== Importazioni
===
<!-- ====================================================================
<xs:import namespace="..." schemaLocation="..."/>
<!-- ====================================================================
<!-- ==== Metadati (Come da relativa appendice
===
<!-- ====================================================================
<xs:annotation>
<xs:documentation>
<metadati>
<!-- Cfr. relativa appendice -->
</metadati>
</xs:documentation>
</xs:annotation>
<!-- ====================================================================
<!-- ==== Tipi globali
===
<!-- ====================================================================
9
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
4.5. Struttura generale degli schemi elenco di codici
<xs:complexType name="[NOME]Type">
<!-- ... -->
</xs:complexType>
<!-- ... -->
</xs:schema>
4.5. Struttura generale degli schemi elenco di
codici
# 3 ! I 2 &
! "
_F1
_ L N O
DbFE
O
" DbFE
O
DbF;E
O
& " " DbFE
O
I
& N & DbFE
P L 2 C /
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================
<!-- ==== [NOMEELENCO] ; [VERSIONE]
===
<!-- ====================================================================
<xs:schema
version="[VERSIONE]"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:it:gov:finanze:
[ORGANIZZAZIONE]:codici:[NOMEELENCO]:[VERSIONE]"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- ====================================================================
<!-- ==== Metadati (Come da relativa appendice
===
<!-- ====================================================================
<xs:annotation>
<xs:documentation>
<metadati>
....
</metadati>
</xs:documentation>
</xs:annotation>
<!-- ====================================================================
<!-- ==== Definizione dei codici
===
<!-- ====================================================================
<xs:simpleType name="[NOMEELENCO]Type">
<xs:restriction base="xs:token">
<xs:enumeration value="[CODICE]"/>
...
</xs:restriction>
</xs:simpleType>
</xs:schema>
-->
-->
-->
-->
-->
-->
-->
-->
-->
*
7/7/ *
<?xml version="1.0" encoding="UTF-8"?>
<!-- ==================================================================== -->
<!-- === CodiciTributo ; 1:0 ========================================== -->
<!-- ==================================================================== -->
<xs:schema
version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:it:gov:finanze:agenziaEntrate:codici:codiciTributo:1:0"
9
4.6. Esempi di schemi conformi alle regole del Repository
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- ====================================================================
<!-- === Metadati =====================================================
<!-- ====================================================================
<xs:annotation>
<xs:documentation>
<metadati>
....
</metadati>
</xs:documentation>
</xs:annotation>
<!-- ====================================================================
<!-- === Definizione dei codici ========================================
<!-- ====================================================================
<xs:simpleType name="codiciTributoType">
<xs:restriction base="xs:token">
<xs:enumeration value="II032"/>
<xs:enumeration value="IV003"/>
<xs:enumeration value="IR003"/>
...
</xs:restriction>
</xs:simpleType>
</xs:schema>
-->
-->
-->
-->
-->
-->
4.6. Esempi di schemi conformi alle regole del
Repository
4.6.1. Premessa
# ) >%4 " "
) 2 2 I ) ! )
) #
) ) ! U ) && &
K &! "
" (
2 &
! ) I I2
I R 2 2& G') &
.3.H! " 2& &
& / ! + G' * (
) >%4 J
&
-
&H
2& ) J&
+
& / "&
(
K +
2& ! "" .%4! L ! (
I && 2 ) >%4 I 4+
.%4 2 ) " "
&
+
& 2 G,H )
(
4 "K ) %
L 2" + 4.6.2. Diagrammi risultanti dall'analisi UML del servizio
«Richiesta di estrazione dati UIU»
4.6.2.1. Diagramma dell'use case del servizio
9
4.6.2. Diagrammi risultanti dall'analisi UML del servizio «Richiesta di estrazione dati UIU»
99
4.6.2. Diagrammi risultanti dall'analisi UML del servizio «Richiesta di estrazione dati UIU»
4.6.2.2. Diagrammi delle classi
4.6.2.2.1. Fascicolo UIU
98
4.6.2. Diagrammi risultanti dall'analisi UML del servizio «Richiesta di estrazione dati UIU»
4.6.2.2.2. Informazioni UIU
9
4.6.2. Diagrammi risultanti dall'analisi UML del servizio «Richiesta di estrazione dati UIU»
4.6.2.2.3. Informazioni Indirizzo
9?
4.6.2. Diagrammi risultanti dall'analisi UML del servizio «Richiesta di estrazione dati UIU»
4.6.2.2.4. Indirizzo
9@
4.6.2. Diagrammi risultanti dall'analisi UML del servizio «Richiesta di estrazione dati UIU»
4.6.2.2.5. Ubicazione
9C
4.6.3. Schemi
4.6.3. Schemi
A ) I " ) " I && "
*
7/D/ C <?xml version="1.0" encoding="UTF-8"?>
<!-- ==================================================================== -->
<!-- === fascicoloUIU ; 1:0 =========================================== -->
<!-- ==================================================================== -->
<xs:schema targetNamespace="urn:it:gov:finanze:agenziaterritorio:schema:fascicoloUIU:1:0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="urn:it:gov:finanze:agenziaterritorio:schema:fascicoloUIU:1:0"
xmlns:cns="urn:it:gov:finanze:agenziaterritorio:libreria:DatiCensuari:1:0"
elementFormDefault="qualified"
attributeFormDefault="unqualified" version="1:0">
<!-- ==================================================================== -->
<!-- === Importazioni ================================================== -->
<!-- ==================================================================== -->
<xs:import namespace="urn:it:gov:finanze:agenziaterritorio:libreria:DatiCensuari:1:0"
schemaLocation="C:\Sistema di interscambio\XML-STANDARD\DatiCensuari.1.0.xsd"/>
<!-- ==================================================================== -->
<!-- === Metadati ===================================================== -->
<!-- ==================================================================== -->
<xs:annotation>
<xs:documentation>
<metadati>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/">
<rdf:Description rdf:about="">
<dc:title>Fascicolo UIU</dc:title>
<dc:subject>
<rdf:Bag>
<rdf:li>catasto</rdf:li>
<rdf:li>unità immobiliare urbana UIU </rdf:li>
<rdf:li>interrogazione</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:description>Questo schema radice definisce il formato XML della risposta del web
service
_FascicoloUIU_ e riporta le informazioni inerenti l'unità immobiliare urbana
per la quale è stata effettuata la richiesta</dc:description>
<dc:type>W3C XML Schema</dc:type>
<dc:format>text/xml</dc:format>
<dc:language>IT</dc:language>
<dc:creator>AGENZIA TERRITORIO</dc:creator>
<dc:publisher>
<rdf:Bag>
<rdf:li>Repository schemi XML Amministrazione Finanziaria</rdf:li>
<rdf:li rdf:resource="http://www.finanze.it/repositoryXML"/>
</rdf:Bag>
</dc:publisher>
<dc:date>2005-07-11</dc:date>
<dc:identifier
rdf:resource="urn:it:gov:finanze:agenziaterritorio:schema:fascicoloUIU:1:0"/>
</rdf:Description>
</rdf:RDF>
</metadati>
</xs:documentation>
</xs:annotation>
<!-- ==================================================================== -->
<!-- === Elemento radice ============================================== -->
<!-- ==================================================================== -->
<xs:element name="FascicoloUIU" type="FascicoloUIUType">
<xs:annotation>
<xs:documentation>Questo elemento DEVE essere utilizzato come elemento radice (document element)
in ogni documento istanza basato su questo schema </xs:documentation>
<xs:documentation>UIU è l'acronimo di Unità Immobiliare Urbana</xs:documentation>
</xs:annotation>
</xs:element>
<!-- ==================================================================== -->
<!-- === Tipo complesso radice ======================================== -->
<!-- ==================================================================== -->
<xs:complexType name="FascicoloUIUType">
<xs:sequence>
<xs:element name="DatiRichiesta" type="DatiRichiestaType"/>
<xs:element name="Fascicolo" type="FascicoloType"/>
</xs:sequence>
</xs:complexType>
<!-- ==================================================================== -->
<!-- === Tipi globali ================================================= -->
<!-- ==================================================================== -->
<xs:complexType name="DatiRichiestaType">
<xs:sequence>
9;
4.6.3. Schemi
<xs:element name="UIU" type="UIUType"/>
<xs:element name="Data" type="xs:date"/>
<xs:element name="RichiestaUlterioriIdentificativi" type="xs:boolean"/>
<xs:element name="RichiestaClassamento" type="xs:boolean"/>
<xs:element name="RichiestaIndirizzi" type="xs:boolean"/>
<xs:element name="RichiestaRendita" type="xs:boolean"/>
<xs:element name="RichiestaDatiGenerazione" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="FascicoloType">
<xs:sequence>
<xs:element name="DatiUIU" type="DatiUIUType"/>
<xs:element name="DatiGenerazione" type="DatiGenerazioneType" minOccurs="0"/>
<xs:element name="Partita" type="PartitaType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="UIUType">
<xs:annotation>
<xs:documentation>UIU è l'acronimo di Unità Immobiliare Urbana</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element name="CodiceIdentificativo">
<xs:complexType>
<xs:sequence>
<xs:element name="CodiceComune" type="cns:CodiceComuneType"/>
<xs:element name="IdUiu">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="9"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DatiIdentificativo">
<xs:complexType>
<xs:sequence>
<xs:element name="Identificativo" type="cns:IdentificativoType"/>
<xs:element name="CodiceComune" type="cns:CodiceComuneType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:complexType name="DatiUIUType">
<xs:annotation>
<xs:documentation>UIU è l'acronimo di Unità Immobiliare Urbana</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Identificativo" type="cns:IdentificativoType" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="Classamento" type="cns:ClassamentoType" minOccurs="0"/>
<xs:element name="Indirizzi" type="cns:IndirizziType" minOccurs="0"/>
<xs:element name="RenditaInEuro" type="xs:decimal" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="DatiGenerazioneType">
<xs:sequence>
<xs:element name="Nota" type="cns:NotaType"/>
<xs:element name="IdMutazione">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="9"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ImmobiliOriginati" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="Identificativo" type="cns:IdentificativoType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="PartitaType">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="7"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
*
7/9/ C 8
4.6.3. Schemi
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================== -->
<!-- === DatiCensuari ; 1:0 =============================================== -->
<!-- ======================================================================== -->
<xs:schema targetNamespace="urn:it:gov:finanze:agenziaterritorio:libreria:DatiCensuari:1:0"
xmlns="urn:it:gov:finanze:agenziaterritorio:DatiCensuari:1:0" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:cb="urn:it:gov:finanze:agenziaterritorio:codici:CodiciBelfiore:1:0"
elementFormDefault="qualified" attributeFormDefault="unqualified" version="1:0">
<!-- ======================================================================== -->
<!-- === Importazioni ===================================================== -->
<!-- ======================================================================== -->
<xs:import namespace="urn:it:gov:finanze:agenziaterritorio:codici:CodiciBelfiore:1:0"
schemaLocation="C:\Sistema di interscambio\XML-STANDARD\CodiciBelfiore.1.0.xsd"/>
<!-- ======================================================================== -->
<!-- === Metadati ========================================================= -->
<!-- ======================================================================== -->
<xs:annotation>
<xs:documentation>
<metadati>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/">
<rdf:Description rdf:about="">
<dc:title>Dati Censuari</dc:title>
<dc:subject>
<rdf:Bag>
<rdf:li>catasto</rdf:li>
<rdf:li>dati censuari</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:description>Questo schema libreria contiene le definizioni dei tipi relativi ai
dati censuari
quali: Identificativo, Indirizzi, Nota, Classamento, ecc.</dc:description>
<dc:type>W3C XML Schema</dc:type>
<dc:format>text/xml</dc:format>
<dc:language>IT</dc:language>
<dc:creator>AGENZIA TERRITORIO</dc:creator>
<dc:publisher>
<rdf:Bag>
<rdf:li>Repository schemi XML Amministrazione Finanziaria</rdf:li>
<rdf:li rdf:resource="http://www.finanze.it/repositoryXML"/>
</rdf:Bag>
</dc:publisher>
<dc:date>2005-11-08</dc:date>
<dc:identifier
rdf:resource="urn:it:gov:finanze:agenziaterritorio:libreria:DatiCensuari:1:0"/>
</rdf:Description>
</rdf:RDF>
</metadati>
</xs:documentation>
</xs:annotation>
<!-- ======================================================================== -->
<!-- === Tipi globali ===================================================== -->
<!-- ======================================================================== -->
<xs:complexType name="ClassamentoType">
<xs:annotation>
<xs:documentation>Dati relativi al classamento della u.i.u.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Zona">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Categoria">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Classe">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Consistenza" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Superficie" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="5"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
8
4.6.3. Schemi
</xs:sequence>
</xs:complexType>
<xs:complexType name="IdentificativoType">
<xs:annotation>
<xs:documentation>Dati relativi all'identificativo della u.i.u.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="SezioneUrbana" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Foglio">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Numero">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="5"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Denominatore" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Subalterno" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Edificialita" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="IndirizziType">
<xs:annotation>
<xs:documentation>Dati relativi all'indirizzo della u.i.u.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Indirizzo" minOccurs="0" maxOccurs="4">
<xs:complexType>
<xs:sequence>
<xs:element name="Toponimo">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Denominazione">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Civico" minOccurs="0" maxOccurs="3">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NotaType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="TipoNota">
<xs:simpleType>
<xs:restriction base="xs:string">
8
4.6.3. Schemi
<xs:maxLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="NumeroNota">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ProgressivoNota" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="AnnoNota">
<xs:simpleType>
<xs:restriction base="xs:gYear"/>
</xs:simpleType>
</xs:element>
<xs:element name="DataEfficacia">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="8"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DataRegistrazione">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="8"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="CodiceComuneType">
<xs:sequence>
<xs:element name="CodiceBelfiore" type="cb:CodiceBelfioreType"/>
<xs:element name="Sezione" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[A-Z]"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
*
7/=/ C <?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================== -->
<!-- === CodiciBelfiore ; 1:0 ============================================== -->
<!-- ======================================================================== -->
<xs:schema targetNamespace="urn:it:gov:finanze:agenziaterritorio:codici:CodiciBelfiore:1:0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="urn:it:gov:finanze:agenziaterritorio:codici:CodiciBelfiore:1:0"
elementFormDefault="qualified" attributeFormDefault="unqualified" version="1:0">
<!-- ======================================================================== -->
<!-- === Metadati ========================================================= -->
<!-- ======================================================================== -->
<xs:annotation>
<xs:documentation>
<metadati>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/">
<rdf:Description rdf:about="">
<dc:title>Codici Belfiore</dc:title>
<dc:subject>
<rdf:Bag>
<rdf:li>catasto</rdf:li>
<rdf:li>Codici comune</rdf:li>
<rdf:li>Codici Belfiore</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:description>Questo schema contiene l'elenco dei codici dei comuni italiani
secondo la codifica Belfiore</dc:description>
<dc:type>W3C XML Schema</dc:type>
<dc:format>text/xml</dc:format>
<dc:language>IT</dc:language>
<dc:creator>AGENZIA TERRITORIO</dc:creator>
89
4.7. Nomi codificati delle strutture dell'Amministrazione finanziaria
<dc:publisher>
<rdf:Bag>
<rdf:li>Repository schemi XML Amministrazione Finanziaria</rdf:li>
<rdf:li rdf:resource="http://www.finanze.it/repositoryXML"/>
</rdf:Bag>
</dc:publisher>
<dc:date>2005-11-08</dc:date>
<dc:identifier
rdf:resource="urn:it:gov:finanze:agenziaterritorio:codici:CodiciBelfiore:1:0"/>
</rdf:Description>
</rdf:RDF>
</metadati>
</xs:documentation>
</xs:annotation>
<!-- ======================================================================== -->
<!-- === Definizione dei codici =========================================== -->
<!-- ======================================================================== -->
<xs:simpleType name="CodiceBelfioreType">
<xs:restriction base="xs:token">
<xs:enumeration value="A001"/>
<!-- ABANO TERME -->
<xs:enumeration value="A004"/>
<!-- ABBADIA CERRETO -->
<xs:enumeration value="A005"/>
<!-- ABBADIA LARIANA -->
<xs:enumeration value="A006"/>
<!-- ABBADIA SAN SALVATORE -->
<xs:enumeration value="A007"/>
<!-- ABBASANTA -->
<xs:enumeration value="A008"/>
<!-- ABBATEGGIO -->
<!-- ecc. -->
</xs:restriction>
</xs:simpleType>
</xs:schema>
4.7. Nomi codificati delle strutture
dell'Amministrazione finanziaria
B B & &
& &
& &
& &
) "
"
&
A "
&
"
+
"
&
"
88
Glossario
,3
(
0 )
& D3
" 2E (
&
" ( &
(
" ( 2
! 2! ) "
&
5 && 2 %3
+ )
. .
N "
(
&
2 D! ! E
)&
)&
+
) >%4
/
+
# +&
) >%4 "
+
&
>%4
] " ) A%4
>%4
# >%4 "
$%
+
87
3
,3 D
B9E ) (
" ! (
.&& K ) 2 +
.
+
) >%4
.
+
) >%4
.
>%4 ) ) # I2 '
&
>%4
# >%4 ) L +
<xs:schema/>
3
"
2
3
>%4! ! L 2 + 3 +
"
3$ @;(
3$ @; L " ;)&
#< ) "
2 ! && 4 D L 2 ? E +
"&
(
&
4
! && >%4! "&
#
2
2 (
& scalaTemperatura
%
# D% E L ) " L # "
>%4 <cognome> </cognome> D
>%4 2
G((
&H G(("
HE
8
<cognome>Rossi</cognome>
%
4 ! ) ! E
%
G H 3
I ! "&
&& ) ! 2
! ! # " G & H
, 2
2 2 D ) 2(
.
K 2 ! ) 2 ! &
&
" ! '-
/ +
1% 4
D
B9E (
&
"&
B "
(
&&&
B >
(0) & 3
,3 D
" (
"
E ) + >%4 .
.
) .
) >%4 ) ' *
.
2
! &
! # ! I
L +
& DG' *HE " G' * ) >%4
+
&
"
&H
) >%4
D
) G)H EP (
&
" DGHE (
>%4 D ) ! ! )&
! E ) (
! U! G2H &
) 2 A ) / D+
#
+&
E! *- ! 'F #A! R
D) >%4E ) >%4 *- A%4
= % 4
3$
CC@; ! "&
! L 2 >%4 .&&! ! " &
D (
E
& DE .
B9 ) " 2
/
4 &
DG`H GaHE && A%4! >%4 :/%4 <cognome>.
/ .
& ) ) ) L
D)&
E
/ D #E .
+
(
) >%4 D ) # (
8?
E
/ D #E .
) >%4 D ) (# # (
E
/ "
" G H
/ 2
" G H
/ 67 D #> #E / "
&
B9
2 ) ' #! G 2H G "
H
.
! && >%4! "&
#
2
2 (
& CodiceAvviamentoPostale
.
+ ) "
(
D (
E 3$ ?8? .
"
) " DE (
D " 2 (
" I
& E
# .
2
3$ ?8?
.'3
& / )
& D'- 9;C?E +
"&
+
.'# .'4
.'4
& / +
"&
&
&
.
.'4 K &
&&
" 2 L .'#
& / D'- 8E +
"&
&
#
&
&& "
*
# >%4 &
"
&
)&
(
) >%4 " & ) ) B9
* * * >%4
$
% D4
E 4
(
"
&
B9 D
E ) (
! " ! "&
" DE 3 D
E
>%4 )
) >%4 D" 2 E "
(
2 &
B9 ) B9 >%4 ) >
>,)
0
G4
D
B9E (
>%4! >4/ >,
H
8@
8C
Bibliografia
67 +
& .# + /
2
??4.4?+8''+/699@956A'--BC64&3 " ) #2* ( )" 3
"(
$"" (
67 +&
1 +.D 2
??4.?
?E?.4&3 . -
3$ (8
697 + $
> F 545 /& +
2
??4?
??3
% 3
2 8((
687 +
87
G+8H . - &
2
??4-4?/?699C?/$'+8'.'-''699C9C9A?3 B B B 8(8(@
67 $
, /
2
??44?I?3 >'4 3
6?7 $
% GH 549 G $
H 2
??4-4?/?/$'?3 B B B
8((8
6@7 2
??4-4?/?/$''?3 B B B ;;;((8
6C7 / +
1% G/+1H 2
??4-4?/+1?3 B B B 6;7 /1 655B 2
??4
&4?&?&655B4
3 3
/1 - ;;@(9
67 * 2
??4-4?6995??3 B B B 67 (0) & G(H 2
??4&4
?3 -
67 2
??4'4?
?
3 $3
697 + / F 545
2
??
44?&
'?
??4&?3 .#5-/
687 2
??44?3 .
67 . , 549 2
??4'4??','549?3 $3 8(;(
6?7 . , G,H + /
2
??4'4?
?4?BBC-?','+/'549/.54& 3 $3
8((
6@7 *- 2
??4-4??3 B B B 6C7 0
9 0 $
2
??4-4?/?'9?JK3 B B
B 8((C
6;7 0
5 $
2
??4-4?/?'5?3 B B B (
8((C
67 0
6 +
# $
2
??4-4?/?'6?3 B B B (
8((C
67 0
G0
H F 549 2
??4-4?/?
3 B B B 8;
;;;((?
67 &
GH F 549 2
??4-4?/?
3 B B B ;;;((?