Firstly, if you aren’t a programmer with a decent level of familiarity with using the XML libraries in your language of choice, I cannot imagine that hunting through raw XML by eye is any more efficient than just copying and pasting values out of the Styles compile format pane. Yeah, it’s a lot of tabbing through text fields and clicking through lists, but that’s exactly what you’d be doing in a raw XML file anyway, and at least in Scrivener there is some specialised interface for interacting with the elements.
Something worth noting is that you start with a screenshot of the Styles pane in the compile format designer highlighted, and speak mainly in a way that would extol the virtues of how styles can be compiled functionally—but then move on to examine the project’s styles, which have nothing to do with the former. Project styles, at least what gets stored of them in the file you’re looking at, are purely aesthetics and a name—not very useful to you I don’t think. On the other hand, a compile Format’s styles will be stored in the respective .scrformat file, within the Settings/Compile Formats folder—and that is where you will find functional information.
In other words, the way you are talking about all of this makes me think you’re looking to build a list that looks a bit like this:
| Style name | Prefix | Suffix |
|---|---|---|
| Citation | \cite{ | } |
As previously mentioned, the project’s styles matter not one bit at all to this kind of information—save for the fact that if we have citations and want to use them in our project, we would use this reference to create a style called “Citation” in the project and mark cite refs with it.
- Project styles: just ways of marking text’s meaning and signifying to us through the use of visual language, which text is meant to do what. There is no execution here, just abstract semantics.
- Format styles: all execution. For plain-text markup based writing, this is where styles go from visual markings to real syntax.
Therefore, if a Format does not list a style, a style in a project does not have any functional use beyond whatever utility we get from having the text marked with it, in the writing space. A Format might provide functions, through its style list, that a particular project does not make use of, but they are there if we need them. This decoupling between marking text and executing functions upon marked text is something that makes Scrivener quite unique, and very powerful for writing. But it does mean you have to pay heed to which does what, if you want to go poking into internal files and extracting configuration details from them.