w3c 规范语法中的减号 [英] Minus in w3c specification grammar
本文介绍了w3c 规范语法中的减号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
减号是什么意思?
[14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)
另外,我在哪里可以找到与语法语法相关的信息?如果有任何意义的话,我很难找到有关规范的规范.
Also, where can I find information related to the syntax grammar? I'm having troubling finding the specification about the specification, if that makes any sense.
推荐答案
减号 (-
) 是 W3C XML Recommendation 定义 XML 的形式语法:
Minus (-
) is part of the Extended Backus-Naur Form (EBNF) notation used by the W3C XML Recommendation to define the formal grammar of XML:
A - B
中的减号 (-
) 匹配任何与 A 匹配但不匹配的字符串不匹配 B.
- Minus (
-
) inA - B
matches any string that matches A but does not match B.
[14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)
[^<&]*
是除标记起始字符<
和&
之外的任何字符组成的字符串.']]>'
是一个文字字符串,用于标记 CDATA.([^<&]* ']]>' [^<&]*)
是任何没有<
和的字符串>&
那个不包含 CDATA 部分的结束标记.[^<&]*
is a string of any characters except the markup start characters,<
and&
.']]>'
is a literal string that is used to mark the end of CDATA.([^<&]* ']]>' [^<&]*)
is any string without<
and&
that doesn't contain the end marker for a CDATA section.
因此,总的来说,CharData
可以是任何不包含标记起始字符、<
和 & 的字符串.
,并且不包含 CDATA 结束标记,]]>
.
Therefore, altogether, CharData
can be any string that doesn't contain the markup start characters, <
and &
, and doesn't contain the CDATA end marker, ]]>
.
这篇关于w3c 规范语法中的减号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文