Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change 
notification.

The following page has been changed by KelvinGoodson:
http://wiki.apache.org/ws/Tuscany/Java/SDO/ThinkingAloud/OpenContent

New page:
= Musings on the way Open Content works in SDO =

Document in progress ... state is very raw

A semi-public place to keep and share information on the way open content is 
spec'ed/implemented and the issues I have with it.

'''Disclaimer'''  -- this info is a point in time snapshot of my understanding, 
 it may be inaccurate.  Feel free to point out my misconceptions.

== Basic Stuff ==

A suitable schema for playing with open content ...

{{{
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:simple="http://www.example.com/open"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="http://www.example.com/open";> 
  
   <xsd:element name="openStockQuote" type="simple:OpenQuote"/>
   
   <xsd:element name="company">
     <xsd:complexType>
        <xsd:sequence>
                <xsd:element name="name" type="xsd:string"/>
        </xsd:sequence>
     </xsd:complexType>
   </xsd:element>

   <xsd:element name="note" type="xsd:string"/>

   <xsd:complexType name="OpenQuote">
       <xsd:sequence>
          <xsd:element name="symbol" type="xsd:string"/>
          <xsd:any namespace="##any"/>
       </xsd:sequence>
   </xsd:complexType>

</xsd:schema>
}}}

You have to be able to get hold of a Property that is associated with a global 
element,  the schema above demonstrates one way to create such a beast.  In the 
code you can find the Property that is generated from the element "simple" with 
 ...

{{{
      Property p = 
XSDHelper.INSTANCE.getGlobalProperty("http://www.example.com/simpleGlobalElem";, 
"simple", true);
}}}

so ...

== Open content with max occurs > 1 ==

TBD

Reply via email to