yawlfoundation / yawl

Yet Another Workflow Language
http://www.yawlfoundation.org
GNU Lesser General Public License v3.0
90 stars 35 forks source link

Further issue concering UTF-8 characters in Data Definitions (Schema) #447

Closed yawlfoundation closed 9 years ago

yawlfoundation commented 9 years ago
What steps will reproduce the problem?
1. Define a restriction in XSD with the charakter ' in an element. 
2. Select the element with the charakter ' in workflow.
3. The error appears.

What is the expected output? What do you see instead?

I'm seeing the following error:
Problem with process model. Schema validation failed Task 
[Check_personal_data_14] Validation error message [Error: 7:50: 
cvc-enumeration-valid: Value 'LAO PEOPLE'S DEM REP' is not facet-valid with 
respect to enumeration '[AUSTRIA, BELGIUM, BULGARIA, CYPRUS, CZECH REPUBLIC, 
GERMANY, ESTONIA, SPAIN, FINLAND, FRANCE, UNITED KINGDOM, GREECE, HUNGARY, 
IRELAND, ITALY, LITHUANIA, LUXEMBOURG, LATVIA, MALTA, NETHERLANDS, POLAND, 
PORTUGAL, ROMANIA, SWEDEN, SLOVENIA, SLOVAKIA, , ANDORRA, UNITED ARAB EMIRATES, 
AFGHANISTAN, ANTIGUA AND BARBUDA, ANGUILLA, ALBANIA, ARMENIA, NETHERLANDS 
ANTILLES, ANGOLA, ANTARCTICA, ARGENTINA, AMERICAN SAMOA, AUSTRALIA, ARUBA, 
AZERBAIJAN, BOSNIA AND HERZEGOVINA, BARBADOS, BANGLADESH, BURKINA FASO, 
BAHRAIN, BURUNDI, BENIN, BERMUDA, BRUNEI DARUSSALAM, BOLIVIA, BRAZIL, BAHAMAS, 
BHUTAN, BOUVET ISLAND, BOTSWANA, BELARUS, BELIZE, CANADA, COCOS (KEELING) 
ISLANDS, CONGO, DEM REP, CENTRAL AFRICAN REPUBLIC, CONGO, SWITZERLAND, COOK 
ISLANDS, CHILE, CAMEROON, CHINA, COLOMBIA, COSTA RICA, SERBIA AND MONTENEGRO, 
CUBA, CAPE VERDE, CHRISTMAS ISLAND, DJIBOUTI, DENMARK, DOMINICA, DOMINICAN 
REPUBLIC, ALGERIA, ECUADOR, EGYPT, WESTERN SAHARA, ERITREA, ETHIOPIA, FIJI, 
MICRONESIA, FAROE ISLANDS, GABON, GRENADA, GEORGIA, FRENCH GUIANA, GHANA, 
GIBRALTAR, GREENLAND, GAMBIA, GUINEA, GUADELOUPE, EQUATORIAL GUINEA, GUATEMALA, 
GUAM, GUINEA-BISSAU, GUYANA, HONG KONG, HONDURAS, CROATIA, HAITI, INDONESIA, 
ISRAEL, INDIA, IRAQ, IRAN, ICELAND, JAMAICA, JORDAN, JAPAN, KENYA, KYRGYZSTAN, 
CAMBODIA, KIRIBATI, COMOROS, NORTH KOREA, SOUTH KOREA, KUWAIT, CAYMAN ISLANDS, 
KAZAKHSTAN, LAO PEOPLE'S DEM REP , LEBANON, SAINT LUCIA, LIECHTENSTEIN, SRI 
LANKA, LIBERIA, LESOTHO, LIBYA, MOROCCO, MONACO, MOLDOVA, MADAGASCAR, MARSHALL 
ISLANDS, MACEDONIA, MALI, MYANMAR, MONGOLIA, MACAO, NORTHERN MARIANA ISLANDS, 
MARTINIQUE, MAURITANIA, MONTSERRAT, MAURITIUS, MALDIVES, MALAWI, MEXICO, 
MALAYSIA, MOZAMBIQUE, NAMIBIA, NEW CALEDONIA, NIGER, NORFOLK ISLAND, NIGERIA, 
NICARAGUA, NORWAY, NEPAL, NAURU, NIUE, NEW ZEALAND, OMAN, PANAMA, PERU, FRENCH 
POLYNESIA, PAPUA NEW GUINEA, PHILIPPINES, PAKISTAN, PITCAIRN, PUERTO RICO, 
PALESTINIAN TER, OCCUPIED, PALAU, PARAGUAY, QATAR, RUSSIAN FEDERATION, RWANDA, 
SAUDI ARABIA, SOLOMON ISLANDS, SEYCHELLES, SUDAN, SINGAPORE, SAINT HELENA, 
SIERRA LEONE, SAN MARINO, SENEGAL, SOMALIA, SURINAME, SAO TOME AND PRINCIPE, EL 
SALVADOR, SYRIA, SWAZILAND, TURKS AND CAICOS ISLANDS, CHAD, TOGO, THAILAND, 
TAJIKISTAN, TOKELAU, TIMOR-LESTE, TURKMENISTAN, TUNISIA, TONGA, TURKEY, 
TRINIDAD AND TOBAGO, TUVALU, TAIWAN, TANZANIA, UKRAINE, UGANDA, UNITED STATES, 
URUGUAY, UZBEKISTAN, VENEZUELA, VIRGIN ISLANDS, U.S., VIET NAM, VANUATU, WALLIS 
AND FUTUNA, SAMOA, YEMEN, MAYOTTE, SOUTH AFRICA, ZAMBIA, ZIMBABWE]'. It must be 
a value from the enumeration. Error: 7:50: cvc-type.3.1.3: The value 'LAO 
PEOPLE'S DEM REP' of element 'nationality' is not valid. ]

You may use the following schema to reproduce:
      <xs:simpleType name="nationalityType">
        <xs:restriction base="xs:string">
          <xs:enumeration value="LAND ISLANDS" />
          <xs:enumeration value="CTE D'IVOIRE" />
          <xs:enumeration value="LAO PEOPLE'S DEM REP " />
      <xs:enumeration value="RUNION" />
        </xs:restriction>
      </xs:simpleType>

Original issue reported on code.google.com by felix.mannhardt on 24 Jul 2011 at 2:20

yawlfoundation commented 9 years ago
The problem isn't the apostrophe, it is the trailing space at the end of 
value="LAO PEOPLE'S DEM REP ". Remove the trailing space from the data 
definition and it will work as expected.

Original comment by yawl.mic...@gmail.com on 27 Jul 2011 at 6:22