Thanks! I have been using special XML editor that took care of these things 
before but I will try the script :). 
Jan 

On Monday, 20 April 2020 15:12:54 UTC+2, Thomas Passin wrote:
>
>
> On Monday, April 20, 2020 at 12:20:48 AM UTC-4, Iohannes wrote:
>>
>> Hi, a beginner here again.
>>
>> I would appreciate some advice on how to se tup Leo. I am no professional 
>> programmer. I am doing research in humanities but I like to do some little 
>> stuff here and there.
>>
>> - ideally also xQuery and XSLT
>>
>
> Leo will colorize xml files if you start them with the directive @language 
> xml. For tasks like validating, running transforms, etc., it's probably 
> best to learn how to create little python scripts that you turn into 
> buttons.  They can also be attached to a hot key if you like.  Here is what 
> a script to run an xslt transform using Saxon might look like:
>
> import subprocess
> sax = r'java -jar d:\xml\saxon6-5-5\saxon.jar'.split()
>
> # create this command:
> # sax -o pass1.xml merge_driver.xml merge_pass1.xsl
>
> sax.extend([
>         '-o',
>         'pass1.xml',
>         'merge_driver.xml',
>         'merge_pass1.xsl'
>        ])
>
> subprocess.call(sax)
>
> So these little launch scripts aren't hard to create.
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f6759959-139d-4b09-8122-2928e9b82de1%40googlegroups.com.

Reply via email to