📄 xslt-20020523.rng
字号:
<choice> <value type="string">single</value> <value type="string">multiple</value> <value type="string">any</value> </choice> </attribute> </optional> <optional> <attribute name="count"> <ref name="pattern.datatype"/> </attribute> </optional> <optional> <attribute name="from"> <ref name="pattern.datatype"/> </attribute> </optional> <optional> <attribute name="value"> <ref name="expression.datatype"/> </attribute> </optional> <optional> <attribute name="format"> <ref name="avt.datatype"/> </attribute> </optional> <optional> <attribute name="lang"> <choice> <data type="NMTOKEN"/> <ref name="expr-avt.datatype"/> </choice> </attribute> </optional> <optional> <attribute name="letter-value"> <choice> <value type="string">alphabetic</value> <value type="string">traditional</value> <ref name="expr-avt.datatype"/> </choice> </attribute> </optional> <optional> <attribute name="grouping-separator"> <choice> <ref name="char.datatype"/> <ref name="expr-avt.datatype"/> </choice> </attribute> </optional> <optional> <attribute name="grouping-size"> <choice> <ref name="number.datatype"/> <ref name="expr-avt.datatype"/> </choice> </attribute> </optional> </element> </define> <define name="for-each.element"> <element name="for-each"> <ref name="extension.atts"/> <attribute name="select"> <ref name="expression.datatype"/> </attribute> <group> <zeroOrMore> <ref name="sort.element"/> </zeroOrMore> <ref name="template.model"/> </group> </element> </define> <define name="if.element"> <element name="if"> <ref name="extension.atts"/> <attribute name="test"> <ref name="expression.datatype"/> </attribute> <ref name="template.model"/> </element> </define> <define name="choose.element"> <element name="choose"> <ref name="extension.atts"/> <group> <oneOrMore> <ref name="when.element"/> </oneOrMore> <optional> <ref name="otherwise.element"/> </optional> </group> </element> </define> <define name="when.element"> <element name="when"> <ref name="extension.atts"/> <attribute name="test"> <ref name="expression.datatype"/> </attribute> <ref name="template.model"/> </element> </define> <define name="otherwise.element"> <element name="otherwise"> <ref name="extension.atts"/> <ref name="template.model"/> </element> </define> <define name="sort.element"> <element name="sort"> <ref name="extension.atts"/> <optional> <attribute name="select"> <ref name="expression.datatype"/> </attribute> </optional> <optional> <attribute name="lang"> <choice> <data type="NMTOKEN"/> <ref name="expr-avt.datatype"/> </choice> </attribute> </optional> <optional> <attribute name="data-type"> <choice> <value type="string">text</value> <value type="string">number</value> <ref name="qname-but-not-ncname.datatype"/> <ref name="expr-avt.datatype"/> </choice> </attribute> </optional> <optional> <attribute name="order"> <choice> <value type="string">ascending</value> <value type="string">descending</value> <ref name="expr-avt.datatype"/> </choice> </attribute> </optional> <optional> <attribute name="case-order"> <choice> <value type="string">upper-first</value> <value type="string">lower-first</value> <ref name="expr-avt.datatype"/> </choice> </attribute> </optional> </element> </define> <define name="variable.element"> <element name="variable"> <ref name="extension.atts"/> <attribute name="name"> <ref name="qname.datatype"/> </attribute> <choice> <attribute name="select"> <ref name="expression.datatype"/> </attribute> <ref name="template.model"/> </choice> </element> </define> <define name="param.element"> <element name="param"> <ref name="extension.atts"/> <attribute name="name"> <ref name="qname.datatype"/> </attribute> <choice> <attribute name="select"> <ref name="expression.datatype"/> </attribute> <ref name="template.model"/> </choice> </element> </define> <define name="copy-of.element"> <element name="copy-of"> <ref name="extension.atts"/> <attribute name="select"> <ref name="expression.datatype"/> </attribute> </element> </define> <define name="with-param.element"> <element name="with-param"> <ref name="extension.atts"/> <attribute name="name"> <ref name="qname.datatype"/> </attribute> <choice> <attribute name="select"> <ref name="expression.datatype"/> </attribute> <ref name="template.model"/> </choice> </element> </define> <define name="key.element"> <element name="key"> <ref name="extension.atts"/> <attribute name="name"> <ref name="qname.datatype"/> </attribute> <attribute name="match"> <ref name="pattern.datatype"/> </attribute> <attribute name="use"> <ref name="expression.datatype"/> </attribute> </element> </define> <define name="decimal-format.element"> <element name="decimal-format"> <ref name="extension.atts"/> <optional> <attribute name="name"> <ref name="qname.datatype"/> </attribute> </optional> <optional> <attribute name="decimal-separator"> <ref name="char.datatype"/> </attribute> </optional> <optional> <attribute name="grouping-separator"> <ref name="char.datatype"/> </attribute> </optional> <optional> <attribute name="infinity"> <text/> </attribute> </optional> <optional> <attribute name="minus-sign"> <ref name="char.datatype"/> </attribute> </optional> <optional> <attribute name="NaN"> <text/> </attribute> </optional> <optional> <attribute name="percent"> <ref name="char.datatype"/> </attribute> </optional> <optional> <attribute name="per-mille"> <ref name="char.datatype"/> </attribute> </optional> <optional> <attribute name="zero-digit"> <ref name="char.datatype"/> </attribute> </optional> <optional> <attribute name="digit"> <ref name="char.datatype"/> </attribute> </optional> <optional> <attribute name="pattern-separator"> <ref name="char.datatype"/> </attribute> </optional> </element> </define> <define name="message.element"> <element name="message"> <ref name="extension.atts"/> <optional> <attribute name="terminate"> <choice> <value type="string">yes</value> <value type="string">no</value> </choice> </attribute> </optional> <ref name="template.model"/> </element> </define> <define name="fallback.element"> <element name="fallback"> <ref name="extension.atts"/> <ref name="template.model"/> </element> </define> <define name="output.element"> <element name="output"> <ref name="extension.atts"/> <optional> <attribute name="method"> <choice> <value type="string">xml</value> <value type="string">html</value> <value type="string">text</value> <ref name="qname-but-not-ncname.datatype"/> </choice> </attribute> </optional> <optional> <attribute name="version"> <data type="NMTOKEN"/> </attribute> </optional> <optional> <attribute name="encoding"> <text/> </attribute> </optional> <optional> <attribute name="omit-xml-declaration"> <choice> <value type="string">yes</value> <value type="string">no</value> </choice> </attribute> </optional> <optional> <attribute name="standalone"> <choice> <value type="string">yes</value> <value type="string">no</value> </choice> </attribute> </optional> <optional> <attribute name="doctype-public"> <text/> </attribute> </optional> <optional> <attribute name="doctype-system"> <text/> </attribute> </optional> <optional> <attribute name="cdata-section-elements"> <ref name="qnames.datatype"/> </attribute> </optional> <optional> <attribute name="indent"> <choice> <value type="string">yes</value> <value type="string">no</value> </choice> </attribute> </optional> <optional> <attribute name="media-type"> <text/> </attribute> </optional> </element> </define> <define name="prefixes.datatype"> <list> <zeroOrMore> <choice> <data type="NCName"/> <value>#default</value> </choice> </zeroOrMore> </list> </define> <define name="prefix.datatype"> <choice> <data type="NCName"/> <value>#default</value> </choice> </define> <define name="wildcards.datatype"> <list> <zeroOrMore> <choice> <data type="QName"/> <data type="token"> <param name="pattern">\*|\i\c*:\*</param> </data> </choice> </zeroOrMore> </list> </define> <define name="qname.datatype"> <data type="QName"/> </define> <define name="qnames.datatype"> <list> <zeroOrMore> <data type="QName"/> </zeroOrMore> </list> </define> <define name="char.datatype"> <data type="string"> <param name="length">1</param> </data> </define> <define name="number.datatype"> <data type="decimal"/> </define> <define name="expression.datatype"> <text/> </define> <define name="pattern.datatype"> <text/> </define> <define name="qname-but-not-ncname.datatype"> <data type="QName"> <param name="pattern">.*:.*</param> </data> </define> <!-- An AVT containing at least one expression. --> <define name="expr-avt.datatype"> <data type="string"> <param name="pattern">([^\{\}]|\{\{|\}\})*\{([^"'\{\}]|"[^"]*"|'[^']*')+\}([^\{\}]|\{\{|\}\}|\{([^"'\{\}]|"[^"]*"|'[^']*')+\})*</param> </data> </define> <!-- An AVT containing at least one brace; ie where instantiated AVT is not the same as the literal AVT. --> <define name="brace-avt.datatype"> <data type="string"> <param name="pattern">[^\{\}]*(\{\{|\}\}|\{([^"'\{\}]|"[^"]*"|'[^']*')+\})([^\{\}]|\{\{|\}\}|\{([^"'\{\}]|"[^"]*"|'[^']*')+\})*</param> </data> </define> <define name="avt.datatype"> <data type="string"> <param name="pattern">([^\{\}]|\{\{|\}\}|\{([^"'\{\}]|"[^"]*"|'[^']*')+\})*</param> </data> </define></grammar>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -