Menu

Automated export using XSL ?

Denis
2015-05-03
2015-05-20
  • Denis

    Denis - 2015-05-03

    Hello

    is there any possibility to automate XSL-Export completely (e.g. BAT with kpscript) ?
    I have studied this topic: http://sourceforge.net/p/keepass/discussion/329220/thread/b90e6297/
    tried the samples posted there, but there is no sample submitting three file names: input, XSL, output.

    Regards
    Denis

     
  • wellread1

    wellread1 - 2015-05-03

    It appears that KPScript does not support Export using XSL stylesheets that are specified on the command line. At least I haven't found a syntax that works. However, KPScript will prompt for the stylesheet if -Format:"Transform using XSL Stylesheet" is supplied on the command line.

     
  • Paul

    Paul - 2015-05-03

    Feature request?

    cheers, Paul

     
  • Denis

    Denis - 2015-05-05

    Yes, as I see the XSLt as easiest way to generate files in an arbitrary format (in my case INSERT SQLs) just on the fly rather than writing plugin.

     

    Last edit: Denis 2015-05-05
  • Denis

    Denis - 2015-05-08

    Sorry, should I do smthg more ?
    Kind Regards
    Denis

     
  • Paul

    Paul - 2015-05-08

    I wouldn't think so. Dominik will have read this thread and consider your suggestion.

    cheers, Paul

     
  • Dominik Reichl

    Dominik Reichl - 2015-05-08

    I've now added an optional command line parameter "-xslfile:". If a path is passed using this parameter, KPScript will use this XSL file instead of asking which one to use.

    Here's the latest KPScript development snapshot for testing:
    http://keepass.info/filepool/KPScript_150508.zip

    Thanks and best regards,
    Dominik

     
  • Denis

    Denis - 2015-05-19

    Hi Dominik,

    could you provide a sample BATch file for windows ? I couldn't mange it to use "Tranmsform using XSL Stylesheet"... :(
    Thx a lot in Advance
    Danke !

    Denis

     
  • Dominik Reichl

    Dominik Reichl - 2015-05-19
    KPScript.exe -c:Export "C:\Test\MyDb.kdbx" -pw:MyPw -Format:"Transform using XSL Stylesheet" -outfile:TargetFile.txt -xslfile:XSL\KDBX_PasswordsOnly.xsl
    

    Note that if you're using a translation, you must use the translated name of "Transform using XSL Stylesheet"; see the export dialog for its name.

    Best regards,
    Dominik

     
  • Denis

    Denis - 2015-05-19

    Sorry, Dominik, how could I provide a Group Naem (I'm exporting single Groups)...

    Lot of Thx
    Denis

     
  • Paul

    Paul - 2015-05-20

    You can only export the entire database using KPScript.
    http://keepass.info/help/v2_dev/scr_sc_index.html

    cheers, Paul

     

Log in to post a comment.

MongoDB Logo MongoDB