On 14 Sep 2015, at 10:39, Hussein Shafie wrote:
On 09/13/2015 11:35 PM, Leif Halvard Silli (russisk.no) wrote:
Michael Kay
(http://lists.xml.org/archives/xml-dev/201205/msg2.html) and C.
[ … snip … ]
* XSD 1.1 attribute wildcards do not allow to specify data-*
attributes.
See
* XSD 1.1 assertions are just like Schematron rules. Both technologies
cannot be used to express the grammar of an XML vocabulary.
See http://www.w3.org/TR/xmlschema11-1/#cAssertions
* Anyway, XXE does not support XSD 1.1, only XSD 1.0.
See http://www.xmlmind.com/xmleditor/features.html#wxs
I am not capable of evaluting those specs right now. I note what you say
versus what Michal Kay (on the page I linked to above) says:
]]
In XSD 1.0 you can allow these attributes (and many others of course)
by
use of an wildcard.
In XSD 1.1 you can then constrain the attribute names that match the
wildcard using assertions.»
[[
However, I can see that the XSD 1.0 option generally probably isn’t
any useful, since it seems that in order to, in accordance with HTMl5,
allow data-* on any element, one would have to allow **any** attribute
everywhere … Meaning that there would not really be any attribute
level valiation of attributes …
3.
Apart for those, advanced solutions, how about this: Let the user,
in a (simple) way specify that the document may contain some
/specific/ data-* attributes? For example, let’s say that I want to
allow exactly data-leif="CDATA" in my document. (This is probably
already possible, but only if I learn to handle a schema language.)
No, there is no simple way to do that. You would first have to create
a custom XHTML5 schema and then a customization of the XHTML5
configuration which points to your custom schema.
Reference:
XMLmind XML Editor - Configuration and Deployment
5. Customizing an existing configuration
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html
Thanks!
Leif Halvard Silli
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support