On 3/21/02 2:07 AM, "Stefan Bodewig" <[EMAIL PROTECTED]> wrote:

> On Wed, 20 Mar 2002, Jon Scott Stevens <[EMAIL PROTECTED]> wrote:
> 
>> I'm not talking about the code,
> 
> thanks ;-)
> 
>> but the idea of embedding shell script in XSLT?
> 
> It is not really like I have set a precedent here, I just implemented
> what I needed the same way other things in Gump work right now.
> 
>> Come on guys...Velocity DVSL isn't that hard to use...
> 
> Possibly.  Actually I still don't know too much about XSLT, what
> you've seen is mainly the result of stealing ideas from stylesheets
> Sam has written before combined with some wild guessing and
> experiments.
> 
> I'm not at all against moving from XSLT to something else to create
> what Gump needs, but the XSL sheets are here today.
> 
> But why is embedding shell script in DVSL better than embedding it in
> XSLT?  I guess I'm more with Scott and his vindico proposal that uses
> Ant instead of shell scripts (from my understanding of it).
> 
> The thing I dislike most when it comes to the stylesheet I've just
> committed is that it creates a shell script that creates a shell
> script.  I've done so because I couldn't figure out how to create
> multiple output files from within a stylesheet (I'd need one per
> <site>).  I guess I could have done so using Xalan redirects.
> 
> The dvsl user guide doesn't indicate if/how I could have done this
> with DVSL, but I'm by far no Velocity expert.  Is it possible?

Recalling the original XSLT, in DVSL the expression of the same thing would
be something like

 ssh $node.attrib("username")@$node.attrib("server") rm -f
$node.selectSingleNode("docroot/text()")/deliver-$node.attrib("name").sh

geir
-- 
Geir Magnusson Jr.                                     [EMAIL PROTECTED]
System and Software Consulting
"We will be judged not by the monuments we build, but by the monuments we
destroy" - Ada Louise Huxtable


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to