cancel
Showing results for 
Search instead for 
Did you mean: 

Creating document types from XML Schema

russtrotter_
Confirmed Champ
Confirmed Champ

hello,

Anyone out there have experience leveraging Nuxeo's various XML schema referencing/importing mechanisms? Specifically:

  • I have my own XSD file that contains many complexTypes and elements. i want to make a Nuxeo 'Document' that either is a type of one of the types in that file or contains elements of types in that file.
  • In this scenario, does one lose the ability to use Nuxeo Studio create/edit/view forms? I get the feeling unless you use the Nuxeo Studio schema editor, you're outta luck.

thanks

1 ACCEPTED ANSWER

russtrotter_
Confirmed Champ
Confirmed Champ

yay! Answering my own question 🙂

In experimentation, I had some semantic issues with my original external schema. Notably, it was an "empty" element with only xs:attribute declarations, e.g.:

<xs:element name="myelem"> <xs:attribute name="foo" type="xs:string" /> <xs:atribrute name="foo" type="xs:string" /> </xs:element>

Changing this schema to the following worked:

<xs:element name="myelem"> <xs:sequence> <xs:element name="foo" type="xs:string" /> <xs:element name="bar" type="xs:string" /> </xs:sequence> </xs:element>

View answer in original post

2 REPLIES 2

russtrotter_
Confirmed Champ
Confirmed Champ

yay! Answering my own question 🙂

In experimentation, I had some semantic issues with my original external schema. Notably, it was an "empty" element with only xs:attribute declarations, e.g.:

<xs:element name="myelem"> <xs:attribute name="foo" type="xs:string" /> <xs:atribrute name="foo" type="xs:string" /> </xs:element>

Changing this schema to the following worked:

<xs:element name="myelem"> <xs:sequence> <xs:element name="foo" type="xs:string" /> <xs:element name="bar" type="xs:string" /> </xs:sequence> </xs:element>

anima_sana
Champ on-the-rise
Champ on-the-rise

Hi russtrotter, where in the nuxeo install do the custom created xsd files go? I'm only finding the temporary copies in the directory tree.

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.