[CSS]: string index out of range: -34

Having trouble installing Oxygen? Got a bug to report? Post it all here.
mattwolfe
Posts: 26
Joined: Thu Apr 26, 2012 5:36 pm

[CSS]: string index out of range: -34

Post by mattwolfe »

Using the Eclipse plugin version 18.1.0.v2017013018 (with Ixiasoft DITA CMS).

One of our users created a map with a keyref and this element causes 2 [CSS]: String index out of range: -34 errors when opening the map in an Oxygen editor window.

Here's the markup of the map:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//IXIA//DTD IXIA DITA Map//EN" "IxiaMap.dtd">
<map id="ofd1495557802861" xml:lang="en-us">
<title>David Artman Test Map for <keyword keyref="product"/></title>

<topicref href="bzi1495557802190.dita"/>
<topicref href="miz1495557802564.dita"/>
<mapref href="yvv1495557799690.ditamap"/></map>
The element that is causing the issue is

Code: Select all

<keyword keyref="product"/>
.

Any idea what is causing this error?
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: [CSS]: string index out of range: -34

Post by Radu »

Hi Matt,

The only similar problem we had was with Oxygen 11 about 6 years ago, the CSS parser Oxygen uses internally (as we render the XML in the Author visual editing mode using CSS) broke when encountering a certain CSS structure, but since then we received no such report.
Did you customize in any way the CSSs Oxygen uses for DITA and DITA Map editing?
When running with Ixiasoft, Oxygen may be customized, we have various APIs which can be called by Ixiasoft, for example for resolving keys, also Ixiasoft may contribute a custom DITA framework customization so this will make things even harder to reproduce in a clean Oxygen installation.
Is the received problem consistently reproduced also on other computers?
If your colleague is willing to investigate this further please contact us via email (support@oxygenxml.com) and we can try to instruct you how to enable full logging in Oxygen, in this way we would obtain more details about why the problem occurs.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
mattwolfe
Posts: 26
Joined: Thu Apr 26, 2012 5:36 pm

Re: [CSS]: string index out of range: -34

Post by mattwolfe »

We aren't use any CSS customizations and I am able to replicate it on my machine. I will contact support so we can debug this issue further. Thanks Radu!
Post Reply