Skip to content

Instantly share code, notes, and snippets.

@JekoTronik
Last active April 9, 2020 14:56
Show Gist options
  • Save JekoTronik/ec55854790ebc825721ce27cb9d1cbba to your computer and use it in GitHub Desktop.
Save JekoTronik/ec55854790ebc825721ce27cb9d1cbba to your computer and use it in GitHub Desktop.
(use-modules (sxml simple)
(sxml match))
(define (ciqual-table->sxml xml-file)
(catch #t;'system-error
(lambda ()
(call-with-input-file xml-file
(lambda (xml-port)
(xml->sxml xml-port #:trim-whitespace? #t))))
(lambda (key . parameters)
(format #f "'not-existing-file': Aucun fichier ou dossier de ce type.\n"))))
(ciqual-table->sxml "not-existing-file")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment