Using XSLT you will need to convert your Schema to be compatible with
the W3C Schema Recommendation.

Given the Schema fragment you have shown below it should be quite easy
and straight-forward to write an XSLT stylesheet that can do the
conversion. You will have to learn W3C Schema, of course, or know
someone that can help you.

Thanks,

--Keith

DeWitt Clinton wrote:
> 
> Hello all:
> 
> I trust that I am posting this to the correct place.
> 
> I am presently undertaking a large project that relies on XML for the
> client/server inter-op.  My project is the client in this scenario, and
> we are obligated to accept the schemas as provided by our partner.
> 
> As we are architecting our side of the platform in Java, clearly using
> some form of XML/Java data binding is highly desired.  Naturally, the
> first place I looked was to Castor to provide the solution.
> 
> However, I am somewhat stymied from the outset.  From what I can tell,
> the schemas used by our client are in a subset of the XML-Data format.
> 
> Here is a simple example of a schema they provide:
> 
>   <?xml version="1.0"?>
> 
>   <Schema name="SizeSchema"
>      xmlns="urn:schemas-microsoft-com:xml-data"
>      xmlns:dt="urn:schemas-microsoft-com:datatypes">
> 
>     <ElementType name="size"/>
> 
>     <AttributeType name="minSize">
>       <datatype dt:type="int"/>
>     </AttributeType>
> 
>     <AttributeType name="maxSize">
>       <datatype dt:type="int"/>
>     </AttributeType>
> 
>   </Schema>
> 
> My question is simple -- will I be able to use Castor in this project,
> given that their schema representation is not the one natively used by
> Castor?
> 
> Thank you in advance for letting me know whether or not to purse the
> Castor angle.  And if not, any other suggestions on what tools will
> provide class generation and run-time marshalling/unmarshalling for
> this type of schema are greatly appreciated.
> 
> Cheers,
> 
> -DeWitt
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to