Firefox and external XML entity references

I’m currently doing some work with XML and representing it as HTML in browsers using XSLT by including a reference to a style sheet. To reduce dublicating too much information across the different XML files I produce and use external entity references.

For those that doesn’t know what an external entity reference is let me give a short explanation. Bascially XML allows you to define an entity using the DOCTYPE declaration that may be referenced from within the XML document. A reference to an XML fragment as an entity may be internal (in the document itself) or external (in another file). The below code snippet shows how to reference an external file as an entity:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE file_contents [
   <!ENTITY external_info SYSTEM "external_info.xml">
   <!ENTITY internal_info "Some internal information">
]>
<file_contents>
   &external_info;
   &internal_info;
</file_contents>

In the above example the &external_info; will be replaced with the contents of the external_info.xml file and &internal_info; will be replaced with “Some internal information” when the file is parsed.

I found one limitation though when using external entity references in that Firefox doesn’t include XML from these external references in the source document for the XSLT transformation (or when previewing the document). This isn’t an issue in Internet Explorer at all so for this particular project it’s nice that the users are on Internet Explorer.

After researching the issue on Google I found an article on developerWorks (XML in Firefox 1.5, Part 2: Basic XML processing) that confirms my findings:

"As far as reading external files, Firefox does not read any external entities at all, whether parameter entities (such as DTDs and DTD fragments) or general entities (external, well-formed XML fragments). <snip /> Support of such external entities does have possible security implications, and possible performance implications, but both have workarounds, and I hope Firefox addresses these limitations soon."

I’m using Firefox 1.5.0.3 on Windows XP Prof. SP2.

Notes/Domino 6 and 7 Forum: Java Thread Synchronization in HTTP JVM

Saw a very interesting post on Java thread synchronization in the Notes/Domino 6 and 7 Forum over at Lotus developerWorks. I see that Julian already posted a reply but he also admits he’s not exactly a subject matter expert. Anyone else who has some information on the subject that they dare to share?

Link to post: Java Thread Synchronization in HTTP JVM

Firefox problem with multiple startup pages

Don’t know if you are aware of this but in Firefox you can open multiple tabs automatically when the browser starts – kind of like homepage on steoroids. You do this by separating the URLs with the pipe character (|) in the list of homepages in the options (on the General tab in ToolsOptions…). I use this a lot if I found some information I do not care bookmarking but I’ll need the next day.

There seems to be a problem with this feature however. When reopening the browser the tabs will not expand and show the page titles (see screenshot below) until I close one tab. After researching a bit it turned out to be caused by the otherwise excellent Tab Mix Plus extension. Disabling the extension removes the issue. Hmm….

The issue is on Firefox 1.5.0.3 and Tab Mix Plus 0.3.0.5 on Windows XP SP2.

Don’t plan!!

Received a nice quote by John Preston of Boston University from my big brother:

“The nicest thing about not planning is that failure comes as a complete surprise and not preceded by a period of worry and depression.”

Critical RealVNC vulnerability discovered

If you are running RealVNC for remote access you should make sure to upgrade the server software due to a recently discovered critical vulnerability. This is especially true if the VNC machine is available on the standard port and without VPN requirements.

“Using the following method, it is trivial to gain access to any RealVNC server without knowing the password. This allows full control of the target machine, with privilege levels equalling that of the user under which the RealVNC server runs – often full Administrator access on Windows desktops.”

Full article on securityfocus.com: RealVNC 4.1.1 Remote Compromise

Show ‘n Tell Thursday: SSH tunneling – a must have tool for any travelling consultant (18 May 2006)


With the use of firewalls that also restrict the outbound ports accessible from the corporate networks it is getting harder and harder to access resources at the office while at a customer location. Luckily there is a solution that works most of the time and that all travelling consultants should know about.

SSH tunneling is the solution to so many questions. For some reason many networks allows you to create outbound SSH connections which makes it possible to tunnel Notes (port 1352) and Sametime (port 1533) traffic to a SSH server and from there to the destination. Don’t worry it is much simpler than it sounds.

This tutorial shows you how to set it up. I recommend PuTTY as the SSH client to use. The below screenshot shows an example of tunneling Notes and Sametime traffic to sametime.example.com and notes.example.com respectively.

Tunnelling traffic via the internet beats the hell out of replicating via GSM dial-up or via a fax/PSTN line.