Expressions are still validated for syntax appropriate in the context of the field type, but can be in the full range of grammar as supported by the runtime.
仍然要验证表达式的语法是否适合字段类型的上下文,但这时的语法可以是运行时支持的所有语法。
The field tag accepts a type attribute that specifies the type of information that you want to store, and can be used to specify the grammar rules to be used for accepting.
字段标记将接收一个 type 属性,该属性指定了要存储信息的类型,并且还可以用于指定接收操作所使用的语法规则。
After generating the QDML file from a DTD grammar I had to edit the file to define the document root element and add type information for non-String values (a couple of ints, in this case).
根据DTD文法生成QDML文件之后,必须编辑该文件来定义文档的根元素,并为非string值(在这里,是几个int)添加类型信息。
应用推荐