[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Got a program that generates a list of assertions aboutan

  • From: Peter Hunsberger <peter.hunsberger@gmail.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Fri, 13 Nov 2015 16:29:17 -0600

Re:  Got a program that generates a list of assertions aboutan
Not quite, but many years ago I mentioned on this list that we generated schema's on demand for a system that I had designed.  We had started building that system before XML schema came into existence (well at least before it was finalized) and all the screens on it were generated from a metadata store.  All fields were strongly typed and Schematron was used for complex validation (cross dependencies etc.)  If an XML schema was needed for data exchange with some portion of that system or for documentation it was possible to export the metadata as XML and then use a XSLT to produce the XSD.  The Schematron was also dynamically produced from the metadata and xPaths that were stored with the metadata.  However the Schematron wasn't exposed anywhere, just used at run time...

Peter Hunsberger

On Fri, Nov 13, 2015 at 3:48 PM, Costello, Roger L. <costello@mitre.org> wrote:
Hi Folks,

Have you written a program to generate a list of assertions about an XSD?

Example: an XSD with targetNamespace = http://www.books.org has this element declaration (parent is Book):

        <element name="Author" type="string" maxOccurs="unbounded" />

I envision the program generating a list of assertions like this:

        (Author kind element)
        (Author targetNamespace http://www.books.org)
        (Author type string)
        (Author minOccurs 1)
        (Author maxOccurs unbounded)
        (Author default none)
        (Author fixed none)
        (Author parent Book)

Anybody written a program to do this kind of thing?

/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.