Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #9296
| From | Victor Porton <porton@narod.ru> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Should I provide a value explicitly or infer it? |
| Date | 2018-09-23 23:49 +0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <po8u8d$12cb$1@gioia.aioe.org> (permalink) |
Here is a fragment of an RDF file:
int:Saxon
:lang lang:XSLT ;
:langMinVersion "1.0" ;
:langMaxVersion "2.0" ;
:scriptCommand ("saxonb-xslt"
[ :concat ("-xsl:" :script) ]
"-s:-"
[ :params [ :concat (:name "=" :value) ]]) ;
:debianPackage "libsaxonb-java" ;
:packageMinVersion "9.0" .
This file fragment "says" that to process XSLT format for version
"1.0"-"2.0" the software should call an OS command like:
saxonb-xslt -xsl:script.xsl -s:- X=1 Y=2
I am considering to add:
:executable "saxonb-xslt" ;
what would mean that to check if such scripts are available, my software
should check if there is "saxonb-xslt" executable in path specified PATH
environment variable.
But that the executable is "saxonb-xslt" can be inferred as the first
element of :scriptCommand.
So, should I provide `:executable "saxonb-xslt" ;` value or should I instead
infer it from :scriptCommand value?
The software is https://github.com/vporton/xml-boiler and the RDF (Turtle
format) file is
https://github.com/vporton/xml-boiler/blob/master/xmlboiler/core/data/interpreters.ttl
--
Victor Porton - http://portonvictor.org
Back to comp.programming | Previous | Next | Find similar | Unroll thread
Should I provide a value explicitly or infer it? Victor Porton <porton@narod.ru> - 2018-09-23 23:49 +0300
csiph-web