You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2025/07/01 11:42:20 UTC
(jackrabbit-filevault) branch bugfix/fix-xsd created (now 0af6cec2)
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a change to branch bugfix/fix-xsd
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git
at 0af6cec2 JCRVLT-748 Fix namespace declaration in XSD
This branch includes the following new commits:
new 0af6cec2 JCRVLT-748 Fix namespace declaration in XSD
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(jackrabbit-filevault) 01/01: JCRVLT-748 Fix namespace declaration in XSD
Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch bugfix/fix-xsd
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git
commit 0af6cec2e12385ce9fa62eea1884c0132bb42d9d
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Tue Jul 1 13:42:10 2025 +0200
JCRVLT-748 Fix namespace declaration in XSD
Also fix references to types
Add documentation
---
.../src/main/resources/workspacefilter-1.0.xsd | 48 +++++++++++++++++++---
1 file changed, 43 insertions(+), 5 deletions(-)
diff --git a/vault-validation/src/main/resources/workspacefilter-1.0.xsd b/vault-validation/src/main/resources/workspacefilter-1.0.xsd
index 82a68da0..29b25b8d 100644
--- a/vault-validation/src/main/resources/workspacefilter-1.0.xsd
+++ b/vault-validation/src/main/resources/workspacefilter-1.0.xsd
@@ -14,21 +14,40 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+<xs:schema targetNamespace="http://jackrabbit.apache.org/filevault/workspacefilter/1.0" attributeFormDefault="unqualified" elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://jackrabbit.apache.org/filevault/workspacefilter/1.0" >
<xs:complexType name="includeExcludeType">
<xs:simpleContent>
<xs:extension base="xs:string">
- <xs:attribute type="xs:string" name="pattern" use="required"/>
- <xs:attribute type="xs:boolean" name="matchProperties" />
+ <xs:attribute type="xs:string" name="pattern" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">The pattern is matched against the (closest) absolute node path which is imported/exported. Only it "matchProperties" is set to "true", the pattern is matched against the property path. It supports the syntax of <a href="https://docs.oracle.com/javase/tutorial/essential/regex/">Java Regular Expressions</a></xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute type="xs:boolean" name="matchProperties">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">If not set or "false" all properties below a node whose path is matching the "pattern" are included or excluded, if set to "true" the pattern is matched against the property path.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="type">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The type of the filter. If set to "cleanup", the filter is used to cleanup content in the target repository and there is no check if the package contains content for the given root path. Every other value is currently ignored.
+ </xs:documentation>
+ </xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="(|cleanup)"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="mode">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The mode determines how existing content in the target repository is handled when importing content. The default value is "replace".
+ </xs:documentation>
+ </xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="replace"/>
<xs:enumeration value="merge"/>
@@ -38,21 +57,40 @@
</xs:restriction>
</xs:simpleType>
<xs:element name="workspaceFilter">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ A workspace filter is used to define which content from a JCR repository should be included or excluded when exporting or importing content.
+ </xs:documentation>
+ </xs:annotation>
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="filter">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Each filter defines a root node and optionally a set of rules consisting of include or exclude patterns. The first rule determines if by default everything is excluded (for an include or no rules) or included (for an exclude).
+ The last matching rule of a filter determines the outcome. If multiple filter roots are overlapping, the first matching filter root is used.
+ </xs:documentation>
+ </xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element type="includeExcludeType" name="exclude"/>
<xs:element type="includeExcludeType" name="include"/>
</xs:choice>
- <xs:attribute type="xs:string" name="root" use="required"/>
+ <xs:attribute type="xs:string" name="root" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">The root node path of the filter. Must not contain wildcards and be an absolute path.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
<xs:attribute name="type" type="type"/>
<xs:attribute name="mode" type="mode"/>
</xs:complexType>
</xs:element>
</xs:sequence>
- <xs:attribute type="xs:float" name="version"/>
+ <xs:attribute type="xs:float" name="version">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">The version of the workspace filter schema. The current version is 1.0. No other version is supported.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>