用于编码器的XML(XFC) [英] XML for Coders (XFC)

查看:82
本文介绍了用于编码器的XML(XFC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道有多少其他类似的建议在网上流传 - 如果有人关心:这是我的:)


如果有些人喜欢它,我会写一个SAX解析器和转换器!


?processingInstruction(text)


?xml( version =" 1.0")

elementName(attributeName =" text" otherAttributeName =''5'')

{

subElementName(){} //应该允许删除empty()?

// emptyElement {} //我们也可以删除空{}并以''结尾'''''br />
// emptyElement;

// emptyElement(attrib ="");

" text"

''text:" Hello World!"''

}

//单行评论

/ *

多行评论

* /


![CDATA([部分CDATA])]


!DOCTYPE(greeting SYSTEM" hello.dtd")


!DOCTYPE(问候[

!元素(问候语(#PATAATA))

])

!ENTITY(myEnt" x")//我们应该支持实体???


//外部实体的简单替换:

[URI]


元素(attrib =" 1< ; 2)

{

没有特别处理''<>&%^''!'"

} $ / $
NameSpace:element(AttributeNamespace:atrib =" text"){}

html(xmlns =''http://www.w3。 org / TR / REC-html40'')

{

head()

{

title() {" Page Title"}

}

body()

{

p(){" Go " a(href =''http://www.bouncingbytes.at''){" here"}}

}

}

Don''t know how many other proposals like that are
circulating on the web - if anybody cares: this is mine :)

If some of you like it, i''ll write a SAX parser and a converter!

?processingInstruction( text )

?xml(version="1.0")

elementName(attributeName="text" otherAttributeName=''5'')
{
subElementName(){} // should allow to remove empty () ?
// emptyElement{} // we also could remove empty {} and terminate with '';''
// emptyElement;
// emptyElement(attrib="");
"text"
''text: "Hello World!"''
}
// Single-line comment
/*
Multi-line comment
*/

![CDATA([ Some CDATA ])]

!DOCTYPE(greeting SYSTEM "hello.dtd")

!DOCTYPE( greeting [
!ELEMENT( greeting (#PCDATA))
])
!ENTITY(myEnt "x") // should we support entities ???

//Simple replacement for external entities:
[URI]

element(attrib="1<2")
{
"No special handling of ''<>&%^''!"
}
NameSpace:element(AttributeNamespace:atrib="text") {}

html(xmlns=''http://www.w3.org/TR/REC-html40'')
{
head()
{
title(){"Page Title"}
}
body()
{
p(){ "Go " a(href=''http://www.bouncingbytes.at''){"here"} }
}
}

推荐答案

呵呵。看起来很花哨;)

但可能只有c ++ - 语法支持者会喜欢它;)
hehe. looks fancy ;)
but probably only c++-syntax supportes will like it ;)


它有点像简洁的xml,除了你的相当详细,因为没有好处

我可以确定的原因。你只是交换一个,冗长的语法,然后再用另一个。


这个怎么样...


?text


elementName attributeName = text otherAttributeName = 5

{

subElementName

" text" ;

}


html xmlns = http://www.w3.org/TR/REC-html40

{



{

title attribute =''这需要在引号中''{" Page Title"}

}

!评论

身体

{

p {" Go" a href = http://www.bouncingbytes.at {" here"}}

}

}


我我相信你可以看到它的语法,而且它看起来就像C ++ / Java那样人们可能会发现它们的价值。新版本的xml的目的当然是为bml的某些用法提供一些改进,而不仅仅是另一种语法。


目的简洁的xml就是这样,简洁而不模糊。

It''s all a bit like terse xml, except that yours is quite verbose for no good
reason that i can determine. You are just swapping one, verbose, syntax for
another.

How about this...

?text

elementName attributeName=text otherAttributeName=5
{
subElementName
"text"
}

html xmlns=http://www.w3.org/TR/REC-html40
{
head
{
title attribute=''this needs to be in quotes'' {"Page Title"}
}
!comment
body
{
p{ "Go " a href=http://www.bouncingbytes.at {"here"} }
}
}

I''m sure you can see the syntax and it is less ''just looks like C++/Java'' that
people might find off putting. The purpose of a new version of xml is, surely,
to provide some improvement for some usage of xml rather than just another syntax.

The purpose of terse xml is just that, be terse without being obscure.


这不是* XML - 不要使用XML以你的语言名义避免

任何混乱。

Dimitre Novatchev。


FXSL开发人员,XML Insider,
http://fxsl.sourceforge.net/ - FXSL的主页


" Erik Unger" <尔******** @ gmx.at>在消息中写道

news:3f ******** @ e-post.inode.at ...
This is *not* XML -- do not use "XML" in the name of your language to avoid
any confusion.
Dimitre Novatchev.

FXSL developer, XML Insider,
http://fxsl.sourceforge.net/ -- the home of FXSL

"Erik Unger" <Er********@gmx.at> wrote in message
news:3f********@e-post.inode.at...
不知道有多少其他提案就像那些在网上流传 - 如果有人关心:这是我的:)

如果有人喜欢它,我会写一个SAX解析器和转换器!

?processingInstruction(text)

?xml(version =" 1.0")

elementName(attributeName =" text" otherAttributeName ='' 5'')
{
subElementName(){} //应该允许删除empty()?
// emptyElement {} //我们也可以删除空{}并终止
with'';''// emptyElement;
// emptyElement(attrib ="");
" text"
''text:" Hello World!" ;'
}

//单行评论
/ *
多行评论
* /

![CDATA([Some CDATA])]

!DOCTYPE(问候系统hello.dtd)

!DOC TYPE(问候语[
!ELEMENT(greeting(#PCDATA))
]

!ENTITY(myEnt" x")//我们应该支持实体??? br />
//外部实体的简单替代:
[URI]

元素(attrib =" 1< 2")

没有特别处理''<>&%^''!"
}

NameSpace:element(AttributeNamespace:atrib =" text"){}

html(xmlns =''http://www.w3.org/TR/REC-html40'')
{
head()
{
title(){" Page Title"}
}
body()
{
p(){" Go" a(href =''http://www.bouncingbytes.at''){" here"}}
}
}
Don''t know how many other proposals like that are
circulating on the web - if anybody cares: this is mine :)

If some of you like it, i''ll write a SAX parser and a converter!

?processingInstruction( text )

?xml(version="1.0")

elementName(attributeName="text" otherAttributeName=''5'')
{
subElementName(){} // should allow to remove empty () ?
// emptyElement{} // we also could remove empty {} and terminate with '';'' // emptyElement;
// emptyElement(attrib="");
"text"
''text: "Hello World!"''
}
// Single-line comment
/*
Multi-line comment
*/

![CDATA([ Some CDATA ])]

!DOCTYPE(greeting SYSTEM "hello.dtd")

!DOCTYPE( greeting [
!ELEMENT( greeting (#PCDATA))
])
!ENTITY(myEnt "x") // should we support entities ???

//Simple replacement for external entities:
[URI]

element(attrib="1<2")
{
"No special handling of ''<>&%^''!"
}
NameSpace:element(AttributeNamespace:atrib="text") {}

html(xmlns=''http://www.w3.org/TR/REC-html40'')
{
head()
{
title(){"Page Title"}
}
body()
{
p(){ "Go " a(href=''http://www.bouncingbytes.at''){"here"} }
}
}


这篇关于用于编码器的XML(XFC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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