HI There
Please find attached Dump2.xsd, simplified schema, transformed schema, used for Point2:
Thanks and Regards, Jitesh
----- Original Message ----- From: "Nacho G. Mac Dowell" <[EMAIL PROTECTED]>
To: "Jochen Wiedmann" <[EMAIL PROTECTED]>
Cc: "Kalyani Jitesh" <[EMAIL PROTECTED]>; <[email protected]>
Sent: Tuesday, January 18, 2005 9:03 PM
Subject: Re: Group Ref Pb
While trying Point 2: (refer below mail), I have removed <xs:extension ..> and groups.
Can you send the transformed xsd?
Jochen Wiedmann wrote:
Hi,
On Tue, 18 Jan 2005 11:34:47 +0900, Kalyani Jitesh <[EMAIL PROTECTED]> wrote:
Sorry I have forget to mention that, I am using <xs:extension base..> in my
schema. I think it is not supported by Jaxme. While trying Point 2: (refer below mail), I have removed <xs:extension ..>
and groups.
looking through your schema, I found that you are indeed using xs:extension in a way, which makes the element an implicit nested group. This is not yet supported, sorry.
Btw, I just noticed, that we could easily add support for your particular schema in the following way: Suggest the following definition:
<xs:group> <xs:sequence> <xs:element name="a"/> <xs:element name="b"/> </xs:sequence> <xs:sequence> <xs:element name="c"/> <xs:element name="d"/> </xs:sequence> </xs:group>
This is basically what your xs:extension does. If we would change that internally to
<xs:sequence> <xs:element name="a"/> <xs:element name="b"/> <xs:element name="c"/> <xs:element name="d"/> </xs:sequence>
(simple optimization), then we could map such typical cases. This could be easily done on the XS level.
Anyone volunteering? I'll hardly find the time these days.
Jochen
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<?xml version="1.0" encoding="UTF-8"?> <!--W3C Schema generated by XMLSPY v5 rel. 4 U (http://www.xmlspy.com)--> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" elementFormDefault="qualified" jxb:version="1.0"> <!-- _______________________________________________________________________________________________ --> <!-- Definition of Root element "TraceMethodDump" contains "Thread" child elements --> <xs:element name="TraceMethodDump"> <xs:complexType> <xs:sequence> <xs:element name="Thread" type="ThreadType" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <!-- Definition of "Thread" element contains "ExceptionSummary", "TopMethodSummary" and "MethodEntry" child elements --> <xs:complexType name="ThreadType"> <xs:sequence> <xs:element name="ExceptionSummary" type="ExceptionSummaryType" minOccurs="0"/> <xs:element name="TopMethodSummary" type="TopMethodSummaryType" minOccurs="0"/> <xs:element name="MethodEntry" type="MethodEntryType" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="Name" type="xs:string" use="required"/> </xs:complexType> <!-- Definition of "ExceptionSummary" element contains "Method" child element --> <xs:complexType name="ExceptionSummaryType"> <xs:sequence> <xs:element ref="Method"/> </xs:sequence> <xs:attribute name="Msg" type="xs:string" use="required"/> <xs:attribute name="Name" type="xs:string" use="required"/> <xs:attribute name="ThrownDate" type="xs:string" use="required"/> </xs:complexType> <!-- Definition of "TopMethodSummary" element contains "Method" child element --> <xs:complexType name="TopMethodSummaryType"> <xs:sequence> <xs:element ref="Method"/> </xs:sequence> <xs:attribute name="ElapsedTime" type="xs:long" use="required"/> <xs:attribute name="EnterDate" type="xs:string" use="required"/> <xs:attribute name="ExitDate" type="xs:string" use="required"/> <xs:attribute name="NumberOfMethods" type="xs:integer" use="required"/> </xs:complexType> <!-- Definition of "MethodEntry" element contains "MethodEntry" child element --> <xs:complexType name="MethodEntryType"> <xs:sequence> <xs:element name="Source" type="xs:string"/> <xs:element name="Arguments" type="ArgumentsType" maxOccurs="unbounded"/> <xs:element name="Result" type="ResultType" minOccurs="0"/> <xs:element name="Instance" type="xs:string"/> <xs:element name="CallerMethod" type="xs:string" minOccurs="0"/> </xs:sequence> <xs:attributeGroup ref="methodAttributeGroup"/> <xs:attribute name="ElapsedTime" type="xs:long" use="optional"/> <xs:attribute name="EnterDate" type="xs:string" use="optional"/> <xs:attribute name="ExceptionFlag" type="xs:boolean" use="optional"/> </xs:complexType> <!-- _______________________________________________________________________________________________ --> <!-- Global complexTypes referenced in other complexTypes OR Elements --> <!-- Definition of "MethodType" complexType referenced in "MethodEntryType" complexType --> <xs:complexType name="MethodType"> <xs:sequence> <xs:element name="Source" type="xs:string"/> <xs:element name="Arguments" type="ArgumentsType" maxOccurs="unbounded"/> <xs:element name="Result" type="ResultType" minOccurs="0"/> <xs:element name="Instance" type="xs:string"/> <xs:element name="CallerMethod" type="xs:string" minOccurs="0"/> </xs:sequence> <xs:attributeGroup ref="methodAttributeGroup"/> </xs:complexType> <!-- Definition of "ArgumentsType" complexType referenced in "methodGroup" group --> <xs:complexType name="ArgumentsType" mixed="true"> <xs:sequence> <xs:element ref="toString" minOccurs="0"/> <xs:element ref="Url" minOccurs="0"/> <xs:element name="HeaderReferer" type="xs:string" minOccurs="0"/> <xs:element name="UserPrincipal" type="xs:string" minOccurs="0"/> <xs:element name="ParameterList" type="ParameterListType" minOccurs="0"/> <xs:element name="ContentType" type="xs:string" minOccurs="0"/> </xs:sequence> <xs:attribute name="Type" type="xs:string" use="required"/> </xs:complexType> <!-- Definition of "ResultType" complexType referenced in "methodGroup" group --> <xs:complexType name="ResultType" mixed="true"> <xs:sequence> <xs:element ref="toString" minOccurs="0"/> <xs:element name="SessionId" type="xs:string" minOccurs="0"/> <xs:element name="CreationTime" type="xs:string" minOccurs="0"/> <xs:element name="LastAccessedTime" type="xs:string" minOccurs="0"/> <xs:element name="AttributeList" type="AttributeListType" minOccurs="0"/> <xs:element ref="Url" minOccurs="0"/> </xs:sequence> <xs:attribute name="Type" type="xs:string" use="required"/> </xs:complexType> <!-- Definition of "AttributeListType" complexType referenced in "AttributeList" element --> <xs:complexType name="AttributeListType"> <xs:sequence> <xs:element name="Attribute" type="AttributeType" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> <!-- Definition of "ParameterListType" complexType referenced in "ParameterList" element --> <xs:complexType name="ParameterListType"> <xs:sequence> <xs:element name="Parameter" type="ParameterType" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> <!-- Definition of "AttributeType" complexType --> <xs:complexType name="AttributeType"> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="name" type="xs:string" use="required"/> </xs:extension> </xs:simpleContent> </xs:complexType> <!-- Definition of "ParameterType" complexType --> <xs:complexType name="ParameterType"> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="name" type="xs:string" use="required"/> </xs:extension> </xs:simpleContent> </xs:complexType> <!-- _______________________________________________________________________________________________ --> <!-- Global groups referenced in other complexTypes OR Elements --> <!-- Definition of "methodGroup" group referenced in "MethodType" complexType --> <!-- <xs:group name="methodGroup"> <xs:sequence> <xs:element name="Source" type="xs:string"/> <xs:element name="Arguments" type="ArgumentsType" maxOccurs="unbounded"/> <xs:element name="Result" type="ResultType" minOccurs="0"/> <xs:element name="Instance" type="xs:string"/> <xs:element name="CallerMethod" type="xs:string" minOccurs="0"/> </xs:sequence> </xs:group> --> <!-- Definition of "methodAttributeGroup" group referenced in "MethodType" complexType --> <xs:attributeGroup name="methodAttributeGroup"> <xs:attribute name="Type" type="xs:string" use="required"/> <xs:attribute name="Name" type="xs:string" use="required"/> <xs:attribute name="Class" type="xs:string" use="required"> <!-- Definition for jaxb custmization, changing the property name Class to ClassName in genrated class, as it conficts with Object.getClass --> <xs:annotation> <xs:appinfo> <jxb:property name="ClassName"/> </xs:appinfo> </xs:annotation> </xs:attribute> </xs:attributeGroup> <!-- Definition of "requestGroup" group referenced in "ArgumentsType" complexType <xs:group name="requestGroup"> <xs:sequence> <xs:element ref="Url"/> <xs:element name="HeaderReferer" type="xs:string"/> <xs:element name="UserPrincipal" type="xs:string" minOccurs="0"/> <xs:element name="ParameterList" type="ParameterListType"/> </xs:sequence> </xs:group> --> <!-- Definition of "responseGroup" group referenced in "ArgumentsType" complexType <xs:group name="responseGroup"> <xs:sequence> <xs:element name="ContentType" type="xs:string"/> </xs:sequence> </xs:group> --> <!-- Definition of "sessionGroup" group referenced in "ResultType" complexType --> <!-- <xs:group name="sessionGroup"> <xs:sequence> <xs:element name="SessionId" type="xs:string"/> <xs:element name="CreationTime" type="xs:string"/> <xs:element name="LastAccessedTime" type="xs:string"/> <xs:element name="AttributeList" type="AttributeListType"/> </xs:sequence> </xs:group> --> <!-- Definition of "connectionGroup" group referenced in "ResultType" complexType --> <!-- <xs:group name="connectionGroup"> <xs:sequence> <xs:element ref="Url"/> </xs:sequence> </xs:group> --> <!-- _______________________________________________________________________________________________ --> <!-- Global elements referenced in other complexTypes OR Elements --> <!-- Definition of "toString" element --> <xs:element name="toString" type="xs:string"/> <!-- Definition of "Url" element --> <xs:element name="Url" type="xs:string"/> <!-- Definition of "Method" element --> <xs:element name="Method" type="MethodType"/> </xs:schema>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
