After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 350816 - make it possible for xsltproc to read stylesheet from command line
make it possible for xsltproc to read stylesheet from command line
Status: RESOLVED INVALID
Product: libxslt
Classification: Platform
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-10 21:49 UTC by Waldo Bastian
Modified: 2006-08-11 08:32 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Waldo Bastian 2006-08-10 21:49:52 UTC
Possibility to have xsltproc read stylesheet from command line, like AWK or sed -e. This makes it possible to make a self-contained script based on xsltproc that operates on XML files.
Comment 1 Daniel Veillard 2006-08-11 08:13:17 UTC
I am a bit surprized by the request. a command line is one line,
basically no stylehseet will fit gracefully there, but you should be able to
use stdin though by using '-' as the filename which is interpreted that way by
libxml2:

   echo .... | xsltproc - instance.xml 

should work I guess, and looks nicer

Daniel
Comment 2 Waldo Bastian 2006-08-11 08:26:52 UTC
Indeed, I must be blind. Pretty sure I looked for that option.
Comment 3 Daniel Veillard 2006-08-11 08:32:44 UTC
Okay :-) if it doesn't work as expected open another bug, because 
honnestly I don't think it's used very often,

Daniel