Return-Path: Delivered-To: apmail-xml-xmlbeans-dev-archive@xml.apache.org Received: (qmail 40320 invoked by uid 500); 19 Aug 2003 23:40:41 -0000 Mailing-List: contact xmlbeans-dev-help@xml.apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: xmlbeans-dev@xml.apache.org Delivered-To: mailing list xmlbeans-dev@xml.apache.org Received: (qmail 40306 invoked from network); 19 Aug 2003 23:40:41 -0000 Date: Tue, 19 Aug 2003 23:40:35 +0100 Subject: Re: [apache-xmlbeans] breaking a schema namespace into packages via xsdconfig? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: James Strachan To: xmlbeans-dev@xml.apache.org Content-Transfer-Encoding: 7bit In-Reply-To: <006401c36691$de8512e0$0ba8a8c0@lightbox> Message-Id: <262CD3B2-D296-11D7-839B-000A959D0312@yahoo.co.uk> X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Tuesday, August 19, 2003, at 09:38 pm, David Bau wrote: > If you supply a fully-qualified name in your .xsdconfig file as > > > > Then when generating typeName into a class, things should work - you > should > get your requested package. Currently the config works purely by > allowing > you to override the suggested Java translation for a QName for all > situations where the QNames is used, so it's probably not fine-grained > enough when there is QName aliasing going on (e.g., elts vs types vs > local > elts etc). A few folks have asked for more fine-grained .xsdconfig > controls, and it seems like a good area for development. It'd be really nice to be able to say 'for all QNames in foo.xsd use package org.apache.foo' - then I could use separate packages for each part of the J2EE schema. I could auto-generate the bindings of QNames -> package via XSLT on the schema files I guess. What would help is if the XSLT didn't have to do QName -> Java class name munging. i.e. if we could do something like Then the XSLT wouldn't have to worry about doing the typeName -> className conversion. Though being able to bind schema files to packages directly in the xsdconfig file would really rock. James ------- http://radio.weblogs.com/0112098/ - --------------------------------------------------------------------- To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/