[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Pretty Print for schema's
Title: RE: Pretty Print for schema's Lynda, Welcome to XML! Since you're referencing design and interface documents, you may want to know about the "documentation" element in W3C Schema (XS3P may already cover this, so I apologize if this is duplicate information). Basically, one can add documentation to a schema that describes the purpose of each element (i.e. you can add a "documentation" element for each element in the schema), its relationship to a database table/field, or anything else you see fit. For example (note the third line): <xsd:element name = "AllowanceCode" type = "AllowanceOrChargeCodeType"/>
This is from a schema that I wrote as a representation of an EDI transaction. In this example, the "documentation" element indicates the section of the EDI transaction (Header), the loop (SAC loop), and the element (SAC02). It could just as easily have indicated a table and field name that the element is associated with (i.e. for the origin or destination of its data). The beauty of this is that because the "documentation" and "annotation" elements above are themselves XML (and not comments delimited by a certain character as in classic programming languages), one can write a style sheet that takes the schema as input and produces - for example - a cross-reference report of the documentation information and the element name (to answer the question "what EDI element does this schema element map to?"). Hope that helps. Joe Chiusano
> **************************************************************************
-----Original Message-----
Here is the tasking I was given: "What we need in the ability to transform the XML Schemas that we are
The idea is to generate something human readable for inclusion in a design
The XS3P looks interesting. I'm going to look into that some more. Any
Thanks, Lynda Carey -----Original Message-----
Do you mean the generation of HTML documentation like XS3P[0] or just some
-----Original Message-----
Has anybody attempted to transform an XML Schema into something
Lynda Carey -----------------------------------------------------------------
The list archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or unsubscribe from this list use the subscription
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|