DTD中的特殊字符问题 [英] Special character problem in DTD

查看:90
本文介绍了DTD中的特殊字符问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<!ENTITY%testEntity"(test)">

<!ELEMENT testElement%testEntity;>


以上是有效的DTD文件。但是当我尝试将一个字符放入testEntity的内容时它就不起作用了。喜欢以下


<!ENTITY%testEntity"(test / test)">

<!ELEMENT testElement%testEntity;>


我是xml的新手,你能告诉我如何让它工作吗?


谢谢


-

<!ENTITY % testEntity "(test)">
<!ELEMENT testElement %testEntity;>

Above is a valid DTD file. But it doesn''t work when I try to put a charater
''/'' in to the Content of testEntity. like following

<!ENTITY % testEntity "(test/test)">
<!ELEMENT testElement %testEntity;>

I am newbie to xml, Could you please tell me how to make it works?

Thanks

--

推荐答案

* Aray在comp.text.xml中写道:
* Aray wrote in comp.text.xml:

><!ENTITY%testEntity"(test)">
<!ELEMENT testElement%testEntity;>

上面是有效的DTD文件。但是当我尝试在testEntity的内容中添加一个字符时,它不起作用。喜欢以下

<!ENTITY%testEntity"(test / test)">
<!ELEMENT testElement%testEntity;>

我我是xml的新手,你能告诉我如何使它有效吗?
><!ENTITY % testEntity "(test)">
<!ELEMENT testElement %testEntity;>

Above is a valid DTD file. But it doesn''t work when I try to put a charater
''/'' in to the Content of testEntity. like following

<!ENTITY % testEntity "(test/test)">
<!ELEMENT testElement %testEntity;>

I am newbie to xml, Could you please tell me how to make it works?



您应该查看为什么要把''/'放在那里,也许

你把它与其他一些字符混淆了',''或''|''。

-

Bj?rn H?hrmann·mailto:bj **** @ hoehrmann.de· http://bjoern.hoehrmann.de

Weinh。海峡。 22·Telefon:+49(0)621/4309674· http://www.bjoernsworld.de

68309曼海姆·PGP Pub。 KeyID:0xA4357E78· http://www.websitedev.de/

You should review why you want to put the ''/'' there, perhaps
you confuse it with some other character like '','' or ''|''.
--
Bj?rn H?hrmann · mailto:bj****@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/


在文章< el ********** @ news.cn99.com> ;,Aray< 1@2.3wrote:
In article <el**********@news.cn99.com>, Aray <1@2.3wrote:

>上面是有效的DTD文件。但是当我尝试在testEntity的内容中添加一个字符时,它不起作用。喜欢以下

<!ENTITY%testEntity"(test / test)">
<!ELEMENT testElement%testEntity;>

我我是xml的新手,你能告诉我如何使它有效吗?
>Above is a valid DTD file. But it doesn''t work when I try to put a charater
''/'' in to the Content of testEntity. like following

<!ENTITY % testEntity "(test/test)">
<!ELEMENT testElement %testEntity;>

I am newbie to xml, Could you please tell me how to make it works?



它与实体无关。

< ;> ELEMENT testElement(test / test)>



的原因是什么? >
不起作用。你想要达到什么目的?


- 理查德

-

应考虑到需要一些字母表中多达32个字符

" - X3.4,1963。

It''s got nothing to do with entities. It doesn''t work for the same
reason that

<!ELEMENT testElement (test/test)>

doesn''t work. What are you trying to achieve?

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.


Aray写道:
Aray wrote:

<!ENTITY%testEntity"( test)">

<!ELEMENT testElement%testEntity;>


以上是有效的DTD文件。但是当我尝试将一个字符放入testEntity的内容时它就不起作用了。喜欢以下


<!ENTITY%testEntity"(test / test)">

<!ELEMENT testElement%testEntity;>


我是xml的新手,你能告诉我如何使它有效吗?
<!ENTITY % testEntity "(test)">
<!ELEMENT testElement %testEntity;>

Above is a valid DTD file. But it doesn''t work when I try to put a charater
''/'' in to the Content of testEntity. like following

<!ENTITY % testEntity "(test/test)">
<!ELEMENT testElement %testEntity;>

I am newbie to xml, Could you please tell me how to make it works?



你能告诉我们你想做什么(为什么你认为你想做什么

这个)?


///彼得

-

XML常见问题: http://xml.silmaril.ie/


这篇关于DTD中的特殊字符问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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