You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Dave Smith (JIRA)" <xm...@xml.apache.org> on 2006/07/04 16:15:36 UTC

[jira] Updated: (XMLBEANS-278) Patch for ignoring Pre/Post and Interface Extensions within an xsdconfig

     [ http://issues.apache.org/jira/browse/XMLBEANS-278?page=all ]

Dave Smith updated XMLBEANS-278:
--------------------------------

    Attachment: patch.003

Here is my patch as described in the issue

> Patch for ignoring Pre/Post and Interface Extensions within an xsdconfig
> ------------------------------------------------------------------------
>
>          Key: XMLBEANS-278
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-278
>      Project: XMLBeans
>         Type: New Feature

>   Components: Tools
>     Versions: Version 2.1, Version 2.2
>  Environment: Tested w/ Sun JDK 1.5.0.06, 64-bit on Linux
>     Reporter: Dave Smith
>      Fix For: Version 2.1, Version 2.2
>  Attachments: patch.003
>
> I use the Extension Interfaces feature, per http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature. One of the not so great aspects of this approach is that you currently need to have two individual .xsdconfig files for your project -- one that has JUST the namespace info and one that has both namespace AND extension info. To simplify this, I have created a patch for SchemaCompiler and the XMLBean task (tested on 2.1 and 2.2) that  adds a new parameter ("noExt") which causes the compiler to filter out any extensions if the flag is set. The end result is that you can use a single .xsdconfig file and just set the flag for the first compilation/generation pass so that interfaces declarations are ignored.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org