- Dennis
Cameron Taggart wrote:
How do I map certain attributes to a different namespace. Here is an XML element that I'm wishing to be able to map to. It is apart of this example document:
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xml
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://www.university.edu/legends/atlas.gif" />
Currently, I have xsd2jibx producing this mapping for that element:
<mapping name="OnlineResource" class="net.opengis.wms.OnlineResource">
<namespace uri="http://www.opengis.net/wms" prefix="wms" default="elements"/>
<value style="attribute" name="type" field="type" usage="optional"/>
<value style="attribute" name="href" field="href" usage="optional"/>
<value style="attribute" name="role" field="role" usage="optional"/>
<value style="attribute" name="arcrole" field="arcrole" usage="optional"/>
<value style="attribute" name="title" field="title" usage="optional"/>
<value style="attribute" name="show" field="show" usage="optional"/>
<value style="attribute" name="actuate" field="actuate" usage="optional"/>
</mapping>
All of the attributes need to be in this namespace: http://www.w3.org/1999/xlink.
Still hacking away at the xsd2jibx examples,
Cameron
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users
