You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: 03 - XML Schema.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -329,15 +329,19 @@ La sintassi da utilizzare è la seguente:
329
329
Per esempio:
330
330
331
331
```XML
332
-
<xsd:simpleTypename="myInteger">
333
-
<xsd:restrictionbase="xsd:integer">
334
-
<xsd:minInclusivevalue="10000"/>
335
-
<xsd:maxInclusivevalue="99999"/>
336
-
</xsd:restriction>
337
-
</xsd:simpleType>
332
+
01 <xsd:simpleTypename="myInteger">
333
+
02 <xsd:restrictionbase="xsd:integer">
334
+
03 <xsd:minInclusivevalue="10000"/>
335
+
04 <xsd:maxInclusivevalue="99999"/>
336
+
05 </xsd:restriction>
337
+
06 </xsd:simpleType>
338
338
```
339
339
340
-
**Sinossi**: ho creato un nuovo tipo esplicitamente (utilizzando la *restriction*). Il nuovo tipo si chiama **myInteger** ed eredita dal tipo predefinito **integer**. Il nuovo tipo *myInteger* può assumere solo i valori da *10000* a *99999*.
340
+
**Sinossi**: ho creato un nuovo tipo esplicitamente (utilizzando la *restriction*). Il nuovo tipo si chiama **myInteger** ed eredita dal tipo predefinito **integer**. Il nuovo tipo *myInteger* può assumere solo i valori da *10000* a *99999*.
341
+
342
+
La "Facet" sono i vincoli.
343
+
344
+
Se si mettono le righe 01 e 06 allora la definizione è referenziabile in tutto il documento.
341
345
342
346
343
347
@@ -361,7 +365,7 @@ Esempio:
361
365
</xsd:simpleType>
362
366
```
363
367
364
-
**Sinossi**: ho appena definitio un nuovo tipo di nome **ListOfMyIntType** che rappresenta una sequenza di valori tutti di tipo **myInteger**, secondo la definizione fatta prima, ciascuno diu questi valori sono compresi tra *10000* e *99999*.
368
+
**Sinossi**: ho appena definitio un nuovo tipo di nome **ListOfMyIntType** che rappresenta una sequenza di valori tutti di tipo **myInteger** (che è stato definito prima), secondo la definizione fatta prima, ciascuno di questi valori sono compresi tra *10000* e *99999*.
0 commit comments