You might want to try sending this to the MSV list to see if they can help.

http://groups.yahoo.com/group/msv-interest/

I notice that the W3C DOM group just decided to push back on the abstract
schema API, as I guess this is kinda hard stuff.

One thought could be, try make an XSLT to turn your schema documents into
something a little bit more understandable, then just use a simple XML model
to represent this stuff.

<type name="Address">
    <property name="street" type="String" cardinality="1..1"/>
    <property name="city" type="String" cardinality="1..1"/>
</type>

Then you could just use regular XPath on it? Though this a massive
simplification of the problem - I've often found code-generator type of
things just need a simple flat model of types and their properties.

James
----- Original Message -----
From: "Brian W. Young" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "James Strachan" <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 5:04 PM
Subject: Re: [dom4j-user] schema needs/wants & MSV?


> Well, unfortunately we have some fairly specific needs to have
> programatic access to the data in a schema.  I think we've worked out
> some of the basic problems (like "includes") but we've still got some
> difficulty with MSV:
>
> 1) We need to locate a simple example of using the MVS AGM to construct
> an object containing the element/attribute structure including cardinality
> 2) or, we need to determine how to obtain/capture cardinality while
> using an ExpressionWalker to capture the element/attribute structure
>
> If anybody can help here, I'd be very grateful.
> Thanks
>
>
> James Strachan wrote:
>
> >From: "Brian W. Young" <[EMAIL PROTECTED]>
> >
> >
> >>Hi,
> >>
> >>We have a need to parse a schema and basically denormalize it- expand
> >>everything out into one document.  For example, if the schema includes 4
> >>other schemas and references complex datatypes, we'd like to be able to
> >>run this schema thru some engine and get back a document that has been
> >>expanded out to include the 4 separate schemas, and the complex
> >>datatypes should be expanded out into basic individual types.
> >>
> >>Any ideas?  Is MSV an option?  I've looked at it but it doesn't look
> >>like it does what I want right off the bat, and I'm not sure I could
> >>figure it out enough to make something work.
> >>
> >>
> >
> >Could you use XSLT for this? Essentially copying everything through as is
> >but just processing the <xsd:include> elements to actually include, in
> >place, the referenced schema documents?
> >
> >Or you could just parse the document as a dom4j Document object then find
> >the <include> elements then swap them with the root elements of the
included
> >documents.
> >
> >James
> >
> >
> >_________________________________________________________
> >Do You Yahoo!?
> >Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> >
> >-------------------------------------------------------
> >This sf.net email is sponsored by:ThinkGeek
> >Welcome to geek heaven.
> >http://thinkgeek.com/sf
> >_______________________________________________
> >dom4j-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/dom4j-user
> >
> >
> >
> >
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Gadgets, caffeine, t-shirts, fun stuff.
> http://thinkgeek.com/sf
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user
>

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.comm


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to