View Single Post
Old 02-20-2015, 02:20 PM   #86
bmix
Member
bmix began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Mar 2014
Location: Budapest/Hungary
Device: Kindle4,reMarkable2,MoonReader Pro
Quote:
Originally Posted by Doitsu View Post
@KevinH & user_none:

IMHO, Javascript would be the perfect embedded scripting language for Sigil, because it has been designed for website manipulation and the Qt Quick library already has JavaScript support.
What I find much more interesting would be to use the language, that has been created with a single cause in mind: the processing of XML DOM trees. I am talking about XSLT. Now, this surely would not suite to be an embedded language, it is quite exotic, and most people will be fine with Python. On the other hand, I often find myself sighing: "Oh, if I only could apply a quick XSL-stylesheet (not to be confused with CSS) or a single template on this xhtml!"

I am trying to write a wrapper around 'xsltproc', but I just started checking out the new version of Sigil today, and currently I am pretty tired, so that has to wait. In it I would like to offer the possibility to apply a style upon the currently opened editor document (would need a way, to find out, which file is being frontmost) or selected or all xhtml files. Also, with xsltproc the problem is, that it only supports XSLT v1, which is a little weak. But may be well enough suited for the task at hand.

Andreas
bmix is offline   Reply With Quote