Ulrich Carmesin
2 years ago
6 changed files with 129 additions and 9 deletions
Can't render this file because it has a wrong number of fields in line 11.
|
@ -0,0 +1,37 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<rest> |
|||
<sender> |
|||
<_id>sender={_data.person._sender(_steps._nr)}</_id> |
|||
<client-name>{_catalog.sender.name(sender)}</client-name> |
|||
<client-id>{_catalog.sender.client-id(sender)}</client-id> |
|||
<client-depart>{_catalog.sender.department(sender)}</client-depart> |
|||
</sender> |
|||
<messages> |
|||
<_foreach>msgid={_steps._nr}</_foreach> |
|||
<message nr="{msgid}" action="{_steps.args.action}"> |
|||
<timestamp>{_par.tctime}</timestamp> |
|||
<customer> |
|||
<_id>{msgid}</_id> |
|||
<_row>{_data.person(msgid)}</_row> |
|||
<name>{_row.person.name}</name> |
|||
<famname>{_row.person.famname}</famname> |
|||
<adress> |
|||
<_id>{msgid}</_id> |
|||
<_row>{_data.adress(msgid)}</_row> |
|||
<street>{_row.adress.street}</street> |
|||
<city>{_row.adress.city}</city> |
|||
<zip>{_row.adress.zip}</zip> |
|||
</adress> |
|||
<position> |
|||
<_foreach>posid={_data.product._nr,_pos(msgid)}</_foreach> |
|||
<product> |
|||
<_id>{posid}</_id> |
|||
<_row>{_data.product(posid)}</_row> |
|||
<description>{_row.product.descript}</description> |
|||
<prdtype>{_row.product.objtype}</prdtype> |
|||
</product> |
|||
</position> |
|||
</customer> |
|||
</message> |
|||
</messages> |
|||
</rest> |
@ -0,0 +1,19 @@ |
|||
shiporder: |
|||
'@orderid': '889923' |
|||
'@xmlns:xsi': http://www.w3.org/2001/XMLSchema-instance |
|||
'@xsi:noNamespaceSchemaLocation': shiporder.xsd |
|||
item: |
|||
- note: Special Edition |
|||
price: '10.90' |
|||
quantity: '1' |
|||
title: Empire Burlesque |
|||
- price: '9.90' |
|||
quantity: '1' |
|||
title: Hide your heart |
|||
orderperson: John Smith |
|||
shipto: |
|||
address: Langgt 23 |
|||
city: 4000 Stavanger |
|||
country: Norway |
|||
name: Ola Nordmann |
|||
|
@ -0,0 +1,23 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<shiporder orderid="889923" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:noNamespaceSchemaLocation="shiporder.xsd"> |
|||
<orderperson>John Smith</orderperson> |
|||
<shipto> |
|||
<name>Ola Nordmann</name> |
|||
<address>Langgt 23</address> |
|||
<city>4000 Stavanger</city> |
|||
<country>Norway</country> |
|||
</shipto> |
|||
<item> |
|||
<title>Empire Burlesque</title> |
|||
<note>Special Edition</note> |
|||
<quantity>1</quantity> |
|||
<price>10.90</price> |
|||
</item> |
|||
<item> |
|||
<title>Hide your heart</title> |
|||
<quantity>1</quantity> |
|||
<price>9.90</price> |
|||
</item> |
|||
</shiporder> |
@ -0,0 +1,32 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
|||
<xs:element name="shiporder"> |
|||
<xs:complexType> |
|||
<xs:sequence> |
|||
<xs:element name="orderperson" type="xs:string"/> |
|||
<xs:element name="shipto"> |
|||
<xs:complexType> |
|||
<xs:sequence> |
|||
<xs:element name="name" type="xs:string"/> |
|||
<xs:element name="address" type="xs:string"/> |
|||
<xs:element name="city" type="xs:string"/> |
|||
<xs:element name="country" type="xs:string"/> |
|||
</xs:sequence> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
<xs:element name="item" maxOccurs="unbounded"> |
|||
<xs:complexType> |
|||
<xs:sequence> |
|||
<xs:element name="title" type="xs:string"/> |
|||
<xs:element name="note" type="xs:string" minOccurs="0"/> |
|||
<xs:element name="quantity" type="xs:positiveInteger"/> |
|||
<xs:element name="price" type="xs:decimal"/> |
|||
</xs:sequence> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
</xs:sequence> |
|||
<xs:attribute name="orderid" type="xs:string" use="required"/> |
|||
</xs:complexType> |
|||
</xs:element> |
|||
|
|||
</xs:schema> |
|
Loading…
Reference in new issue