<div dir="ltr">Hi guys,<br><br>I am trying to use nested XSDs in my resource-type, but it keeps failing with "invalid XML" error. The XSDs validate properly, so it is not the XSD.<div><br></div><div>The container is as follows:-<br><br><div><xsd:schema xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" elementFormDefault="qualified"></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span><xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span><xsd:include schemaLocation="opencms://system/modules/elixir.opencms/schemas/NestedDefault.xsd"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><xsd:include schemaLocation="opencms://system/modules/elixir.opencms/schemas/Data.xsd"/></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><xsd:element name="NestedContainers" type="OpenCmsNestedContainers"/></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span><xsd:complexType name="OpenCmsNestedContainers"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">               </span><xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span><xsd:element name="NestedContainer" type="OpenCmsNestedContainer" minOccurs="0" maxOccurs="unbounded"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">          </span></xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">  </span></xsd:complexType></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><xsd:complexType name="OpenCmsNestedContainer"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span><xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span><xsd:element name="Properties" type="OpenCmsNestedDefault" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span><xsd:element name="Data" type="OpenCmsElxData" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">            </span></xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">          </span><xsd:attribute name="language" type="OpenCmsLocale" use="required"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span></xsd:complexType></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><xsd:annotation></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">         </span><xsd:appinfo></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                    </span><mappings></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                               </span><mapping element="Properties" mapto="property:Properties" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                         </span><mapping element="Data" mapto="property:Data" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                     </span></mappings></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span><validationrules/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                       </span><relations/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                     </span><searchsettings containerPageOnly="true"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">             </span></xsd:appinfo></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span></xsd:annotation></div><div><br></div><div></xsd:schema><br><br>NestedDefault is:-</div><div><br></div><div><div><xsd:schema xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" elementFormDefault="qualified"></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">    </span><xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><xsd:element name="NestedDefaults" type="OpenCmsNestedDefaults"/></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span><xsd:complexType name="OpenCmsNestedDefaults"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">         </span><xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span><xsd:element name="NestedDefault" type="OpenCmsNestedDefault" minOccurs="0" maxOccurs="unbounded"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span></xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">  </span></xsd:complexType></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><xsd:complexType name="OpenCmsNestedDefault"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">          </span><xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span><xsd:element name="Title" type="OpenCmsString" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                    </span><xsd:element name="Text" type="OpenCmsHtml" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">               </span></xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">          </span><xsd:attribute name="language" type="OpenCmsLocale" use="required"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span></xsd:complexType></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><xsd:annotation></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">         </span><xsd:appinfo></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                    </span><mappings></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                               </span><mapping element="Title" mapto="property:Title" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                           </span><mapping element="Title" mapto="urlName" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                  </span></mappings></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span><defaults></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                               </span><default element="Title" value="Add a new title here" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                             </span><default element="Text" value="Add your text" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                     </span></defaults></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span><layouts></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                </span><layout element="Text" widget="HtmlWidget" configuration="downloadgallery" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span></layouts></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                       </span><validationrules/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                       </span><relations/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                     </span><searchsettings containerPageOnly="true"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">             </span></xsd:appinfo></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span></xsd:annotation></div><div><br></div><div></xsd:schema></div></div><div><br></div><div>Data is:-<br><br><div><xsd:schema xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" elementFormDefault="qualified"></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><xsd:element name="ElxDatas" type="OpenCmsElxDatas"/></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span><xsd:complexType name="OpenCmsElxData"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span><xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span><xsd:element name="ElxDatas" type="OpenCmsElxData" minOccurs="0" maxOccurs="unbounded"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">         </span></xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">  </span></xsd:complexType></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><xsd:complexType name="OpenCmsElxData"></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span><xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span><xsd:element name="Value" type="OpenCmsString"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">             </span></xsd:sequence></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">          </span><xsd:attribute name="language" type="OpenCmsLocale" use="required"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span></xsd:complexType></div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><xsd:annotation></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">         </span><xsd:appinfo></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                    </span><mappings></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                               </span><mapping element="Value" mapto="property:Value" /></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span></mappings></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span><defaults></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                               </span><default element="Value" value="Series,Category,Value\nSeries1,Cat1,10\nSeries1,Cat2,20\nSeries2,Cat1,40\nSeries2,Cat2,80" />--></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                  </span></defaults></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span><layouts></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                </span><layout element="Value" widget="TextareaWidget" configuration="20"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                       </span></layouts></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                       </span><validationrules/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                       </span><relations/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                     </span><searchsettings containerPageOnly="true"/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">             </span></xsd:appinfo></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span></xsd:annotation></div><div><br></div><div></xsd:schema><br><br><br>What is the invalid XML in any of these?<br><br>Regards,</div></div><div>Clement</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 1, 2017 at 6:00 PM,  <span dir="ltr"><<a href="mailto:opencms-dev-request@opencms.org" target="_blank">opencms-dev-request@opencms.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send opencms-dev mailing list submissions to<br>
        <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-<wbr>bin/mailman/listinfo/opencms-<wbr>dev</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:opencms-dev-request@opencms.org">opencms-dev-request@opencms.<wbr>org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:opencms-dev-owner@opencms.org">opencms-dev-owner@opencms.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of opencms-dev digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1.  TinyMCE filtering (Sandrine Prousteau)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Fri, 31 Mar 2017 12:06:43 +0000<br>
From: Sandrine Prousteau <<a href="mailto:s.prousteau@eurelis.com">s.prousteau@eurelis.com</a>><br>
To: The OpenCms mailing list <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>><br>
Subject: [opencms-dev]  TinyMCE filtering<br>
Message-ID:<br>
        <<a href="mailto:HE1PR0601MB2602674612AA686714C8CA28F7370@HE1PR0601MB2602.eurprd06.prod.outlook.com">HE1PR0601MB2602674612AA686714<wbr>C8CA28F7370@HE1PR0601MB2602.<wbr>eurprd06.prod.outlook.com</a>><br>
<br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi all,<br>
<br>
<br>
<br>
We have a little issue on our xmlcontent editions : on HtmlWidget fields, running with TinyMCE editor, when our user is pasting from a *.docx a piece of text containing unordered list of percent values with some bold contents, some contents are cut. It's done with simple "paste", not "paste as text".<br>
<br>
Example :<br>
<br>
This value (numerics are in bold)<br>
<br>
+12.5%<br>
<br>
Is turned to<br>
<br>
+5%<br>
<br>
<br>
<br>
I have tried it on inline TinyMCE codepen <a href="http://codepen.io/tinymce/pen/YydQrY" rel="noreferrer" target="_blank">http://codepen.io/tinymce/pen/<wbr>YydQrY</a>, and I found that with the options "paste_enable_default_filters: false" set in the .init(), the numerics are not cut (but all .docx styles are kept obviously).<br>
<br>
<br>
<br>
Is there someone who had this issue, and found a solution?<br>
<br>
Is there someone who knows how TinyMCE filters work?<br>
<br>
<br>
<br>
OpenCms 9.5.2.x / Windows 10 / Chrome<br>
<br>
<br>
<br>
Thanks for help.<br>
<br>
<br>
<br>
Sandrine<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20170331/f34d4478/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.opencms.org/<wbr>pipermail/opencms-dev/<wbr>attachments/20170331/f34d4478/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
______________________________<wbr>_________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-<wbr>bin/mailman/listinfo/opencms-<wbr>dev</a><br>
<br>
End of opencms-dev Digest, Vol 282, Issue 6<br>
******************************<wbr>*************<br>
</blockquote></div><br></div></div></div>