OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xdi message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [xdi] Schema for envelope model


and here's the example.  Quite a few close tags were missing, so I think this 
is what Dave meant, but I'm not sure...


Dave McAlpin wrote:
> Attached is a proposed schema for the XDI envelope model. I did this by 
> hand, so it's probably not exactly right. A brief description of the 
> elements defined by the schema and an example instance document follow.

<xdi:Resource xmlns:xdi="urn:oasis:names:tc:XDI:1.0:resource">
  <xdih:Header xmlns:xdih="urn:oasis:names:tc:XDI:1.0:resource:headers">
    <xdih:Meta URI="#_1234" XPath="/purchaseOrder">
      <xdih:Address>xri://@w3c/xmlschema/po.xml</xdih:Address>
      <xdih:Type>@dictionary/(+purchaseOrder)</xdih:Type>
      <xdih:Meta XPath="/purchaseOrder/shipTo">
        <xdih:Address>!2</xdih:Address>
        <xdih:Type>@dictionary/(+address)</xdih:Type>
        <xdih:Type>@dictionary/(+shippingAddress)</xdih:Type>
      </xdih:Meta>
      <xdih:Meta>
        <xdih:Meta XPath="/purchaseOrder/billTo">
          <xdih:Address>!3</xdih:Address>
          <xdih:Type>@dictionary/(+address)</xdih:Type>
          <xdih:Type>@dictionary/(+billingAddress)</xdih:Type>
        </xdih:Meta>
        <xdih:Meta XPath="/purchaseOrder/comment">
          <xdih:Address>!4</xdih:Address>
        </xdih:Meta>
        <xdih:Meta XPath="/purchaseOrder/items">
          <xdih:Address>!5</xdih:Address>
        </xdih:Meta>
        <xdih:Meta XPath="/purchaseOrder/items/item[1]">
          <xdih:Address>!1</xdih:Address>
        </xdih:Meta>
        <xdih:Meta XPath="/purchaseOrder/items/item[2]">
          <xdih:Address>!2</xdih:Address>
        </xdih:Meta>
      </xdih:Meta>
    </xdih:Meta>
  </xdih:Header>
  <xdi:Data>
    <purchaseOrder orderDate="1999-10-20" ID="_1234" xmlns="...">
      <shipTo country="US">
        <name>Alice Smith</name>
        <street>123 Maple Street</street>
        <city>Mill Valley</city>
        <state>CA</state>
        <zip>90952</zip>
      </shipTo>
      <billTo country="US">
        <name>Robert Smith</name>
        <street>8 Oak Avenue</street>
        <city>Old Town</city>
        <state>PA</state>
        <zip>95819</zip>
      </billTo>
      <comment>Hurry, my lawn is going wild</comment>
      <items>
        <item partNum="872-AA">
          <productName>Lawnmower</productName>
          <quantity>1</quantity>
          <USPrice>148.95</USPrice>
          <comment>Confirm this is electric</comment>
        </item>
        <item partNum="926-AA">
          <productName>Baby Monitor</productName>
          <quantity>1</quantity>
          <USPrice>39.98</USPrice>
          <shipDate>1999-05-21</shipDate>
        </item>
      </items>
    </purchaseOrder>
  </xdi:Data>
</xdi:Resource>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]