Exmaralda-Org / exmaralda

26 stars 15 forks source link

Supply built-in formatting via XSL #425

Closed berndmoos closed 4 months ago

berndmoos commented 1 year ago

... as suggested by @nolda for DULKO, but also useful for other scenarios. Make this a menu item in the format menu?

Herrner commented 1 year ago

TEIDE did something via HTML panels, if I remember correctly...

nolda commented 1 year ago

In the former EXMARaLDA (Dulko) toolset, there was an XSLT stylesheet format-table.xsl which imported (actually, included) the formatting stylesheet format.xsl (the latter is also contained in the current EXMARaLDA source tree and is transparently called as part of the Dulko transformation scenarios). Since in EXMARaLDA (Dulko), the stylesheets were not part of a JAR file, format-table.xsl could be set in the preferences as the "Transcription to format table" stylesheet and called via "Format" > "Apply stylesheet" in order to format Dulko-style EXB files without formatting.

nolda commented 1 year ago

As far as I can see, there are two general approaches:

  1. Provide a standalone format-table.xsl stylesheet (with the format.xsl content included) separately from the EXMARaLDA JAR files for the user to set in the preferences.
  2. Include format-table.xsl (with adapted xsl:include/@href) in the Dulko stylesheet directory and provide some menu entry for calling it.
berndmoos commented 1 year ago

I think, I'll go for (2) :-) May take a while, though.

berndmoos commented 1 year ago

image

(No XSL behind the DULKO menu item yet. @nolda : Which one should I use?)

nolda commented 1 year ago

I have just added the corresponding XSLT stylesheet in #427.

berndmoos commented 4 months ago

I sense that this is done. I really do.