开发者

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

开发者 https://www.devze.com 2023-01-24 23:43 出处:网络
My XML schema has the rule: <xs:attribute name=\"A\"开发者_如何学JAVA type=\"xs:QName\" use=\"required\"/>

My XML schema has the rule:

<xs:attribute name="A"开发者_如何学JAVA 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.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号