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 09bd48b Improved: updates test-suite.xsd, widget-form.xsd and
site-conf.xsd documentation
09bd48b is described below
commit 09bd48ba683c788154a10012e0aa95a8f8db1c4a
Author: Jacques Le Roux <[email protected]>
AuthorDate: Sun Feb 23 16:49:49 2025 +0100
Improved: updates test-suite.xsd, widget-form.xsd and site-conf.xsd
documentation
---
dtds/site-conf.xsd | 10 +++++++++-
dtds/test-suite.xsd | 29 -----------------------------
dtds/widget-form.xsd | 42 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 51 insertions(+), 30 deletions(-)
diff --git a/dtds/site-conf.xsd b/dtds/site-conf.xsd
index b3258b3..79a02b7 100644
--- a/dtds/site-conf.xsd
+++ b/dtds/site-conf.xsd
@@ -530,7 +530,8 @@ under the License.
request-redirect-noparam,
url,
url-redirect,
- cross-redirect
+ cross-redirect,
+ shortener
</xs:documentation>
</xs:annotation>
<xs:simpleType>
@@ -625,6 +626,13 @@ under the License.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
+ <xs:enumeration value="shortener">
+ <xs:annotation>
+ <xs:documentation>
+ Call ofbiz shortener to resolve the next uri
to call
+ </xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
diff --git a/dtds/test-suite.xsd b/dtds/test-suite.xsd
index 6092aff..74d6b71 100644
--- a/dtds/test-suite.xsd
+++ b/dtds/test-suite.xsd
@@ -89,35 +89,6 @@ under the License.
</xs:attribute>
</xs:attributeGroup>
- <xs:element name="groovy-test-suite" substitutionGroup="TestCaseTypes">
- <xs:annotation>
- <xs:documentation>
- Used for JUnit test suites written as a Groovy class. See
http://groovy-lang.org/testing.html. This is rather to be used during
development and testing.
- When going to production; for performance reason
(compilation), you should use rather use junit-test-suite and move the test
file under main and use.
- See existing examples.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:attributeGroup ref="attlist.groovy-test-suite"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.groovy-test-suite">
- <xs:attribute type="xs:string" name="name"/>
- <xs:attribute type="xs:string" name="location" use="required">
- <xs:annotation>
- <xs:documentation>
- Give the location where is groovy file that contains the
test suite.
- You can use a flexible URL location like
-
component://service/src/test/groovy/org/apache/ofbizservice/test/TestServices.groovy
- This is rather to be used during development and testing
- When going to production you need to move the test file
under main. See existing examples.
- When going to production; for performance reason
(compilation), you should use rather use junit-test-suite and move the test
file under main and use.
- See existing examples.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:attributeGroup>
-
<xs:element name="service-test" substitutionGroup="TestCaseTypes">
<xs:complexType>
<xs:attributeGroup ref="attlist.service-test"/>
diff --git a/dtds/widget-form.xsd b/dtds/widget-form.xsd
index 09b382f..25993c6 100644
--- a/dtds/widget-form.xsd
+++ b/dtds/widget-form.xsd
@@ -873,6 +873,7 @@ under the License.
<xs:element name="check" substitutionGroup="AllFields">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="group-options" />
<xs:element ref="entity-options" />
<xs:element ref="list-options" />
<xs:element ref="option" />
@@ -1100,6 +1101,7 @@ under the License.
<xs:sequence>
<xs:element ref="auto-complete" minOccurs="0" maxOccurs="1" />
<xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="group-options" />
<xs:element ref="entity-options" />
<xs:element ref="list-options" />
<xs:element ref="option" />
@@ -1383,6 +1385,7 @@ under the License.
<xs:element name="radio" substitutionGroup="AllFields">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="group-options" />
<xs:element ref="entity-options" />
<xs:element ref="list-options" />
<xs:element ref="option" />
@@ -1494,6 +1497,25 @@ under the License.
<xs:documentation>Specifies a short hint that describes
the expected value of an input field.</xs:documentation>
</xs:annotation>
</xs:attribute>
+ <xs:attribute name="type" default="text">
+ <xs:annotation>
+ <xs:documentation>Controls the type attribute on the input
element. Limited to a few types. See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="text" />
+ <xs:enumeration value="number" />
+ <xs:enumeration value="email" />
+ <xs:enumeration value="url" />
+ <xs:enumeration value="tel" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="pattern" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Controls the pattern attribute of the
input element. See
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="textarea" substitutionGroup="AllFields">
@@ -1671,6 +1693,26 @@ under the License.
<xs:attribute type="xs:string" name="field-name" use="required" />
</xs:complexType>
</xs:element>
+ <xs:element name="group-options">
+ <xs:annotation>
+ <xs:documentation>group the options </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="group-options" />
+ <xs:element ref="entity-options" />
+ <xs:element ref="list-options" />
+ <xs:element ref="option" />
+ </xs:choice>
+ <xs:attribute type="xs:string" name="id" />
+ <xs:attribute type="xs:string" name="widget-style" />
+ <xs:attribute type="xs:string" name="description"
default="${description}">
+ <xs:annotation>
+ <xs:documentation>Will be presented to the user with field
values substituted using the ${} syntax.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
<xs:element name="in-place-editor">
<xs:annotation>
<xs:documentation>Enables in place editon for the display
field.</xs:documentation>