[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Commented: (XMLBEANS-178) Better control of namespace
From:       "Cezar Andrei (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2007-12-19 20:50:48
Message-ID: 10051059.1198097448797.JavaMail.jira () brutus
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/XMLBEANS-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553488 \
] 

Cezar Andrei commented on XMLBEANS-178:
---------------------------------------

Factory.newInstance(xopts) shout look at suggested prefixes map and use the right \
prefix for newly created QNames. 

> Better control of namespace prefixes used
> -----------------------------------------
> 
> Key: XMLBEANS-178
> URL: https://issues.apache.org/jira/browse/XMLBEANS-178
> Project: XMLBeans
> Issue Type: Improvement
> Components: Cursor
> Reporter: Radu Preotiuc-Pietro
> Fix For: TBD
> 
> 
> There have been a number of messages asking for a better control of namespace \
> declarations inserted by XmlBeans when saving documents, than offered by \
> XmlOptions.setSaveSuggestedPrefixes(). One issue is the use of xsi:type: when \
> XmlBeans needs to insert an xsi:type attribute it needs to pick a prefix for the \
> value of xsi:type and at that point the setSaveSuggestedPrefixes() are not \
> available. Once the prefix is part of the attribute value, it can no longer be \
> changed (unless directly by user) so the prefix declaration will end up in the \
> final document, which may be undesireable. One other thing that was suggested was \
> to pick the default prefix more  intelligently, for example use the prefix used in \
> the Schema to declare components in that namespace, but that's trickier to do (you \
> can declare QNames without using prefixes) and also involves changes in the binary \
> format.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic