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 88717 - Add "inheritance" matching for local DTD or XML Schema references.
Summary: Add "inheritance" matching for local DTD or XML Schema references.
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Validation (show other bugs)
Version: 5.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-06 16:44 UTC by lshaner
Modified: 2006-11-06 16:44 UTC (History)
0 users

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 lshaner 2006-11-06 16:44:32 UTC
Say I have a "diverse" topology in my CVS source tree:
 file:/Users/leon/Documents/MyCode/Development/MyProjectABC/com.myorg.tools/tools/ContainerCT.xml
file:/Users/leon/Documents/MyCode/Development/MyProjectABC/com.myorg.uber/uberUI/UberCodeCT.xml

Say both ContainerCT.xml and UberCodeCT.xml rely on an XML Schema,
component.xsd, that is to be "shared" at the MyProjectABC level.

Currently I must define a local User Catalog for each file, pointing to the
shared  component.xsd.  That means every new file in my project that references
the component.xsd will require that I create a local User Catalog entry pointing
to the shared component.xsd.

I would prefer a wildcard / pattern matching approach such that a single local
User Catalog reference such as:

  file:/Users/leon/Documents/MyCode/Development/MyProjectABC/*/component.xsd

Pointing to the shared component.xsd at:

  file:/Users/leon/Documents/MyCode/Development/MyProjectABC_Schema/component.xsd

Would result in matches for component.xsd for all files below
file:/Users/leon/Documents/MyCode/Development/MyProjectABC/*

This alters the current behavior such that if the following file is not found:

  
file:/Users/leon/Documents/MyCode/Development/MyProjectABC/com.myorg.tools/tools/component.xsd


while validating this file:
  
file:/Users/leon/Documents/MyCode/Development/MyProjectABC/com.myorg.tools/tools/ContainerCT.xml,

then this "shared" file would be used (per wildcard) to satisfy the
component.xsd reference:

file:/Users/leon/Documents/MyCode/Development/MyProjectABC_Schema/component.xsd

The above change would save a tremendous amount of time spent configuring
multiple XSD "aliases" -- it would instead allow a project level XSD "alias" for
finding schema definitions.