Saving alternate styles in project settings

Oxygen general issues.
ttasovac
Posts: 82
Joined: Fri Dec 19, 2003 6:02 pm

Saving alternate styles in project settings

Post by ttasovac »

Hi.

I've created a CSS style that I would like to save as an alternate style in project settings for TEI as a document type. Sounds straightforward.

This is what my setting looks like:

Image

They are saved as Project Options:

Image

And they work locally — the Transmission Chain stylesheet shows up in the style dropdown etc, it works as expected.

The problem is that the .xpr file doesn't seem to record this information. git is showing me no changes whatsoever in the .xpr. The testing data can be found here: https://github.com/ttasovac/arabic_oxyg ... in-project

This is all happening on 23.1, build 2021061407 on Apple silicon.

I'd be most grateful for your help.

All best,
Toma
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: Saving alternate styles in project settings

Post by Radu »

Hi Toma,

If you look at the first screenshot you attached, the "Storage" of the TEI P5 is set to "External" so anything you save there is not saved in the xpr, although you have switched the entire page to project level settings.
What you would need to do would be to extend the "TEI P5" framework using the "Extend" button, change the storage for the extension as "internal" and add in that extension the reference to the extra CSS file.
If your TEI P5 framework extension appears in the "Document Type Associations" list before the "TEI P5", it will be used by Oxygen for editing TEI P5 docs.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ttasovac
Posts: 82
Joined: Fri Dec 19, 2003 6:02 pm

Re: Saving alternate styles in project settings

Post by ttasovac »

Thanks a million, Radu. Makes perfect sense.
All best,
Toma
Post Reply