xml Encoder does not declare namespaces and prefixes indirectly imported
------------------------------------------------------------------------

                 Key: GEOT-1276
                 URL: http://jira.codehaus.org/browse/GEOT-1276
             Project: GeoTools
          Issue Type: Bug
          Components: new modules
    Affects Versions: 2.4.M2
            Reporter: Gabriel Roldán
            Assignee: Justin Deoliveira
             Fix For: 2.4.0


{{org.geotools.xml.Encoder}} does not sets the prefix mapping for a namespace 
indirectly referenced by the main schema.
Everything works fine as long as a binding exists in the Configuration for any 
given schema. The problem is when a schema is indirectly referenced (for 
example, one of the schemas imports another one, very common in application 
schemas).

i.e. 
a.xsd imports b.xsd
b.xsd imports c.xsd

(using a, b, and c as the respective ns prefixes for a.xsd, b.xsd and c.xsd)
a.xsd declares b: prefix
b.xsd declares c: prefix

The encoder writes out a: and b:, but not c:, resulting in c's element
being encoded as <null:cElement/>

If c: is declared in a.xsd the encoder writes out the c: prefix mapping, though.



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

       

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to