Oxygen Error Notification

Oxygen general issues.
marxinada
Posts: 2
Joined: Fri Nov 08, 2019 12:09 am

Oxygen Error Notification

Post 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!
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Oxygen Error Notification

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
marxinada
Posts: 2
Joined: Fri Nov 08, 2019 12:09 am

Re: Oxygen Error Notification

Post 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
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Oxygen Error Notification

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply