XML: Using wildcard with required attribute of type xs:QName

560 Views Asked by At

My XML schema has the rule:

<xs:attribute name="A" type="xs:QName" use="required"/>

I want to be able to provide a wildcard to my XML rule file for this tag e.g.

<Element A="<wildcard_character>" Operation="doStuff">

Normally the value of the attribute is a regular qualified string name but I'd like to be able to provide a wildcard character as well in some cases. Is there such a character for the type xs:QName? I've tried * with no luck. Alternatively, is there a type which would allow wildcards?

No luck with google so I'd be grateful for any suggestions.

2

There are 2 best solutions below

2
On

A QName is a "qualified name". "*" is not a name of any kind. Sorry.

0
On

Perhaps you can use _ (underscore), as in operator like in sql ?