jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edgar Merino <donvo...@gmail.com>
Subject Re: Adding jcr:mixinTypes="mix:referenciable" to document view xml
Date Wed, 19 Nov 2008 04:51:43 GMT
Thank you Alessandro, worked perfectly.

Edgar Merino


Alessandro Bologna escribió:
> 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
>
>


Mime
View raw message