473,396 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DOCTYPE DTD and Entity

I have problem with Entity definition.
____________________________________________
my file "test.xml"
----
<?xml version="1.0" ?>
<!DOCTYPE message [
<!ENTITY % PE "TEST1" >
<!ENTITY Ep "%PE;" >
]>
<message>&Ep;</message>
----
IE6 Error mesage ????
'Parameter entities cannot be used inside markup declarations in an
internal subset.
<!ENTITY Ep "%PE;" >
------------^'
_______________________________________________
But this is OK
------
my file "test_.xml"

<?xml version="1.0" ?>
<!DOCTYPE message [
<!ENTITY % PExt SYSTEM "PExt.dtd" >
%PExt;
]>
<message>&Ep;</message>
------
File "PExt.dtd"

<!ENTITY % PE "TEST1" >
<!ENTITY Ep "%PE;" >
-----
IE6

<?xml version="1.0" ?>
<!DOCTYPE message (View Source for full doctype...)>
<message>TEST1</message>
_______________________________________

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 12 '05 #1
3 2252
* bgeci wrote in microsoft.public.dotnet.xml:
I have problem with Entity definition.


Could you clarify what your problem is exactly? How can we help?
--
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/
Nov 12 '05 #2
I can't make PEDecl (parameter entity declaration) with PEReference
(in EntityValue) when I try this in internal DTD, but this
construction is working in external DTD.

Extensible Markup Language (XML) 1.0 (Third Edition)
W3C Recommendation 04 February 2004
Look at:
4.2 Entity Declarations
[72] PEDecl ::= '<!ENTITY' S '%' S Name S PEDef S? '>'

[74] PEDef ::= EntityValue | ExternalID

[9] EntityValue ::= '"' ([^%&"] | PEReference |
Reference)* '"'
| "'" ([^%&'] | PEReference |
Reference)* "'"
[69] PEReference ::= '%' Name ';'
And look at:
4.4 XML Processor Treatment of Entities and References

I can't find any place in W3C Recommendation where is explicit stated
that:
"Parameter entities can only be used to provide part of a declaration
in the external DTD subset. That is, parameter entity references can
only appear inside a declaration in the external DTD subset."

Please write me where was this specified

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 12 '05 #3


bgeci wrote:

I can't find any place in W3C Recommendation where is explicit stated
that:
"Parameter entities can only be used to provide part of a declaration
in the external DTD subset. That is, parameter entity references can
only appear inside a declaration in the external DTD subset."


I think this
<http://www.w3.org/TR/2004/REC-xml-20040204/#indtd>
plus
<http://www.w3.org/TR/2004/REC-xml-20040204/#wfc-PEinInternalSubset>
defines where parameter-entity references can occur.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ed Dennison | last post by:
I'm starting to look at DocBook-XML (not SGML) for producing a large documentation set. The hierarchy of DocBook elements for organizing the content is (more or less); set book part chapter...
11
by: Douglas Reith | last post by:
Hi There, Can someone please tell me why the XML spec states that an attribute value with an external entity is forbidden? Or point me to the appropriate document? Or better still, perhaps you...
0
by: BODIN | last post by:
I have an XML document, which is actually physically stored in 2 separated files. doc1.xml and doc2.xml I NEED a WAY FOR THIS SIMPLE NEED : XML file splitted into two physical files, and use...
4
by: Per | last post by:
Hi, I'm struggling with the DocBook XML DTD, which can be found at http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd. But this DTD seems to somehow include some other documents. E.g.: ...
1
by: Ken Larson | last post by:
I have a question about using XSL to extract information from an SVG (XML) file that has a DOCTYPE/DTD declaration. I am able to do this successfully if I write my own SVG files without such a...
6
by: Phil Jarvis | last post by:
I have an XML Schema with regular expressions. e.g. <xsd:pattern value="{1}*"/> I have other patterns in the same schema document which share regular expression substructure, like the string...
3
by: cochrane68 | last post by:
I'm trying to access an XML snippet based on the classpath. I know how to use a snippet based on the absolute path of a file using: <!DOCTYPE project > However, this is going to be used as...
2
by: ecomputerdelicacy | last post by:
Compact Framework SP3 (and I think also SP2 and SP1) XmlTextReader does not handle !DOCTYPE and (maybe?) rdf elements. How can I get the XmlTextReader to read these without issuing a...
4
by: keith | last post by:
Hi, I'm new to DTDs and trying to get a DTD file to define an entity for me, but the entity never gets defined. Looking for some insight. Here are the files I'm working with: ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.