[opencms-dev] Cannot Include Nested XSDs in OpenCMS 10.5.1 (Lorenz Lammersdorf)

Lorenz Lammersdorf lorenz.lammersdorf at kernbrand.ch
Mon Apr 3 12:59:35 CEST 2017


this does not fit:


<xsd:element name="ElxDatas" type="OpenCmsElxDatas"/>
<xsd:complexType name="OpenCmsElxData">


should be:


<xsd:element name="ElxDatas" type="OpenCmsElxDatas"/>
<xsd:complexType name="OpenCmsElxDatas">



i assume you want to limit the occurance of

<xsd:element name="Data" type="OpenCmsElxData" />

?


thi s is automatically limited to 1 as long as you're not using the minOccurs / maxOccurs parameters.


regards

lorenz

________________________________
Von: opencms-dev-bounces at opencms.org <opencms-dev-bounces at opencms.org> im Auftrag von Clement Wee <clement at elixirtech.com>
Gesendet: Montag, 3. April 2017 12:45:15
An: opencms-dev at opencms.org
Betreff: Re: [opencms-dev] Cannot Include Nested XSDs in OpenCMS 10.5.1 (Lorenz Lammersdorf)

Hi Lorenz,

After removing the errant comment, I get this error:

03 Apr 2017 18:19:41,663 ERROR [ncms.loader.CmsResourceManager: 618] Error in getAllowedContextMap, schema=/system/modules/elixir.opencms/schemas/NestedContainer.xsd, type=NestedContainer, Invalid OpenCms content definition XML schema structure:
Element "/xsd:schema/xsd:complexType[1]/xsd:sequence/xsd:element" attribute "type" value must be "OpenCmsDatas" not "OpenCmsData".
org.opencms.xml.CmsXmlException: Invalid OpenCms content definition XML schema structure:
Element "/xsd:schema/xsd:complexType[1]/xsd:sequence/xsd:element" attribute "type" value must be "OpenCmsDatas" not "OpenCmsData".

But I do want just a single data element, not multiple data elements. Can I get that and still pass this peculiar validation?

Regards,
Clement

On Mon, Apr 3, 2017 at 6:00 PM, <opencms-dev-request at opencms.org<mailto:opencms-dev-request at opencms.org>> wrote:
Send opencms-dev mailing list submissions to
        opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
or, via email, send a message with subject or body 'help' to
        opencms-dev-request at opencms.org<mailto:opencms-dev-request at opencms.org>

You can reach the person managing the list at
        opencms-dev-owner at opencms.org<mailto:opencms-dev-owner at opencms.org>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of opencms-dev digest..."


Today's Topics:

   1. Re: NPE when using group in Solr search query (Daniel Seidel)
   2. Cannot Include Nested XSDs in OpenCMS 10.5.1 (Clement Wee)
   3. Re: Cannot Include Nested XSDs in OpenCMS 10.5.1
      (Lorenz Lammersdorf)


----------------------------------------------------------------------

Message: 1
Date: Mon, 3 Apr 2017 09:07:43 +0200
From: Daniel Seidel <d.seidel at alkacon.com<mailto:d.seidel at alkacon.com>>
To: opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>
Subject: Re: [opencms-dev] NPE when using group in Solr search query
Message-ID: <b8e364f2-1907-ee0c-4973-be231b9b0c04 at alkacon.com<mailto:b8e364f2-1907-ee0c-4973-be231b9b0c04 at alkacon.com>>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"

Hi Felix,

currently it is not our focus to alter the Solr integration. Depending
on customer needs it might change.

Best, Daniel.


Am 28.03.2017 um 16:21 schrieb Felix Noz:
> Hi Daniel,
>
> alright, thanks a lot for the quuck and clear Answer. I think I'll
> handle this in another way.
> Just for curiosity: are there any plans to support grouping in future?
>
> Kind regards
> Felix
> --
> Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail
> gesendet.
> Am 28.03.17, 15:34, Daniel Seidel <d.seidel
> <http://d.seidel>@alkacon.com<http://alkacon.com>> schrieb:
>
>     Hi Felix,
>
>     just a comment on the group feature: It currently does not work
>     with OpenCms. I just debugged the code. The problem is
>     org.opencms.search.solr.CmsSolrIndex#search(CmsObject,
>     CmsSolrQuery, boolean, ServletResponse, boolean,
>     CmsResourceFilter). Here the "hitCount" is extracted from the
>     QueryResponse via queryResponse.getResults().getNumFound() - but
>     queryResponse.getResults() yields null for a grouped response.
>
>     Best, Daniel.
>
>
>     Am 27.03.2017 um 20:46 schrieb f.noz at gmx.de<mailto:f.noz at gmx.de>:
>
>         Hi Daniel,
>         it's OpenCms 10.0.1
>         The exception doesn't occur when I use the solr parameter
>         group.main=true but then I get only one result instead of a
>         flat and grouped list of all results as mentioned in the solr
>         doucmentation.
>         Maybe my approach is wrong because I'm trying to solve a
>         really banal problem. I just want the result first sorted by
>         the boolean field ride_recurring (when value==true) and then
>         by a date field descending, eg having the following resources
>         Ride1: recurring=false, date=01.05.2017
>         Ride2: recurring=true, date=01.05.2017
>         Ride3: recurring=true, date=01.06.2017
>         Ride4: recurring=false, date=01.06.2017
>         should give the result in the folloging order:
>         Ride3 -> Ride2 -> Ride4 -> Ride1
>         using sort=recurring_s asc,date_dt desc results in strange
>         order so that's why I try it with group.
>         Any suggestions?
>         Regards
>         Felix
>         *Gesendet:* Mittwoch, 22. M?rz 2017 um 14:10 Uhr
>         *Von:* "Daniel Seidel" <d.seidel at alkacon.com<mailto:d.seidel at alkacon.com>>
>         *An:* opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>
>         *Betreff:* Re: [opencms-dev] NPE when using group in Solr
>         search query
>
>         Hi Felix,
>
>         could you please tell me your OpenCms-Version?
>
>         Best, Daniel.
>
>         Am 22.03.2017 um 12:40 schrieb Felix Noz:
>
>             Hi guys,
>             there's an XmlContent which contains a field named
>             ride_recurring of type OpenCmsBoolean. My goal is that the
>             result of the query shows first all items with
>             ride_recurring==false and only after that all items with
>             ride_recurring==false.
>             When omitting the grouping parameters the search works
>             fine and all items are displayed non-grouped but as soon
>             as adding &group=true&group.field=ride_recurring_s the
>             exception below occurs.
>             Can anybody help me and tell me what's going wrong there?
>             Regards
>             Felix
>             Caused by: org.opencms.search.CmsSearchException:
>             Ausf?hrung des Queries
>             "q=*:*&fl=*,score&qt=edismax&rows=5000&fq=expired:[NOW TO
>             *]&fq=con_locales:de&fq=parent-folders:"/sites/default/"&fq=type:nb-ms-ride&fq=released:[*
>             TO
>             NOW]&fq=search_exclude:"false"&group.field=ride_recurring_s&group=true&start=0"
>             schlug fehl.
>                 at
>             org.opencms.search.solr.CmsSolrIndex.search(CmsSolrIndex.java:1095)
>                 at
>             org.opencms.search.solr.CmsSolrIndex.search(CmsSolrIndex.java:507)
>                 at
>             org.opencms.file.collectors.CmsSolrCollector.getResults(CmsSolrCollector.java:193)
>                 at
>             org.opencms.file.collectors.CmsSolrCollector.getResults(CmsSolrCollector.java:169)
>                 at
>             org.opencms.jsp.CmsJspTagContentLoad.init(CmsJspTagContentLoad.java:575)
>                 at
>             org.opencms.jsp.CmsJspTagContentLoad.doStartTag(CmsJspTagContentLoad.java:235)
>                 at
>             org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.XXX_002dlist_jsp._jspService(ride_002dlist_jsp.java:373)
>                 at
>             org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>                 at
>             javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>                 at
>             org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
>                 at
>             org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
>                 at
>             org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
>                 at
>             javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>                 at
>             org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
>                 at
>             org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
>                 at
>             com.XXX.filter.BaseFilter.processFilter(BaseFilter.java:82)
>                 at
>             com.XXX.filter.WelcomeFilter.processFilter(WelcomeFilter.java:86)
>                 at com.XXX.filter.BaseFilter.doFilter(BaseFilter.java:31)
>                 at
>             org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
>                 at
>             org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
>                 at
>             org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:726)
>                 at
>             org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:592)
>                 at
>             org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:526)
>                 at
>             org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:191)
>                 at
>             org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:165)
>                 at
>             org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:191)
>                 at
>             org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:165)
>                 at
>             org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:655)
>                 at
>             org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:441)
>                 at
>             org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
>                 at
>             org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:379)
>                 at
>             org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:244)
>                 at
>             org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:490)
>                 at
>             org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_config.formatters.function_jsp._jspx_meth_cms_005finclude_005f0(function_jsp.java:340)
>                 at
>             org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_config.formatters.function_jsp._jspx_meth_c_005fwhen_005f0(function_jsp.java:288)
>                 at
>             org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_config.formatters.function_jsp._jspx_meth_c_005fchoose_005f0(function_jsp.java:249)
>                 at
>             org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_config.formatters.function_jsp._jspx_meth_cms_005fformatter_005f0(function_jsp.java:191)
>                 at
>             org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_config.formatters.function_jsp._jspService(function_jsp.java:142)
>                 ... 117 more
>             Caused by: java.lang.NullPointerException
>                 at
>             org.opencms.search.solr.CmsSolrIndex.search(CmsSolrIndex.java:866)
>                 ... 154 more
>
>             _______________________________________________
>             This mail is sent to you from the opencms-dev mailing list
>             To change your list options, or to unsubscribe from the list, please visit
>             http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>         --
>         Kind Regards,
>         Daniel.
>
>         -------------------
>
>         Daniel Seidel
>
>         Alkacon Software GmbH & Co. KG - The OpenCms Experts
>         http://www.alkacon.com  -http://www.opencms.org
>
>         _______________________________________________ This mail is
>         sent to you from the opencms-dev mailing list To change your
>         list options, or to unsubscribe from the list, please visit
>         http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>         _______________________________________________
>         This mail is sent to you from the opencms-dev mailing list
>         To change your list options, or to unsubscribe from the list, please visit
>         http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>     --
>     Daniel Seidel
>
>     -------------------
>
>     Alkacon Software GmbH & Co. KG - The OpenCms Experts
>     Daniel Seidel
>     An der Wachsfabrik 13
>     50996 Koeln, DE
>
>     Tel: +49 (0)2236 3826-16<tel:%2B49%20%280%292236%203826-16>
>     Fax: +49 (0)2236 3826-20<tel:%2B49%20%280%292236%203826-20>
>     Email:d.seidel at alkacon.com<mailto:Email%3Ad.seidel at alkacon.com>
>
>     http://www.alkacon.com
>     http://www.opencms.org
>
>     Amtsgericht K?ln, HRA 32185, USt-IdNr.: DE259882372
>     Vertreten durch: Alkacon Verwaltungs GmbH
>     Gesch?ftsf?hrer: Alexander Kandzior, Amtsgericht K?ln, HRB 88218
>
>     _______________________________________________ This mail is sent
>     to you from the opencms-dev mailing list To change your list
>     options, or to unsubscribe from the list, please visit
>     http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

--
Kind Regards,
Daniel.

-------------------

Daniel Seidel

Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170403/90e1fffc/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 3 Apr 2017 17:11:25 +0800
From: Clement Wee <clement at elixirtech.com<mailto:clement at elixirtech.com>>
To: opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>
Subject: [opencms-dev] Cannot Include Nested XSDs in OpenCMS 10.5.1
Message-ID:
        <CAM8TMLCC8BAbE-5k5VOe6+rU5zn4d-mwEFLNwxug+Cqc9c1a6g at mail.gmail.com<mailto:CAM8TMLCC8BAbE-5k5VOe6%2BrU5zn4d-mwEFLNwxug%2BCqc9c1a6g at mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"

Hi guys,

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.

The container is as follows:-

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
<xsd:include
schemaLocation="opencms://system/modules/elixir.opencms/schemas/NestedDefault.xsd"/>
<xsd:include
schemaLocation="opencms://system/modules/elixir.opencms/schemas/Data.xsd"/>

<xsd:element name="NestedContainers" type="OpenCmsNestedContainers"/>

<xsd:complexType name="OpenCmsNestedContainers">
<xsd:sequence>
<xsd:element name="NestedContainer" type="OpenCmsNestedContainer"
minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="OpenCmsNestedContainer">
<xsd:sequence>
<xsd:element name="Properties" type="OpenCmsNestedDefault" />
<xsd:element name="Data" type="OpenCmsElxData" />
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>

<xsd:annotation>
<xsd:appinfo>
<mappings>
<mapping element="Properties" mapto="property:Properties" />
<mapping element="Data" mapto="property:Data" />
</mappings>
<validationrules/>
<relations/>
<searchsettings containerPageOnly="true"/>
</xsd:appinfo>
</xsd:annotation>

</xsd:schema>

NestedDefault is:-

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>

<xsd:element name="NestedDefaults" type="OpenCmsNestedDefaults"/>

<xsd:complexType name="OpenCmsNestedDefaults">
<xsd:sequence>
<xsd:element name="NestedDefault" type="OpenCmsNestedDefault" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="OpenCmsNestedDefault">
<xsd:sequence>
<xsd:element name="Title" type="OpenCmsString" />
<xsd:element name="Text" type="OpenCmsHtml" />
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>

<xsd:annotation>
<xsd:appinfo>
<mappings>
<mapping element="Title" mapto="property:Title" />
<mapping element="Title" mapto="urlName" />
</mappings>
<defaults>
<default element="Title" value="Add a new title here" />
<default element="Text" value="Add your text" />
</defaults>
<layouts>
<layout element="Text" widget="HtmlWidget" configuration="downloadgallery"
/>
</layouts>
<validationrules/>
<relations/>
<searchsettings containerPageOnly="true"/>
</xsd:appinfo>
</xsd:annotation>

</xsd:schema>

Data is:-

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>

<xsd:element name="ElxDatas" type="OpenCmsElxDatas"/>

<xsd:complexType name="OpenCmsElxData">
<xsd:sequence>
<xsd:element name="ElxDatas" type="OpenCmsElxData" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="OpenCmsElxData">
<xsd:sequence>
<xsd:element name="Value" type="OpenCmsString"/>
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>

<xsd:annotation>
<xsd:appinfo>
<mappings>
<mapping element="Value" mapto="property:Value" />
</mappings>
<defaults>
<default element="Value"
value="Series,Category,Value\nSeries1,Cat1,10\nSeries1,Cat2,20\nSeries2,Cat1,40\nSeries2,Cat2,80"
/>-->
</defaults>
<layouts>
<layout element="Value" widget="TextareaWidget" configuration="20"/>
</layouts>
<validationrules/>
<relations/>
<searchsettings containerPageOnly="true"/>
</xsd:appinfo>
</xsd:annotation>

</xsd:schema>


What is the invalid XML in any of these?

Regards,
Clement

On Sat, Apr 1, 2017 at 6:00 PM, <opencms-dev-request at opencms.org<mailto:opencms-dev-request at opencms.org>> wrote:

> Send opencms-dev mailing list submissions to
>         opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
> or, via email, send a message with subject or body 'help' to
>         opencms-dev-request at opencms.org<mailto:opencms-dev-request at opencms.org>
>
> You can reach the person managing the list at
>         opencms-dev-owner at opencms.org<mailto:opencms-dev-owner at opencms.org>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of opencms-dev digest..."
>
>
> Today's Topics:
>
>    1.  TinyMCE filtering (Sandrine Prousteau)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 31 Mar 2017 12:06:43 +0000
> From: Sandrine Prousteau <s.prousteau at eurelis.com<mailto:s.prousteau at eurelis.com>>
> To: The OpenCms mailing list <opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>>
> Subject: [opencms-dev]  TinyMCE filtering
> Message-ID:
>         <HE1PR0601MB2602674612AA686714C8CA28F7370 at HE1PR0601MB2602.
> eurprd06.prod.outlook.com<http://eurprd06.prod.outlook.com>>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi all,
>
>
>
> 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".
>
> Example :
>
> This value (numerics are in bold)
>
> +12.5%
>
> Is turned to
>
> +5%
>
>
>
> I have tried it on inline TinyMCE codepen http://codepen.io/tinymce/pen/
> YydQrY, 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).
>
>
>
> Is there someone who had this issue, and found a solution?
>
> Is there someone who knows how TinyMCE filters work?
>
>
>
> OpenCms 9.5.2.x / Windows 10 / Chrome
>
>
>
> Thanks for help.
>
>
>
> Sandrine
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.opencms.org/pipermail/opencms-dev/
> attachments/20170331/f34d4478/attachment-0001.html>
>
> ------------------------------
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
> End of opencms-dev Digest, Vol 282, Issue 6
> *******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170403/693fcfea/attachment-0001.html>

------------------------------

Message: 3
Date: Mon, 3 Apr 2017 09:27:36 +0000
From: Lorenz Lammersdorf <lorenz.lammersdorf at kernbrand.ch<mailto:lorenz.lammersdorf at kernbrand.ch>>
To: "opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>" <opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>>
Subject: Re: [opencms-dev] Cannot Include Nested XSDs in OpenCMS
        10.5.1
Message-ID:
        <HE1PR07MB3178928719F4B8EAE5822B2BEE080 at HE1PR07MB3178.eurprd07.prod.outlook.com<mailto:HE1PR07MB3178928719F4B8EAE5822B2BEE080 at HE1PR07MB3178.eurprd07.prod.outlook.com>>

Content-Type: text/plain; charset="us-ascii"

<default element="Value" value="Series,Category,Value\nSeries1,Cat1,10\nSeries1,Cat2,20\nSeries2,Cat1,40\nSeries2,Cat2,80" />-->


remove -->


regards

lorenz

________________________________
Von: opencms-dev-bounces at opencms.org<mailto:opencms-dev-bounces at opencms.org> <opencms-dev-bounces at opencms.org<mailto:opencms-dev-bounces at opencms.org>> im Auftrag von Clement Wee <clement at elixirtech.com<mailto:clement at elixirtech.com>>
Gesendet: Montag, 3. April 2017 11:11:25
An: opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>
Betreff: [opencms-dev] Cannot Include Nested XSDs in OpenCMS 10.5.1

Hi guys,

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.

The container is as follows:-

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
<xsd:include schemaLocation="opencms://system/modules/elixir.opencms/schemas/NestedDefault.xsd"/>
<xsd:include schemaLocation="opencms://system/modules/elixir.opencms/schemas/Data.xsd"/>

<xsd:element name="NestedContainers" type="OpenCmsNestedContainers"/>

<xsd:complexType name="OpenCmsNestedContainers">
<xsd:sequence>
<xsd:element name="NestedContainer" type="OpenCmsNestedContainer" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="OpenCmsNestedContainer">
<xsd:sequence>
<xsd:element name="Properties" type="OpenCmsNestedDefault" />
<xsd:element name="Data" type="OpenCmsElxData" />
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>

<xsd:annotation>
<xsd:appinfo>
<mappings>
<mapping element="Properties" mapto="property:Properties" />
<mapping element="Data" mapto="property:Data" />
</mappings>
<validationrules/>
<relations/>
<searchsettings containerPageOnly="true"/>
</xsd:appinfo>
</xsd:annotation>

</xsd:schema>

NestedDefault is:-

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>

<xsd:element name="NestedDefaults" type="OpenCmsNestedDefaults"/>

<xsd:complexType name="OpenCmsNestedDefaults">
<xsd:sequence>
<xsd:element name="NestedDefault" type="OpenCmsNestedDefault" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="OpenCmsNestedDefault">
<xsd:sequence>
<xsd:element name="Title" type="OpenCmsString" />
<xsd:element name="Text" type="OpenCmsHtml" />
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>

<xsd:annotation>
<xsd:appinfo>
<mappings>
<mapping element="Title" mapto="property:Title" />
<mapping element="Title" mapto="urlName" />
</mappings>
<defaults>
<default element="Title" value="Add a new title here" />
<default element="Text" value="Add your text" />
</defaults>
<layouts>
<layout element="Text" widget="HtmlWidget" configuration="downloadgallery" />
</layouts>
<validationrules/>
<relations/>
<searchsettings containerPageOnly="true"/>
</xsd:appinfo>
</xsd:annotation>

</xsd:schema>

Data is:-

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>

<xsd:element name="ElxDatas" type="OpenCmsElxDatas"/>

<xsd:complexType name="OpenCmsElxData">
<xsd:sequence>
<xsd:element name="ElxDatas" type="OpenCmsElxData" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="OpenCmsElxData">
<xsd:sequence>
<xsd:element name="Value" type="OpenCmsString"/>
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>

<xsd:annotation>
<xsd:appinfo>
<mappings>
<mapping element="Value" mapto="property:Value" />
</mappings>
<defaults>
<default element="Value" value="Series,Category,Value\nSeries1,Cat1,10\nSeries1,Cat2,20\nSeries2,Cat1,40\nSeries2,Cat2,80" />-->
</defaults>
<layouts>
<layout element="Value" widget="TextareaWidget" configuration="20"/>
</layouts>
<validationrules/>
<relations/>
<searchsettings containerPageOnly="true"/>
</xsd:appinfo>
</xsd:annotation>

</xsd:schema>


What is the invalid XML in any of these?

Regards,
Clement

On Sat, Apr 1, 2017 at 6:00 PM, <opencms-dev-request at opencms.org<mailto:opencms-dev-request at opencms.org><mailto:opencms-dev-request at opencms.org<mailto:opencms-dev-request at opencms.org>>> wrote:
Send opencms-dev mailing list submissions to
        opencms-dev at opencms.org<mailto:opencms-dev at opencms.org><mailto:opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>>

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
or, via email, send a message with subject or body 'help' to
        opencms-dev-request at opencms.org<mailto:opencms-dev-request at opencms.org><mailto:opencms-dev-request at opencms.org<mailto:opencms-dev-request at opencms.org>>

You can reach the person managing the list at
        opencms-dev-owner at opencms.org<mailto:opencms-dev-owner at opencms.org><mailto:opencms-dev-owner at opencms.org<mailto:opencms-dev-owner at opencms.org>>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of opencms-dev digest..."


Today's Topics:

   1.  TinyMCE filtering (Sandrine Prousteau)


----------------------------------------------------------------------

Message: 1
Date: Fri, 31 Mar 2017 12:06:43 +0000
From: Sandrine Prousteau <s.prousteau at eurelis.com<mailto:s.prousteau at eurelis.com><mailto:s.prousteau at eurelis.com<mailto:s.prousteau at eurelis.com>>>
To: The OpenCms mailing list <opencms-dev at opencms.org<mailto:opencms-dev at opencms.org><mailto:opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>>>
Subject: [opencms-dev]  TinyMCE filtering
Message-ID:
        <HE1PR0601MB2602674612AA686714C8CA28F7370 at HE1PR0601MB2602.eurprd06.prod.outlook.com<mailto:HE1PR0601MB2602674612AA686714C8CA28F7370 at HE1PR0601MB2602.eurprd06.prod.outlook.com><mailto:HE1PR0601MB2602674612AA686714C8CA28F7370 at HE1PR0601MB2602.eurprd06.prod.outlook.com<mailto:HE1PR0601MB2602674612AA686714C8CA28F7370 at HE1PR0601MB2602.eurprd06.prod.outlook.com>>>

Content-Type: text/plain; charset="us-ascii"

Hi all,



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".

Example :

This value (numerics are in bold)

+12.5%

Is turned to

+5%



I have tried it on inline TinyMCE codepen http://codepen.io/tinymce/pen/YydQrY, 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).



Is there someone who had this issue, and found a solution?

Is there someone who knows how TinyMCE filters work?



OpenCms 9.5.2.x / Windows 10 / Chrome



Thanks for help.



Sandrine


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170331/f34d4478/attachment-0001.html>

------------------------------

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev

End of opencms-dev Digest, Vol 282, Issue 6
*******************************************


Lorenz Lammersdorf
Web Developer
+41 58 255 13 06<tel:%2B41%2058%20255%2013%2006>

Aktuell: Marketing f?r Dienstleister<http://www.marketing-fuer-dienstleister.ch/> und Marketing in der Baubranche<http://www.marketing-im-bau.ch/>

Kernbrand AG
Teufener Strasse 11
9000 St. Gallen
www.kernbrand.ch<http://www.kernbrand.ch><https://kernbrand.ch>

Folgen Sie uns: Facebook<https://www.facebook.com/kernbrandag/> | Pinterest<https://www.pinterest.com/kernbrand/> | LinkedIn<https://www.linkedin.com/company/kernbrand> | Twitter<https://twitter.com/kernbrand1> | Youtube<https://www.youtube.com/channel/UCNPqHyrqpCmfmFAZGVtp_uw>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170403/234a9222/attachment-0001.html>

------------------------------

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev

End of opencms-dev Digest, Vol 283, Issue 1
*******************************************


Lorenz Lammersdorf
Web Developer
+41 58 255 13 06

Aktuell: Marketing f?r Dienstleister<http://www.marketing-fuer-dienstleister.ch/> und Marketing in der Baubranche<http://www.marketing-im-bau.ch/>

Kernbrand AG
Teufener Strasse 11
9000 St. Gallen
www.kernbrand.ch<https://kernbrand.ch>

Folgen Sie uns: Facebook<https://www.facebook.com/kernbrandag/> | Pinterest<https://www.pinterest.com/kernbrand/> | LinkedIn<https://www.linkedin.com/company/kernbrand> | Twitter<https://twitter.com/kernbrand1> | Youtube<https://www.youtube.com/channel/UCNPqHyrqpCmfmFAZGVtp_uw>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170403/d9af365e/attachment.htm>


More information about the opencms-dev mailing list