This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ofbiz-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 27ada3c  Improved: updates DTDs on site
27ada3c is described below

commit 27ada3ce2f6cdc34f531e38173c9798b8af80dda
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Tue Aug 9 15:22:27 2022 +0200

    Improved: updates DTDs on site
---
 dtds/site-conf.xsd | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/dtds/site-conf.xsd b/dtds/site-conf.xsd
index b02d6e4..f6912fa 100644
--- a/dtds/site-conf.xsd
+++ b/dtds/site-conf.xsd
@@ -382,6 +382,40 @@ under the License.
             </xs:attribute>
         </xs:complexType>
     </xs:element>
+    <xs:element name="return-user-message">
+        <xs:annotation>
+            <xs:documentation>
+                Before return a response to the end user, we can override the 
event message from different origin.
+                Hard coded, from the labelling system or from a given field
+            </xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:attribute name="ressource" type="xs:string">
+                <xs:annotation>
+                    <xs:documentation>
+                        Properties ressource to use for resolve the message, 
if you set a value here, indicate the key on value attribute
+                        otherwise this attribute will be ignored.
+                        'like: CommonUiLabels'
+                    </xs:documentation>
+                </xs:annotation>
+            </xs:attribute>
+            <xs:attribute name="value" type="xs:string">
+                <xs:annotation>
+                    <xs:documentation>
+                        Value to use to display the response user message.
+                        You can set a plain text, a flexible string or use a 
key from the property file give in ressource attribute.
+                    </xs:documentation>
+                </xs:annotation>
+            </xs:attribute>
+            <xs:attribute name="from-field" type="xs:string">
+                <xs:annotation>
+                    <xs:documentation>
+                        Set from what field in context we can found the 
response user message. This field can contain a flexible string
+                    </xs:documentation>
+                </xs:annotation>
+            </xs:attribute>
+        </xs:complexType>
+    </xs:element>
     <xs:element name="event">
         <xs:annotation>
             <xs:documentation>
@@ -469,6 +503,7 @@ under the License.
                         </xs:documentation>
                     </xs:annotation>
                 </xs:element>
+                <xs:element minOccurs="0" ref="return-user-message"/>
             </xs:sequence>
             <xs:attributeGroup ref="attlist.response"/>
         </xs:complexType>

Reply via email to