[oXygen-user] Oxygen kicks me out of Author mode because of URL problem?

Radu Coravu
Tue Aug 24 07:45:09 CDT 2010

Hi Robert,

When trying to insert any XML fragment (Bold also being such an operation) Oxygen tries to parse the XML fragment in the context of the main XML document (to expand for example the entities which may be in the XML fragment).
So from what it seems Oxygen opens a network HTTP connection to get the content of:
You can make sure of this by disconnecting the network adapter and then trying to use the "Bold" operation.
Because the W3C server sometimes rejects serving HTTP requests coming from the same host in a small amount of time (to prevent denial of service attacks) sometimes the operation works and sometimes it does not.

Now the real problem is:
Why is not the remote reference solved locally through the xml catalogs?
 From what I see, the file indeed exists in Docbook distributions (there is one available also in the Oxygen frameworks).
But the Docbook catalogs only seem to map the file using the public ID like:

<public publicId="ISO 8879:1986//ENTITIES Publishing//EN//XML"

So you can reference the entity in the XML using also the public ID like:
<!DOCTYPE book [
<!ENTITY % isopub PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN//XML" "http://www.w3.org/2003/entities/iso8879/isopub.ent">
and it should be found locally (you can check this also by de-activating the network adapter and validating the document).

If this is not an option:
You can also add a system catalog entry in one of the Docbook catalogs so you can edit for example the "OXYGEN_INSTALL_DIR\frameworks\docbook\4.5\dtd\catalog.xml" and add this entry to it

<system systemId="http://www.w3.org/2003/entities/iso8879/isopub.ent" 

Or you can create and add to the Oxygen catalogs your own XML catalog 
pointing to the isopub.ent and mapping it to the remote system ID.


Radu Coravu
<oXygen/>   XML Editor, Schema Editor and XSLT Editor/Debugger

On 8/24/2010 2:55 PM, Robert Nagle wrote:
> Hi, I'm having a really annoying problem with XML Author 12 Beta..
> It sometimes has problems keeping me in Author mode because of an
> inability to resolve a URL in my xincluded files. (It's a docbook 5
> project).
> In the example below, it wouldn't let me use the Bold toolbar button
> because of this.
> Here's the
> Couldn't execute operation:
> 'ro.sync.ecss.extensions.commons.operations.SurroundWithFragmentOperation'
> for action: 'Bold' because of: Could not surround in fragment. Cause:
> The host did not accept the connection within timeout of 20000 ms
> (http://www.w3.org/2003/entities/iso8879/isopub.ent)
> The top of my xinclude file has this:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE book [
> <!ENTITY % isopub SYSTEM "http://www.w3.org/2003/entities/iso8879/isopub.ent">
> %isopub;
> ]>
> <chapter xmlns="http://docbook.org/ns/docbook"
> xmlns:xlink="http://www.w3.org/1999/xlink"
>      version="5.0" xml:id="sharing-files
> ">
> I'm using this reference to be able to reference entities like&ndash;
> etc in my docbook files. 2 interesting things:
> 1)I can easily access this
> http://www.w3.org/2003/entities/iso8879/isopub.ent from my browser.
> 2)I actually have a local version of this isopub.ent in my file. (In
> fact, it's news to me that I am required to seek a external URL at
> all).
> So:
> 1)What would I need to do so that Oxygen will look for the local file
> rather than seeking it on the Net?
> 2)Why do you think this problem is occurring?
> Thanks for your help.

More information about the oXygen-user mailing list