Hi,

I have a question regarding missing namespace prefixes for
attributes.

Here is my marshalled XML

<?xml version="1.0" encoding="UTF-8"?>
<sv:property xmlns:sv="http://www.jcp.org/jcr/sv/1.0";
    name="jcr:primaryType" type="Name">
    <sv:value>mgnl:contentNode</sv:value>
</sv:property>


and my mapping file

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
"http://castor.org/mapping.dtd";>
<mapping>
        <class name="magnolia.JcrProperty">
        <map-to xml="property" ns-prefix="sv"
ns-uri="http://www.jcp.org/jcr/sv/1.0"; />
        <field name="name" type="java.lang.String">
            <bind-xml QName-prefix="sv" name="name" node="attribute" />
        </field>
        <field name="type" type="java.lang.String">
            <bind-xml QName-prefix="sv" name="type" node="attribute" />
        </field>
        <field name="value" type="java.lang.String">
            <bind-xml QName-prefix="sv" name="value" />
        </field>
        </class>
</mapping>

What do I have to do. that then prefix "sv" is added to the name and
type attributes?

The importing side needs these prefixes.

Thanks
Stefan



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to