OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

ubl message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [ubl] PRD3 suggestion: sample instances with unconventional namespace prefixes

>>2) by relying on automatic prefixes (n1, n2, nx, ...) generated by tools
>>it is really risky.

>Oh?  It shouldn't be risky in any manner whatsoever.  But I'm not
>sure what you mean by "relying on automatic prefixes".

What I meant to say is that using JAXB the use of automatic generated
prefixes is discouraged if an xsd:Any element is involved in the

Let's say we have a SOAP envelope (outer) and a payload (inner):

If I put a payload with a default namespace inside an xsd:Any element with
processing "lax" or even "skip", JAXB will add namespaces to the payload
using generated prefixes (n1, n2,...) which is really undesired.

This bad behaviour produces even duplicated namespace prefixes (same
prefix with different namespace uri) if either the SOAP envelope and the
payload have been marshalled with JAXB and by relying on generated

Under this situation it takes to tell JAXB using specific namespace prefixes.

This is just to say that generated prefixes are ok, but their usage is
just providing confusion to both humans and machines :)



* JAVEST by Roberto Cisternino
* Document Engineering Services Ltd. - Alliance Member
* UBL Italian Localization SubCommittee (ITLSC), co-Chair
* UBL Online Community editorial board member (ubl.xml.org)
* Italian UBL Advisor

  Roberto Cisternino

  mobile: +39 328 2148123
  skype:  roberto.cisternino.ubl-itlsc

[UBL Technical Committee]

[UBL Online Community]

[UBL International Conferences]

[UBL Italian Localization Subcommittee]

[Iniziativa divulgativa UBL Italia]

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]