问题描述:

I have an attribute I want to restrict to a maximum length of 25 characters. The XML schema is defined in Relax NG Compact syntax. Is there a way to specify this?

网友答案:

Yep.

attribute myExample {
  xsd:string { maxLength = "25" }
}
相关阅读:
Top