On May 17, 2006, at 4:19 PM, John Horner wrote:
much the same as if I'm testing a Perl script and I hit "Run" and
see the results in the Output window, except that of course there
are two documents involved with XSLT/XML transforms.
Is there any way to do this with BBEdit? Via an AppleScript or a
worksheet? Assuming of course that one has an xslt library which
can be called to do the actual work.
I normally do this by keeping a shell worksheet open alongside a text
document window, then simply copying the filenames of documents that
are open in the text window and pasting into the shell worksheet to
invoke xsltproc, as in:
xsltproc /path/to/file.xsl /path/to/your/file.xml
this isn't the most elegant solution, but it's handy enough and when
working with bunches of source files it's nice to have them all right
there in a single text window. you could futz around with an
AppleScript to prompt for "choose" file if you wanted...up to you.
and of course you can pipe STDOUT from the xsltproc back into a new
BBEdit textwindow, if you're getting errors and warnings and want to
keep STDERR and STDOUT separated.
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>