473,769 Members | 6,120 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

netscap / IE external entities

Can someone give me the lowdown on the way these two browsers deal with
the following

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="datadump. css"?>
<!DOCTYPE datadump [
<!ENTITY sig SYSTEM "signature.xml" >
<!ENTITY txt "this is an entity">
<!ELEMENT datadump (name)>
<!ELEMENT name (first,last)>
<!ELEMENT first (#PCDATA)>
<!ELEMENT last (signature)>
<!ELEMENT signature (#PCDATA)>
]>
<datadump>
<name>
<first>&txt;</first>
<last>&sig;</last>
</name>
</datadump>

In IE, without a style sheet, the document tree shows the signature
element within the last element. With a stylesheet, IE only displays
the signature content. Just by having an external entity, IE seems to
only display that content and nothing else.

In Netscape, without a stylesheet the document tree shows last as any
empty element.

In other words, in differing ways, neither is doing as I would expect,
insert the external entity where I want it while being styled according
to my specification.

xmlvalid says the xml is valid so I figure it is a difference in how the
browsers treat external entities.

Jul 20 '05 #1
0 1464

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

Similar topics

3
3332
by: Robert Lintner | last post by:
Hi, I woult like to switch from DTD to XML-Schema and am looking for an equivalent to external ENTITY for composition of an xml file from modules --- my.dtd -- <?xml version="1.0" encoding="ISO-8859-1"?> <!ENTITY module1 SYSTEM "module1.xml"> <!ENTITY module2 SYSTEM "module2.xml"> .....
11
2393
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 know of a work around? It is a little frustrating that the normally powerful external entities are limited in this fashion. Example (myextent.txt contains just one word without a CR):
4
4025
by: blu4899 | last post by:
Hi, The Xerces XML parser is reading external DTD references in DOCTYPEs by default, but is not doing anything with them because validation is turned off by default. This is documented in http://xml.apache.org/xerces2-j/features.html#nonvalidating.load-external-dtd This setting causes many XML instances with broken DTD references in the DOCTYPE to fail and adds some performance overhead. Is there anything good that comes from this...
3
1190
by: shawn modersohn | last post by:
I got, <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Insert GPL copyright notice here --> <!-- <?xml-stylesheet type="text/css" href="exhibits.css"?> --> <!DOCTYPE exhibits PUBLIC "-//ShawnModersohn.//DTD graphicalOpenExchange//EN" "exhibits.dtd"> <!-- Begin exhibit entity declarations --> <exhibits> &template;
47
3885
by: Richard Hayden | last post by:
Hi, I have the following code: /******************************** file1.c #include <iostream> extern void dummy(); inline int testfunc() {
0
1140
by: Tom | last post by:
I need to modify a DocBook file with several other XML files included as an ENTITY reference. Like <!DOCTYPE book SYSTEM "PathToMyDTD" > <book> &file1; &file2; &file3; </book>
2
1353
by: msnews.microsoft.com | last post by:
Hi Every Body, I have build the website in asp.net using vb.net. I use the asp.net validation controls for client side validation. When I run the site in Internet Explorer, It run properly and every validation is working properly. When I run the site in Mozilla and NetScap, The Asp.net validation is not work properly. What I have to do for making it compatible with other browsers.
0
1136
by: David.NQD | last post by:
Hi, I have a question about PHP5's DOM, but I found the docs on this section are either incomplete or incorrect (e.g. wrong return types for several functions). How can external entities, or entities in general, be added to a DOMDocument? (I'm not asking about adding entity references because DOMDocument->createEntityReference works like a charm.) I should probably state the details around the problem: I am working on
1
2745
Dormilich
by: Dormilich | last post by:
Hi, I got a strange behaviour (FF 3) of entities in my xml files. I have an element (see xml listing), where the attribute/content contains a latin1 entity (&ouml;), but FF throws an error (entity not defined). the only workaround for that is to define the entities directly in the local xml DTD anyone knows, how I can get the latin1 entities work in the external DTD? thanks in advance
0
9590
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9424
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10223
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10051
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10000
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3968
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.