Hi,

I have a schema output.xsd, that has the following element declaration:

        <xs:element name="href">
                <xs:complexType mixed="false">
                        <xs:attribute ref="clink:type"/>
                        <xs:attribute ref="clink:title"/>
                </xs:complexType>
        </xs:element>

output.xsd declares clink: namespace prefix, and imports clink.xsd. 

clink.xsd looks like following:
        <xs:attribute name="type" type="xs:string"/>
        <xs:attribute name="title" type="xs:string"/>

When I use the source generator to generate source for output.xsd, source 
generator resolves the attribute references, and declares type and title 
as strings straightway. It gets rid of the clink namespace entirely.

Naturally, when I marshall an output object, it gives me the following 
output

<href type="blah" title="blah">

whereas the output I want is
<href clink:type="blah" clink:title="blah">

I tried setNameSpaceMapping for Marshaller object, but didn't work.

Please suggest a solution.

thanx
Sandeep

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to