Hi,

On 7/8/06, Paul en/of Alexandra <[EMAIL PROTECTED]> wrote:
But up to now i haven't found a way to specify the right jcr property
type of an xml element. It there a standard way to do this?

You can specify the node type of an imported element as the
jcr:primaryType attribute:

   <Person xmlns:jcr="http://www.jcp.org/jcr/1.0"; jcr:primaryType="Person"
                name="a Name" address="an Address" number="3"/>

I would suggest using an XSL transformation from your original XML
document to the above document view snippet (or better yet, a system
view snippet that is better suited fo accurate import).

BR,

Jukka Zitting

--
Yukatan - http://yukatan.fi/ - [EMAIL PROTECTED]
Software craftsmanship, JCR consulting, and Java development

Reply via email to