|
ATTRIBUTE VALUE PAIR EXTENSION v. 2.1 |
|
|
The A/VP schema is shown in Figure 3:
|
|
|
<?xml
version="1.0" encoding="UTF-8"?>
<xsd:schema
targetNamespace="urn:ean.ucc:gdsn:2"
xmlns:gdsn="urn:ean.ucc:gdsn:2"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified"
version="2.0.2">
<xsd:annotation>
<xsd:documentation>
---------------------------
© Copyright GS1, 2005
GS1 is providing this XML
Schema Definition file and resultant XML file as a service to interested
industries.
This XML Schema Definition
file and resultant XML file were developed through a consensus process of interested
parties.
Although efforts have been
made to ensure that the XML Schema Definition file and resultant XML file are
correct, reliable, and technically
accurate, GS1 makes NO WARRANTY, EXPRESS OR IMPLIED,
THAT THIS XML Schema Definition file and resultant XML file ARE
CORRECT, WILL NOT REQUIRE
MODIFICATION AS EXPERIENCE AND TECHNOLOGICAL ADVANCES DICTATE, OR WILL BE
SUITABLE FOR
ANY PURPOSE OR WORKABLE IN
ANY APPLICATION, OR OTHERWISE. Use of
the XML Schema Definition file and resultant XML
file are with the
understanding that GS1 has no liability for any claim to the contrary, or for
any damage or loss of any kind or nature.
Version Information:
Version Number: 2.0.2
Date of creation: August
2005
The schema and subsequent
updates will be provided on the GS1 websites.
---------------------------
</xsd:documentation>
</xsd:annotation>
<xsd:complexType name="AttributeValueType">
<xsd:simpleContent>
<xsd:extension base="gdsn:AttributeValueContentType">
<xsd:attribute name="name" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="70"/>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="AttributeValuePairExtensionType">
<xsd:sequence>
<xsd:element name="value" type="gdsn:AttributeValueType"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="AttributeValueContentType">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="255"/>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="attributeValuePairExtension" type="gdsn:AttributeValuePairExtensionType"/>
</xsd:schema>
|
|
|
Figure 3.
The A/VP Schema.
A sample XML
instance document follows in Figure 4:
|
|
|
<extension>
<gdsn:attributeValuePairExtension xsi:schemaLocation="urn:ean.ucc:2
../Schemas/AttributeValuePairExtensionProxy.xsd">
<value
name="packagingWeightValue">15</value>
<value
name="packagingWeightUnitOfMeasure">kg</value>
</gdsn:attributeValuePairExtension>
</extension>
|
|
|
Figure 4. The
instance document snippet of the CIN based on the A/VP schema.
Figure 4 shows the
following data exchanged between trading partners in the A/VP:
|
|
|
|
Table
1. Data Exchanged between trading partners using the A/VP.
|
|
attributeName
|
packagingWeightValue
|
attributeValue
|
15
|
|
attributeName
|
packagingWeightUnitOfMeasure
|
attributeValue
|
kg
|
|
|
|
Back
to Message Description |
|
|
Test Data |
|
|
|
|
|
TOP |
|