This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 78676 - "Profile" Schema reflecting a specific conforming instance document
Summary: "Profile" Schema reflecting a specific conforming instance document
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-20 20:48 UTC by bugbridge
Modified: 2006-06-24 02:41 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2006-06-20 20:48:43 UTC
Original status: 3-Accepted; Suggested Status: NEW

Original submitter: nvrijn

Description:
Create a "Profile" Schema reflecting a specific conforming instance document

  This is the 2nd of 3 RFEs filed to support the needs of schema librarians.  

  Imagine a schema including the top level schema in a nested hierarchy of
global type definitions as before, where there are a LOT of optional fields and
"choices".

  Now, given that schema, and given a specific XML instance document, have a
tool which AUTOMATICALLY flattens as before and then AUTOMATICALLY creates a
compliant "profile" of that schema that EXACTLY matches the instance document.

  Specifically:
  
  	If an optional element is in the document, the profile has it mandatory
  	Otherwise, the element is not in the profile schema at all
  	
  	If a choice is present in the schema, collapse it in the profile
  	schema to only the actual choice contained in the instance document.
  	
  There may be other collapses possible.  Goal is to allow greater
interoperability between applications conforming to a standard schema, by
providing a much "tighter" profile schema equivalent, which reflects the various
trading partner agreements the communicating entities have agreed to.

  Each instance document that is conformant to the profile schema is conformant
to the original ... but the reverse is certainly not the case.  A critical
validation tool.  Today all this is done by hand ... again and again and again.
Comment 1 htt 2006-06-20 22:13:52 UTC
As mentioned in the Description, this is the 2nd of 3 enhancements filed to
support the needs of "schema librarian."  The other two enhancements are issue
78628 and issue 78677.