Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2006, 09:22 AM
Registered User
 
Join Date: Mar 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default executing external command from XSLT

Hi,
I have to run a c++ program which outputs a text file, that I then process with an XSLT stylesheet. To make the process simpler, I was wondering if there is an element or a function in XSLT that allows to excute an external command and to store the result in a variable.
Please advise. Thanks,
Francine.

 
Old June 9th, 2006, 09:40 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

XSLT supports calls to external functions in principle, but the details of the mechanism depend entirely on the XSLT processor you are using.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old June 9th, 2006, 10:39 AM
Registered User
 
Join Date: Mar 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We are using saxon8.6

 
Old June 9th, 2006, 11:18 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

You can find full information on writing extension functions for Saxon at http://www.saxonica.com/documentatio...functions.html

Only Java is supported directly, but of course you can write a Java stub that calls other languages if you are feeling enterprising.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old June 9th, 2006, 11:26 AM
Registered User
 
Join Date: Mar 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks!






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with executing some command on explorer 6+ Kayodeog BOOK: Beginning JavaScript 3rd Ed. ISBN: 978-0-470-05151-1 0 October 9th, 2008 08:08 AM
executing sql command redface Crystal Reports 0 April 6th, 2005 05:14 PM
Executing External Applications(.net) pkgonline .NET Web Services 0 February 21st, 2005 09:34 AM
Executing and monitoring external programs jacob C# 3 February 24th, 2004 04:09 PM
Executing an external program. saint VB.NET 2002/2003 Basics 3 July 22nd, 2003 08:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.