-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #319 from sissaschool/develop
New major release v2.0
- Loading branch information
Showing
80 changed files
with
1,152 additions
and
1,415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<ns0:kPartModel xmlns:ns0="http://www.ludd21.com/kPartModel" modelName="manysingulars" otherattribute=""> | ||
<ns0:kPartsPiece pieceName="pieceknit_layer1"> | ||
<ns0:kPartsList> | ||
<ns0:castOnPartSeg nextsnum="1" partNumber="0"> | ||
<ns0:baseSeg start="9.73143 0.00000" end="17.73188 0.00000" /> | ||
</ns0:castOnPartSeg> | ||
<ns0:joinPart nextsnum="3" previousnum="0 " partNumber="1" > | ||
<ns0:baseSeg start="9.88173 -11.82912" end="25.27907 -11.82912" /> | ||
</ns0:joinPart> | ||
<ns0:joinPart nextsnum="1" previousnum="0" partNumber="3"> | ||
<ns0:baseSeg start="9.98452 -19.91844" end="56.48310 -19.91844" /> | ||
</ns0:joinPart> | ||
</ns0:kPartsList> | ||
</ns0:kPartsPiece> | ||
</ns0:kPartModel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<ns0:kPartModel xmlns:ns0="http://www.ludd21.com/kPartModel" modelName="manysingulars" otherattribute=""> | ||
<ns0:kPartsPiece pieceName="pieceknit_layer1"> | ||
<ns0:kPartsList> | ||
<ns0:castOnPartSeg nextsnum="1 3" partNumber="0"> | ||
<ns0:baseSeg start="9.73143 0.00000" end="17.73188 0.00000" /> | ||
</ns0:castOnPartSeg> | ||
<ns0:joinPart nextsnum="3" previousnum="0 " partNumber="1" > | ||
<ns0:baseSeg start="9.88173 -11.82912" end="25.27907 -11.82912" /> | ||
</ns0:joinPart> | ||
<ns0:joinPart nextsnum="1" previousnum="0" partNumber="3"> | ||
<ns0:baseSeg start="9.98452 -19.91844" end="56.48310 -19.91844" /> | ||
</ns0:joinPart> | ||
</ns0:kPartsList> | ||
</ns0:kPartsPiece> | ||
</ns0:kPartModel> |
122 changes: 122 additions & 0 deletions
122
tests/test_cases/issues/issue_311/kPartModel_reduit_issue.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<?xml version="1.1" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
targetNamespace = "http://www.ludd21.com/kPartModel" | ||
xmlns = "http://www.ludd21.com/kPartModel" | ||
elementFormDefault="qualified" | ||
vc:minVersion = "1.1" | ||
xpathDefaultNamespace="##targetNamespace" | ||
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" | ||
> | ||
|
||
<xs:element name="kPartModel"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref="kPartsPiece" minOccurs="1" maxOccurs = "unbounded"/> | ||
</xs:sequence> | ||
<xs:attribute name="modelName" type="xs:NCName" use = "required"/> | ||
<xs:attribute name= "otherattribute" type="xs:string" default = ""/> | ||
</xs:complexType> | ||
|
||
<!--piecename must be unique within kpModel--> | ||
<xs:unique name= "kPartModel"> | ||
<xs:selector xpath="*"/> | ||
<xs:field xpath= "@pieceName"/> | ||
</xs:unique> | ||
</xs:element> | ||
|
||
<xs:element name="kPartsPiece"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref= "kPartsList"/> | ||
</xs:sequence> | ||
<xs:attribute name="pieceName" type="xs:NCName"/> | ||
<!-- nextsnum must contain valid partNumbers --> | ||
<xs:assert id = "test-previous" test = "every $x in data(kPartsList/*/@previousnum) satisfies some $part in kPartsList/* satisfies $part/@partNumber = $x"/> | ||
<xs:assert id = "test-nexts" test = "every $x in data(kPartsList/*/@nextsnum) satisfies some $part in kPartsList/* satisfies $part/@partNumber = $x"/> | ||
</xs:complexType> | ||
<!-- @partNumber is unique across kPartsList --> | ||
<xs:unique id = "unique-partNumber" name= "kPartsList"> | ||
<xs:selector xpath="*/*"/> | ||
<xs:field xpath= "@partNumber"/> | ||
</xs:unique> | ||
</xs:element> | ||
|
||
<xs:element name = "kPartsList" > | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:choice minOccurs= "0" maxOccurs = "unbounded"> | ||
<xs:element ref = "castOnPartSeg" /> | ||
<xs:element ref = "castOnPartPoint" /> | ||
<xs:element ref = "joinPart"/> | ||
</xs:choice> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="castOnPartPoint"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref ="basePoint"/> | ||
</xs:sequence> | ||
<xs:attribute name ="nextsnum" type = "kpRefsList" use = "required"/> | ||
<xs:attribute name = "partNumber" type = "xs:nonNegativeInteger" use = "required"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="castOnPartSeg"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref ="baseSeg"/> | ||
</xs:sequence> | ||
<xs:attribute name = "nextsnum" type = "kpRefsList" use = "required"/> | ||
<xs:attribute name = "partNumber" type = "xs:nonNegativeInteger" use = "required"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="joinPart"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref ="baseSeg"/> | ||
</xs:sequence> | ||
<xs:attribute name ="nextsnum" type = "kpRefsList" use = "required"/> | ||
<xs:attribute name ="previousnum" type = "kpRefsList" use = "required"/> | ||
<xs:attribute name = "partNumber" type = "xs:nonNegativeInteger" use = "required"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:simpleType name = "kpRefsList"> | ||
<xs:list itemType= "xs:nonNegativeInteger"/> | ||
</xs:simpleType> | ||
|
||
<xs:element name = "basePoint"> | ||
<xs:complexType> | ||
<xs:attribute name= "start" type = "point" use = "required"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
|
||
<xs:element name = "baseSeg"> | ||
<xs:complexType> | ||
<xs:attribute name= "start" type = "point" use = "required"/> | ||
<xs:attribute name= "end" type = "point" use = "required"/> | ||
<!--<xs:assert id = "test_base_horizontal" test = "@start[1] = @end[1]"/> --> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
|
||
<xs:simpleType name= "point"> | ||
<xs:restriction> | ||
<xs:simpleType> | ||
<xs:list itemType = "decimal5digits"/> | ||
</xs:simpleType> | ||
<xs:length value = "2"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
|
||
<xs:simpleType name ="decimal5digits"> | ||
<xs:restriction base = "xs:decimal"> | ||
<xs:fractionDigits value="5"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
|
||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<tst:e1 xmlns:tst="http://xmlschema.test/ns" a1="foo">bar</tst:e1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<tst:e1 xmlns:tst="http://xmlschema.test/ns" a1="foo"></tst:e1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<tst:e1 xmlns:tst="http://xmlschema.test/ns" a1="foo">bar<e2/></tst:e1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<tst:e1 xmlns:tst="http://xmlschema.test/ns" a1="foo"><e2/>bar<e2/></tst:e1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<tst:e1 xmlns:tst="http://xmlschema.test/ns" a1="foo"><e2/>bar</tst:e1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema targetNamespace="http://xmlschema.test/ns" | ||
xmlns:tst="http://xmlschema.test/ns" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:element name="e1" type="tst:t1"/> | ||
<xs:complexType name="t1"> | ||
<xs:complexContent mixed="true"> | ||
<xs:restriction base="xs:anyType"> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element name="e2" type="xs:string"/> | ||
</xs:choice> | ||
<xs:attribute type="xs:string" name="a1"/> | ||
</xs:restriction> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema targetNamespace="http://xmlschema.test/ns" | ||
xmlns:tst="http://xmlschema.test/ns" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:element name="e1" type="tst:t1"/> | ||
<xs:complexType name="t1"> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:attribute type="xs:string" name="a1"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.