[xsd-users] namespace mapping

Boris Kolpackov boris at codesynthesis.com
Thu Nov 4 10:57:14 EDT 2010


Hi Bill,

Wheeler, Bill NPO <bill.npo.wheeler at intel.com> writes:

>  http://some_url_name.com/ns1/ns2/2006/ns3 so that the C++ namespace 
>  mapping will be: ns1::ns2::YR06::ns3

For Linux/UNIX:

--namespace-regex '#.* .*/([^/]+)/([^/]+)/\d\d(\d\d)/([^/]+)#$1::$2::YR$3::$4#'

For Windows (the same regex, just quoted with " instead of '):

--namespace-regex "#.* .*/([^/]+)/([^/]+)/\d\d(\d\d)/([^/]+)#$1::$2::YR$3::$4#"

The --*-regex-trace options can be useful when debugging regex in XSD.

Boris



More information about the xsd-users mailing list