Page 1 of 1

Oxygen Error Notification

Posted: Fri Nov 08, 2019 12:16 am
by marxinada
Hi,

I'm trying to annotate a document and I'm getting the following error notification
"Open quote is expected for attribute "ref" associated with an element type "placeName".

Does anybody know what this means?

This is my XML Code:
<settingDesc>
<listPlace>
<place xml:id="London" type="city">
<placeName>London</placeName>
<location>
<bloc>EU</bloc>
<country>United Kingdom</country>
<geo>51°30'26.5"N 0°07'39.7"W</geo>
</location>
</place>

This is what I typed into the search bar:

(London)

And this is what I typed into the replace bar:

<placeName ref=“#London”>$1</placeName>

Help would be much appreciated!

Re: Oxygen Error Notification

Posted: Fri Nov 08, 2019 2:03 pm
by adrian
Hello,

The XML specification requires plain ASCII double quotes for attribute values. You're using the wrong type of quotes:

Code: Select all

 <placeName ref=“#London”>$1</placeName>
This uses “ (Unicode Character 'LEFT DOUBLE QUOTATION MARK' - U+201C) on the left side and ” (Unicode Character 'RIGHT DOUBLE QUOTATION MARK' - U+201D) on the right side of #London, instead of the plain ASCII double quotes "#London".

Regards,
Adrian

Re: Oxygen Error Notification

Posted: Fri Nov 08, 2019 2:16 pm
by marxinada
Thank you so much for your answer Adrian!

I was able to fix my previous error, but now I am getting another error notification which says:

The value of attribute "xml:id" associated with an element type "place" must not contain the '<' character.

Is this an ASCII problem again or something else?

Regards,
Caroline

Re: Oxygen Error Notification

Posted: Thu Nov 14, 2019 6:04 pm
by adrian
Hi,

That message appears because there is no closing double quote for the attribute value. So, it's the same problem for the closing double quote, you're using ” (Unicode Character 'RIGHT DOUBLE QUOTATION MARK' - U+201D) instead of plain ".

Regards,
Adrian