This probably fails at the XML parsing step (before that JR has even a chance to do anything with it) because it's not valid XML.
Try adding the namespace for the prefix jcr and it will work:

<blogEntry someAttribute="ss" jcr:mixinTypes="mix:referenceable"
        xmlns:jcr="http://www.jcp.org/jcr/1.0";>
        <comment title=""/>
</blogEntry>

Alessandro


On Nov 18, 2008, at 9:35 PM, Edgar Merino wrote:

Hello,

I'm trying to add the jcr property jcr:mixinTypes to a document view XML, however it always fails with the following exception:

The prefix "jcr" for attribute "jcr:mixinTypes" associated with an element type "blogEntry" is not bound.: The prefix "jcr" for attribute "jcr:mixinTypes" associated with an element type "blogEntry" is not bound.


This is an example of an xml I'm trying to import with this:

<blogEntry someAttribute="ss" jcr:mixinTypes="mix:referenceable">
 <comment title=""/>
</blogEntry>

What am I doing wrong? thank you,

Regards
Edgar Merino

Reply via email to