geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <>
Subject Re: [Fwd: Re: rid of all ns prefixes]
Date Tue, 11 Oct 2005 21:39:57 GMT

On Oct 11, 2005, at 12:07 PM, Sachin Patel wrote:

> Is the following statement true??

not really.
> How is geronimo being able to process deployment plans without 
> declaring all namespaces in a plan and qualifying the elements?

well, you have surely seen that there is always a top level schema at 
least.  I use some xmlbeans XmlCursor manipulation to change the 
namespace of recognized subelements that are supposed to be in other 
namespaces before loading the document into XmlObjects.  By the time 
the XmlObjects are constructed the document is fully valid according to 
the plan schemas.  All this namespace conversion code is in 
SchemaConversionUtils. (there is some other conversion code in a couple 
jetty/tomcat builder classes, but lets talk about that later).  I'm a 
bit unclear as to whether the eclipse stuff you are working on is 
supposed to be able to edit hand written plans or is only supposed to 
be able to generate new plans.  In the latter  case, you can just 
generate plans including the correct namespaces.  In the former case, 
you should call the appropriate methods in SchemaConversionUtils to set 
the correct namespaces before trying to import into your tool.  Most 
likely we will need to change things a bit so this can be done 

david jencks

> Sachin.
> -------- Original Message --------
> Subject: Re: rid of all ns prefixes
> Date: Tue, 11 Oct 2005 12:56:09 -0600
> From: Dave Carlson <>
> Organization:
> Newsgroups:
> References: <digsvf$1v5$> 
> <digtfs$2n8$> <digu6l$3ml$>
> The XML spec does not require a schema for well-formed XML documents.  
> From
> your description, it sounds like Geronimo has written a custom 
> application
> that "knows" how to load the XML stream without reference to any 
> schemas.
> Unfortunately, it is impossible to use a general purpose modeling tool 
> like
> EMF (or any other Java-binding framework) without well-defined schemas 
> and
> their required namespaces/prefixes.
> "Sachin Patel" <> wrote in message
> news:digu6l$3ml$
>> What I'm generating is the server specific deployment descriptors for 
>> Apache Geronimo.  I see what you are saying, and I'm not sure exactly 
>> how the server is able to load the plans without the namespace 
>> declarations, but when creating these plans for Geronimo, the 
>> elements without being qualified are able to be loaded and processed 
>> by the server.  Will post on their dev list on how exactly they are 
>> accomplishing this, but I would like to take those existing plans 
>> from there "samples" which contain contain no qualified elements and 
>> be able to load and parse them with my EMF model.
>> So its more of a compatibility reason for which I need to be able to 
>> do this.  The sample applications in geronimo should be able to be 
>> imported into WTP and be processed my EMF model which are based on 
>> the same exact schemas.  But the xml files in these sample 
>> applications do not contain fully qualified elements.

View raw message