经常使用的DTD / XML模式表达式? [英] Frequently used DTD/XML schema expressions ?

查看:54
本文介绍了经常使用的DTD / XML模式表达式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




嗨!



哪里可以找到最常用的DTD / Schema的定义

表达式?类似于:

<! - 独家或:AAA或BBB但不是两者兼有 - >

<!ELEMENT TestXOR(AAA | BBB)>


<! - 或:AAA或BBB(可以是一个,两个(任何订单)或无) - >

<!ELEMENT TestOR1(AAA | BBB |(AAA,BBB)|(BBB,AAA))?>

<!ELEMENT TestOR2((AAA?,BBB?)|(BBB,AAA))> ;


<! - 和:AAA和BBB(按此顺序) - >

<!ELEMENT TestAND1(AAA,BBB) >


<! - 和:AAA和BBB(按此顺序)或无 - >

<!ELEMENT TestAND2(AAA ,BBB)?>


谢谢,

Razvan



Hi !


Where can I find the definition of the most used DTD/Schema
expressions ? Something like:
<!-- exclusive or: AAA or BBB but not both -->
<!ELEMENT TestXOR (AAA | BBB)>

<!-- or: AAA or BBB (could be one, both (any order) or none) -->
<!ELEMENT TestOR1 (AAA | BBB | (AAA, BBB) | (BBB, AAA))?>
<!ELEMENT TestOR2 ((AAA?, BBB?) | (BBB, AAA))>

<!-- and: AAA and BBB (in this order) -->
<!ELEMENT TestAND1 (AAA, BBB)>

<!-- and: AAA and BBB (in this order) or none -->
<!ELEMENT TestAND2 (AAA, BBB)?>

Thanks,
Razvan

推荐答案

/ Razvan /:
/Razvan/:
在哪里可以找到最常用的DTD / Schema
表达式的定义?类似于:

<! - 独家或:AAA或BBB但不是两者兼有 - >
<!ELEMENT TestXOR(AAA | BBB)>
Where can I find the definition of the most used DTD/Schema
expressions ? Something like:

<!-- exclusive or: AAA or BBB but not both -->
<!ELEMENT TestXOR (AAA | BBB)>

< br $>
[...]


您可以在XML规范中找到它< http://www.w3.org/TR/REC-xml/> ;。


元素类型声明 < http://www.w3.org/TR/REC-xml/#elemdecls>


-

Stanimir


[...]

You find it in the XML specification <http://www.w3.org/TR/REC-xml/>.

"Element Type Declarations" <http://www.w3.org/TR/REC-xml/#elemdecls>

--
Stanimir


你好


你不理解我。我正在寻找一个网页,其中

我可以找到根据DTD规则或XML编写的各种表达式

架构规则,如:

(a或b或c)xor d

(a和b)或c

(a或b)xor c


aso


在官方文档中,我只能找到一些随机的例子。

实际上我正在搜索DTD / XML模式库。我希望我这次更清楚。


问候,

Razvan

Hi

You did not understand me. I am looking for a web page where
I can find all sort of expression written according to DTD rules or XML
Schema rules, like:
(a or b or c) xor d
(a and b) or c
(a or b) xor c

a.s.o

In the official docs I can only find a few random examples.
Practically I am searching for a DTD/XML schema repository. I
hope that I am more clear this time.

Regards,
Razvan


/ Razvan /:
/Razvan/:
你不理解我。我正在寻找一个网页,我可以找到根据DTD规则或XML
架构规则编写的各种表达式,例如:
[...]在官方文档中,我可以只找几个随机的例子。


官方文件规定了所有可能性,但似乎很难读懂。如何规范无法指定

某些东西 - 它不会被指定而且它不会被识别出来。

只需按照BNF表示法中的链接:

元素类型声明

[45] elementdecl :: =''<!ELEMENT''S Name S contentspec S? ''>''
[46] contentspec :: =''EMPTY''| ''任何''|混合|儿童

元素内容模型

[47]儿童:: =(选择| seq)('''''|''*''|'''+' ')?
[48] cp :: =(姓名|选择| seq)('''''|''*''|''+'')?
[49]选择: :=''(''S?cp(S?''|''S?cp)+ S?'''''
[50] seq :: =''(''S?cp( S?'',''S?cp)* S?'''''


等等。还有一些:


属性列表声明 < http://www.w3.org/TR/REC-xml/#attdecls>


阅读整篇文档。对于XML Schema语言:

http:// www.w3.org/XML/Schema#dev

/ Razvan /:

实际上我正在搜索DTD / XML模式存储库。我希望这次我更清楚。
You did not understand me. I am looking for a web page where
I can find all sort of expression written according to DTD rules or XML
Schema rules, like: [...] In the official docs I can only find a few random examples.
The official document specifies all the possibilities, but seems
you''re too lazy to read. How a specification could not specify
something - it won''t be specified and it won''t be recognized, then.
Just follow the links in the BNF notations:
Element Type Declaration

[45] elementdecl ::= ''<!ELEMENT'' S Name S contentspec S? ''>''
[46] contentspec ::= ''EMPTY'' | ''ANY'' | Mixed | children

Element-content Models

[47] children ::= (choice | seq) (''?'' | ''*'' | ''+'')?
[48] cp ::= (Name | choice | seq) (''?'' | ''*'' | ''+'')?
[49] choice ::= ''('' S? cp ( S? ''|'' S? cp )+ S? '')''
[50] seq ::= ''('' S? cp ( S? '','' S? cp )* S? '')''
etc., etc. Here are some more:

"Attribute-List Declarations" <http://www.w3.org/TR/REC-xml/#attdecls>

Read the whole document. For the XML Schema language:

http://www.w3.org/XML/Schema#dev
/Razvan/:
Practically I am searching for a DTD/XML schema repository. I
hope that I am more clear this time.




这里不能帮你。


-

Stanimir



Can''t help you here.

--
Stanimir


这篇关于经常使用的DTD / XML模式表达式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆