Hello,
I am attempting to manually write a schema (for science research into
neuronal synaptic activity). I was given an XML file representing the
synapse geometry and elements. From that and along with some java code I
wrote a schema to generate these appropriate classes.
What is I wish to do is have some of my schema elements be of the type
"Vector" as the vector array list in java.
Any input will be much appreciated.
*Here is the XML data I was given. My schema also follows thereafter.*
<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : SynapseParameters.xml
Created on : April 29, 2010, 11:27 PM
Author : Susmita
Description:
Purpose of the document follows.
-->
<SynapseGeometry>
<Presynaptic>
<H3R>
<Number>1</Number>
<Location></Location>
</H3R>
<CB1R>
</CB1R>
<NCaCh type="Calcium Channel" description="N-Type Ca Channel"
properties="">
<Number>2</Number>
<Location>115,305,235,245</Location>
</NCaCh>
<LCaCh type="Calcium Channel" description="L-Type Ca Channel"
properties="">
<Number>8</Number>
<Location>125,175,185,195,215,225,265,295</Location>
</LCaCh>
<TCaCh type="Calcium Channel" description="T-Type Ca Channel"
properties="">
<Number>0</Number>
<Location></Location>
</TCaCh>
<CaBuf type="Calcium Buffer" description="" properties="">
<Number>2</Number>
<Location>155,235</Location>
</CaBuf>
<CaPump>
<Number></Number>
<Location></Location>
</CaPump>
<Vesicle type="" description="Single Vesicle" properties="">
<Number>1</Number>
<Location>205</Location>
</Vesicle>
<nAch>
</nAch>
</Presynaptic>
<Postsynaptic>
<AMPA type="Glutamate Receptor" properties="">
<Number>20</Number>
<Distribution>
<Location
Type="Uniform">108,108,116,116,116,122,126,130,136,140,144,148,156,160,166,172,178,192</Location>
</Distribution>
<DistanceToNeighbor>
</DistanceToNeighbor>
</AMPA>
<NMDA type="Glutamate Receptor" properties="">
<Number>20</Number>
<Distribution>
<Location
Type="Uniform">300,300,294,294,294,288,284,284,280,274,270,266,262,262,254,250,244,238</Location>
</Distribution>
<DistanceToNeighbor></DistanceToNeighbor>
</NMDA>
<mGluR type="Glutamate Receptor" properties="">
<Number></Number>
<Location></Location>
<DistanceToNeighbor></DistanceToNeighbor>
</mGluR>
<nAch>
</nAch>
</Postsynaptic>
<!-- Following channel information not used in this schema
<SlowKCh>
</SlowKCh>
<MedKCh>
</MedKCh>
<NaCaEx>
</NaCaEx>
-->
</SynapseGeometry>
*My schema follows, the synaptic elements should all be of type Vector as in
java but I am generating a new class called Vector instead:*
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Synapse Geometry Schema
Document: synGeo.xsd
Author: Jonathan Arteaga
Date: July 1, 2010
Last modified: July 16, 2010
Description: An XML schema for binding synapse geometry xml files to
java objects.
</xsd:documentation>
</xsd:annotation>
<xsd:element name="synapseGeometry" type="SynapseGeometryType"/>
<xsd:complexType name="SynapseGeometryType">
<xsd:sequence>
<!-- Presynaptic objects -->
<xsd:element name="presynapticObjects" type="PresynapticObjects"/>
<!-- Postsynaptic objects -->
<xsd:element name="postsynapticObjects" type="PostsynapticObjects"/>
</xsd:sequence>
</xsd:complexType>
<!-- Presynaptic objects -->
<xsd:complexType name="PresynapticObjects">
<xsd:sequence>
<xsd:element name="H3R" type="Vector"/>
<xsd:element name="CB1R" type="Vector"/>
<xsd:element name="NaCaCH" type="NaCaCh"/>
<xsd:element name="LCaCh" type="Vector"/>
<xsd:element name="TCaCh" type="Vector"/>
<xsd:element name="CaBuf" type="Vector"/>
<xsd:element name="CaPump" type="Vector"/>
<xsd:element name="Vesicle" type="Vector"/>
<xsd:element name="nAch" type="Vector"/>
</xsd:sequence>
</xsd:complexType>
<!-- Postsynaptic objects -->
<xsd:complexType name="PostsynapticObjects">
<xsd:sequence>
<xsd:element name="AMPA" type="Vector"/>
<xsd:element name="NMDA" type="Vector"/>
<xsd:element name="mGluR" type="Vector"/>
<xsd:element name="nAch" type="Vector"/>
</xsd:sequence>
</xsd:complexType>
<!-- Objects are complex types, defined below -->
<!-- Presynaptic Objects -->
<!--
<xsd:complexType name="CalChannel">
<xsd:sequence>
<xsd:element name="Number" type="xsd:decimal"/>
<xsd:element name="Location" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="Type" type="xsd:string"/>
<xsd:attribute name="Description" type="xsd:string"/>
<xsd:attribute name="Properties" type="xsd:string"/>
</xsd:complexType>
-->
<xsd:complexType name="H3R">
<xsd:sequence>
<xsd:element name="NbofH3R" type="xsd:decimal"/>
<xsd:element name="Location" type="Location"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CB1R">
<xsd:sequence>
<xsd:element name="NbofCB1R" type="xsd:decimal"/>
<xsd:element name="Location" type="Location"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="NaCaCh">
<xsd:sequence>
<xsd:element name="NbofNaCaCh" type="xsd:decimal"/>
<xsd:element name="Location" type="Location"/>
</xsd:sequence>
<xsd:attribute name="Type" type="xsd:string"/>
<xsd:attribute name="Description" type="xsd:string"/>
<xsd:attribute name="Properties" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="LCaCh">
<xsd:sequence>
<xsd:element name="NbofLCaCh" type="xsd:decimal"/>
<xsd:element name="Location" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="Type" type="xsd:string"/>
<xsd:attribute name="Description" type="xsd:string"/>
<xsd:attribute name="Properties" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="TCaCh">
<xsd:sequence>
<xsd:element name="NbofTCaCh" type="xsd:decimal"/>
<xsd:element name="Location" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="Type" type="xsd:string"/>
<xsd:attribute name="Description" type="xsd:string"/>
<xsd:attribute name="Properties" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="CaBuf">
<xsd:sequence>
<xsd:element name="NbofCaBuf" type="xsd:decimal"/>
<xsd:element name="Location" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="Type" type="xsd:string"/>
<xsd:attribute name="Description" type="xsd:string"/>
<xsd:attribute name="Properties" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="CaPump">
<xsd:sequence>
<xsd:element name="NbofCaPump" type="xsd:decimal"/>
<xsd:element name="Location" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Vesicle">
<xsd:sequence>
<xsd:element name="NbofVesicle" type="xsd:decimal"/>
<xsd:element name="Location" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="Type" type="xsd:string"/>
<xsd:attribute name="Description" type="xsd:string"/>
<xsd:attribute name="Properties" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="nAch">
<xsd:sequence>
<xsd:element name="NbofnAch" type="xsd:decimal"/>
<xsd:element name="Location" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- Postsynaptic Objects -->
<xsd:complexType name="AMPA">
<xsd:sequence>
<xsd:element name="NbofAMPA" type="xsd:decimal"/>
<xsd:element name="Distribution" type="Distribution"/>
<xsd:element name="DistanceToNeighbor" type="xsd:decimal"/>
</xsd:sequence>
<xsd:attribute name="Type" type="xsd:string"/>
<xsd:attribute name="Properties" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="NMDA">
<xsd:sequence>
<xsd:element name="NbofNMDA" type="xsd:decimal"/>
<xsd:element name="Distribution" type="Distribution"/>
<xsd:element name="DistanceToNeighbor" type="xsd:decimal"/>
</xsd:sequence>
<xsd:attribute name="Type" type="xsd:string"/>
<xsd:attribute name="Properties" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="mGluR">
<xsd:sequence>
<xsd:element name="NbofmGluR" type="xsd:decimal"/>
<xsd:element name="Distribution" type="Distribution"/>
<xsd:element name="DistanceToNeighbor" type="xsd:decimal"/>
</xsd:sequence>
<xsd:attribute name="Type" type="xsd:string"/>
<xsd:attribute name="Properties" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="Distribution">
<xsd:sequence>
<xsd:element name="Location" type="Location" />
<xsd:element name="Type" type="xsd:string" />
<xsd:element name="Variance" type="xsd:double" />
<xsd:element name="Mean" type="xsd:double" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Vector">
<xsd:sequence>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Location">
<xsd:sequence>
<xsd:element name="Coord1" type="xsd:decimal" />
<xsd:element name="Coord2" type="xsd:decimal" />
<xsd:element name="Coord3" type="xsd:decimal" />
<xsd:element name="Coord4" type="xsd:decimal" />
<xsd:element name="Coord5" type="xsd:decimal" />
<xsd:element name="Coord6" type="xsd:decimal" />
<xsd:element name="Coord7" type="xsd:decimal" />
<xsd:element name="Coord8" type="xsd:decimal" />
<xsd:element name="Coord9" type="xsd:decimal" />
<xsd:element name="Coord10" type="xsd:decimal" />
<xsd:element name="Coord11" type="xsd:decimal" />
<xsd:element name="Coord12" type="xsd:decimal" />
<xsd:element name="Coord13" type="xsd:decimal" />
<xsd:element name="Coord14" type="xsd:decimal" />
<xsd:element name="Coord15" type="xsd:decimal" />
<xsd:element name="Coord16" type="xsd:decimal" />
<xsd:element name="Coord17" type="xsd:decimal" />
<xsd:element name="Coord18" type="xsd:decimal" />
<xsd:element name="Coord19" type="xsd:decimal" />
<xsd:element name="Coord20" type="xsd:decimal" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users