xml:base="." causes "Access is denied" error

Having trouble installing Oxygen? Got a bug to report? Post it all here.
xsaero00
Posts: 58
Joined: Sat Aug 01, 2009 12:57 am

xml:base="." causes "Access is denied" error

Post by xsaero00 »

In xml like this

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" type="xml"?>
<article xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:base=".">
<info>
<title>Article Template Title</title>
</info>
<sect1>
<title>Section1 Title</title>
<subtitle>Section1 Subtitle</subtitle>
<para>Text<xref linkend="a123"/></para>
<para xml:id="a123">Text</para>
</sect1>
</article>
if you click on the xref in Author view an error message pops up saying "Access is denied". Once xml:base is removed the link starts to works.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: xml:base="." causes "Access is denied" error

Post by sorin_ristache »

Hello,

The value of xml:base is "." that is the current folder. When you click on the link Oxygen must find the ID a123 in the file specified as xml:base but cannot do that because it cannot open the current folder as file. We will create a new CSS property link-internal for the linkend attribute that search the ID only in the current file ignoring the xml:base value.

You can avoid theerror if you specify a correct xml:base value, that is a file path that ends with the name of the current file.


Regards,
Sorin
Post Reply