File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -329,6 +329,8 @@ msgid ""
329329"element and attribute names when the ``feature_namespaces`` feature is "
330330"enabled (the default)."
331331msgstr ""
332+ "来自此事件的信息对于一般命名空间处理来说是不必要的:当 ``feature_namespaces`` 特性被启用时(默认)SAX XML "
333+ "读取器将自动为元素和属性名称替换前缀。"
332334
333335#: ../../library/xml.sax.handler.rst:214
334336msgid ""
@@ -338,6 +340,8 @@ msgid ""
338340"events supply the information to the application to expand prefixes in those"
339341" contexts itself, if necessary."
340342msgstr ""
343+ "但是也存在一些情况,当应用程序需要在字符数据或属性值中使用前缀,而它们无法被安全地自动扩展;:meth:`startPrefixMapping` 和 "
344+ ":meth:`endPrefixMapping` 事件会向应用程序提供信息以便在这些上下文内部扩展前缀,如果有必要的话。"
341345
342346#: ../../library/xml.sax.handler.rst:222
343347msgid ""
@@ -348,10 +352,14 @@ msgid ""
348352"occur after the corresponding :meth:`endElement` event, but their order is "
349353"not guaranteed."
350354msgstr ""
355+ "请注意 :meth:`startPrefixMapping` 和 :meth:`endPrefixMapping` "
356+ "事件并不保证能够相对彼此被正确地嵌套:所有 :meth:`startPrefixMapping` 事件都将在对应的 "
357+ ":meth:`startElement` 事件之前发生,而所有 :meth:`endPrefixMapping` 事件都将在对应的 "
358+ ":meth:`endElement` 事件之后发生,但它们的并不保证一致。"
351359
352360#: ../../library/xml.sax.handler.rst:232
353361msgid "End the scope of a prefix-URI mapping."
354- msgstr ""
362+ msgstr "结束一个前缀 URI 映射的范围。 "
355363
356364#: ../../library/xml.sax.handler.rst:234
357365msgid ""
You can’t perform that action at this time.
0 commit comments