另外,我假设在一个步骤内完成XML模式解析与验证等操作。
I also assumed that it is to be done with the XML schema parser and validated along with everything else in one step.
它具有诸如交互式模式解析、扩展式XPath面板等等之类的高级特性。
It has advanced features such as interactive schema resolving, extensive XPath panel, and more.
首先,让浏览器用标准模式解析的惟一条件是HTML或XHTML文档的第一行包含DOCTYPE,如清单1所示。
First, the only trigger for a browser to parse in standards mode is a DOCTYPE as the first line of an HTML or XHTML document, as Listing 1 shows.
Genericode(参阅参考资料)建议在第二层对枚举列表进行验证,脱离初始的XML模式解析器验证过程。
The Genericode effort (see Resources) recommend the validation of enumerated lists in a second layer and outside the initial XML schema parser validation process.
对应用于自由格式姓名和地址的解析与词法分析的模式,也可以应用于对产品清单或增强的库存控制部分进行标准化和重复项消除。
The same pattern that applies to parsing and lexical analysis of freeform names and addresses can be applied to standardize and de-duplicate product listings or parts for enhanced inventory control.
当我们思索着一个问题时,它会进入解析信息的模式中,并会被如洪勇般的大量信息瞬间冲晕了头。
When we're working on a problem, our brain goes into the information assimilation mode and is quickly overwhelmed because of the flood of information.
相反,必须应用DTD并让浏览器使用标准模式,而且还应选择严格到足以提高解析速度的DTD。
Instead, you need to supply a DTD, have your browser use standards mode, and you need to choose a DTD that is restrictive enough to speed up parsing.
也就是说,那些包括其它已命名的模式的(复合)模式在解析阶段必须被延迟。
That is, those (compound) patterns that include other named patterns must be postponed for the parsing stage.
如果媒体类型是用XML模式描述的,那么就获取这个模式,生成能够解析或者生成xml的类。
If the media types are described using an XML schema, grab that schema and generate classes that can parse or generate XML.
如您所料,这种模式会降低文档的解析速度,因而延缓了浏览器的显示。
As you might expect, this slows down document parsing, and therefore, delays its browser display.
要缓冲模式,需要一种允许您编译模式并将模式设置在解析器上的API。
To cache schemas, you need an API that allows you to compile schemas and set those on the parser.
该组件将解析id并检查特定模式值以表示是否应当在编辑模式下打开该文档。
The component parses the ID and checks for a specific mode value to signify whether the document should be opened in edit mode.
为此,需要添加代码来处理上传,解析文件名,以及创建与上述模式相匹配的目录路径。
To do so, you need to add code to handle the upload, parse the file name, and create the directory paths to match the scheme above.
如果访问不了模式位置或外部DTD,解析器就会发出错误消息。
If the schema location or the external DTD cannot be accessed, the parser issues an error message.
另外,如果内部编码虽然存在但却不是一个有效的IBM编码模式,解析器将会发出SQL 16168n错误消息。
In addition, if the internal encoding exists and it is not a valid IBM encoding schema, the parser will issue a SQL16168N error message.
模式字符串被解析之后,它的全名和模式名都存储在注册表中。
After the schema string is parsed, its full name and schema name are stored in the registry.
XMLNSC域已变为模型驱动的域,因为它现在可以根据实际XML模式进行解析和验证。
The XMLNSC domain has become model-driven as it can now parse and validate against a real XML Schema.
模式检查的语法可能随着不同的SAX解析器略有不同。
The syntax for the schema checking can vary slightly among different SAX parsers.
假设需要规定解析器从哪里查找具有特定目标名称空间的模式文档。
Suppose you want to specify where the parser looks to find schema documents with particular target namespaces.
如果文件指向了错误的模式,解析器就会使用错误的模式进行验证。
If the file points to an incorrect schema, the parser will validate against the incorrect schema.
然后解析器使用编译后的模式验证XML文档。
The parser then USES the compiled schemas to validate XML documents.
如果确认解析器没有对模式定义进行高速缓存,这种请求的开销会使系统失去可扩展性。
The overhead of this request can make a system unscalable if the validating parser does not cache the schema definitions.
使用的元素必须首先在模式中定义,解析器检查该模式就可以发现与解析文件不一致的地方。
The elements used must be defined in a schema first; the parser checks this schema, signaling any discrepancies with the parsed file.
解析器在进行读取时将检查文档的模式。
The parser checks the document against the schema as it reads.
如果您已经或者正在计划使用DTD或模式,您也许会首选验证解析器。
If you have or are planning to use a DTD or schema, you will probably prefer a validating parser.
对于每一个要解析的新模式,该实现在注册表中搜索已保存的完全限定模式名,并且在给定的模式中做字符串替换。
For every new schema it is parsing, the implementation looks for a fully qualified schema name, that is already stored in the registry and is doing string replacement in a given schema.
首先,我们来说明如何重用给定模式的内存中表示来改善解析性能。
First, we'll show you how to improve parsing performance by re-using an in-memory representation of a given schema.
如果内部编码存在且为一个无效的IBM编码模式,解析器将会发出SQL 16168n。
If the internal encoding exists and is an invalid IBM encoding schema, the parser will issue a SQL16168N.
解析器对验证需要的任何新模式进行编译,并在XML文档解析完成之后将编译过的模式交给语法池。
The parser compiles any new schema it needs for validation and gives all the compiled schemas back to the grammar pool after the parsing of your XML document is complete.
性能研究表明,如果启用模式验证,那么xml解析通常要更密集地使用CPU。
Performance studies have shown that XML parsing in general is significantly more CPU-intensive if schema validation is enabled [link].
应用推荐