Commit 2e086aa9 authored by Oliver Bock's avatar Oliver Bock

Ensure uniqueness of project-specific preference settings tagnames

* BOINC only supports a flat XML structure for the project-specific preference settings, so we need to prevent duplicates (note: per venue)
* The XML schema "selector" element's "xpath" attribute requires fully-qualified element names in path descriptions (won't work otherwise)
  -> Added a dedicacted namespace "psp" for that purpose (read: project-specific preferences)
* Also: augmented the original namespace values with the actual schema filename to make them meaningful (unique)
parent 379cd063
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://boinc.berkeley.edu"
xmlns="http://boinc.berkeley.edu"
targetNamespace="http://boinc.berkeley.edu/drupal-psp.xsd"
xmlns="http://boinc.berkeley.edu/drupal-psp.xsd"
xmlns:psp="http://boinc.berkeley.edu/drupal-psp.xsd"
elementFormDefault="qualified"
version="0.1">
......@@ -173,6 +174,10 @@
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:unique name="unique-preference-tagname-per-document">
<xs:selector xpath=".//psp:compound/*"/>
<xs:field xpath="@name"/>
</xs:unique>
</xs:element>
</xs:schema>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment