<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how can my customized schema inherit properties of file.xsd? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-my-customized-schema-inherit-properties-of-file-xsd/m-p/321150#M8151</link>
    <description>&lt;P&gt;You can use the &lt;STRONG&gt;xs:include&lt;/STRONG&gt; element to have multiple schemas (provided you use the same targetNamespace - otherwise you'd have to use &lt;EM&gt;import&lt;/EM&gt; instead of &lt;EM&gt;include&lt;/EM&gt;). Here is an example where the core-types.xsd schema is included inside Nuxeo's file.xsd schema:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;xs:schema targetNamespace="http://www.nuxeo.org/ecm/schemas/file/"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:nxs="http://www.nuxeo.org/ecm/schemas/file/"&amp;gt;

  &amp;lt;xs:include schemaLocation="core-types.xsd" /&amp;gt;

  &amp;lt;xs:element name="filename" type="xs:string" /&amp;gt;
  &amp;lt;xs:element name="content" type="nxs:content" /&amp;gt;

&amp;lt;/xs:schema&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 02 Jul 2012 16:38:07 GMT</pubDate>
    <dc:creator>Wojciech_Sulejm</dc:creator>
    <dc:date>2012-07-02T16:38:07Z</dc:date>
    <item>
      <title>how can my customized schema inherit properties of file.xsd?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-my-customized-schema-inherit-properties-of-file-xsd/m-p/321149#M8150</link>
      <description>&lt;P&gt;I am using "Blob.Attach" of rest api to attach blob to the document but i get exception from the Nuxeo automation client as it search's for the property "file:content" , which actually comes from file.xsd schema whereas i am using newFile.xsd schema to create the document.&lt;/P&gt;
&lt;P&gt;so how do i store the blob ?
is it possible that my customized document type schema i.e newFile.xsd can inherit the properties of file.xsd?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2012 12:33:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-my-customized-schema-inherit-properties-of-file-xsd/m-p/321149#M8150</guid>
      <dc:creator>catherine_</dc:creator>
      <dc:date>2012-07-02T12:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: how can my customized schema inherit properties of file.xsd?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-my-customized-schema-inherit-properties-of-file-xsd/m-p/321150#M8151</link>
      <description>&lt;P&gt;You can use the &lt;STRONG&gt;xs:include&lt;/STRONG&gt; element to have multiple schemas (provided you use the same targetNamespace - otherwise you'd have to use &lt;EM&gt;import&lt;/EM&gt; instead of &lt;EM&gt;include&lt;/EM&gt;). Here is an example where the core-types.xsd schema is included inside Nuxeo's file.xsd schema:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;xs:schema targetNamespace="http://www.nuxeo.org/ecm/schemas/file/"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:nxs="http://www.nuxeo.org/ecm/schemas/file/"&amp;gt;

  &amp;lt;xs:include schemaLocation="core-types.xsd" /&amp;gt;

  &amp;lt;xs:element name="filename" type="xs:string" /&amp;gt;
  &amp;lt;xs:element name="content" type="nxs:content" /&amp;gt;

&amp;lt;/xs:schema&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Jul 2012 16:38:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-my-customized-schema-inherit-properties-of-file-xsd/m-p/321150#M8151</guid>
      <dc:creator>Wojciech_Sulejm</dc:creator>
      <dc:date>2012-07-02T16:38:07Z</dc:date>
    </item>
  </channel>
</rss>

