Allow prefix wildcards in xsdconfig namespace to package mappings
-----------------------------------------------------------------

         Key: XMLBEANS-159
         URL: http://issues.apache.org/jira/browse/XMLBEANS-159
     Project: XMLBeans
        Type: Improvement
  Components: Compiler  
    Versions: TBD    
    Reporter: Niels Ull Harremoës
    Priority: Minor


We have a large number of namespaces, all with a common prefix, e.g. 
http://gateway.company.com/public/resellers/schemas/2005/05/19/

To map the elements to reasonable package names (for low values of reasonable), 
I must put the following in the .xsdconfig file: 
    <xb:namespace 
uri="http://gateway.company.com/public/resellers/schemas/2005/05/19/person";>
        <xb:package>gateway.reseller.v1.person</xb:package>
    </xb:namespace>
    <xb:namespace 
uri="http://gateway.company.com/public/resellers/schemas/2005/05/19/product";>
        <xb:package>gateway.reseller.v1.product</xb:package>
    </xb:namespace>
    <xb:namespace 
uri="http://gateway.company.com/public/resellers/schemas/2005/05/19/purchase";>
        <xb:package>gateway.reseller.v1.purchase</xb:package>
    </xb:namespace>

and so on. It would be very convenient if I could just write

    <xb:namespace 
uri="http://gateway.company.com/public/resellers/schemas/2005/05/19/";>
        <xb:package>gateway.reseller.v1</xb:package>
    </xb:namespace>

or something like that - possibly with an attribute applyToSubscpaces="true" 
applied to the namespace.

To make this less confusing, any conflicts between declarations could be 
handled the simple way - by just reporting an error.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to