Associating Schema Does Not Add Line to tei.xml File

This should cover W3C XML Schema, Relax NG and DTD related problems.
jdrouin
Posts: 5
Joined: Mon Aug 24, 2009 6:45 pm

Associating Schema Does Not Add Line to tei.xml File

Post by jdrouin »

Hello,

I'm new to XML and this forum. I've been given a TEI XML file to edit, and am supposed to associate it with a .rnc schema file. Following instructions, I go to Document > XML Document > Associate Schema..., click on the RelaxNG Schema tab, select "Compact syntax" and "Use relative paths" and browse to periodicalsTEI.rnc on my computer.

I understand that, after I click on OK, the editor should automatically add a line to the document that reads like this:

<?oxygen RNGSchema="../../../schemas/periodicalsTei.rnc" type="compact"?>

However, it doesn't add that line. Can anyone tell me what I'm missing here?

Thanks,

Jeff
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Associating Schema Does Not Add Line to tei.xml File

Post by sorin_ristache »

Hello,

Do you run Oxygen on a Mac computer? We fixed a bug after the release of the current version (version 10.3) about the actions from the Document menu. On Mac OS X the action is executed on the same document on which a previous Document menu action was invoked. If that was not the same as the current document on which you try to run the Associate Schema action you will see no effect.

Please use the same action from the toolbar until the release of the next version of Oxygen which will include the fix. That means the action Associate Schema available on toolbar Document.


Regards,
Sorin
jdrouin
Posts: 5
Joined: Mon Aug 24, 2009 6:45 pm

Re: Associating Schema Does Not Add Line to tei.xml File

Post by jdrouin »

Yes, I do use a Mac with version 10.3 of oXygen. Thank you for the reply, and I will be sure to upgrade when the next version is released.

Jeff
Post Reply