473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

invoking outside programs from XSLT?

Hi All,

is there a (reasonably) portable way in XSLT to invoke an external
program? I've got data I want to represent as a number of charts.
I can write SVG easily enough (and they look nice in PDF), but I
want to produce PNG for inclusion on a website.

Can I invoke a program from inside XSLT? I can include instructions
in the Makefile to invoke the program to process the SVG, but I might
prefer to do it directly from XSLT.

I'm using SAXON 8.2b, for what it's worth... I could use a SAXON
extension if needed (and it exists... I suspect it does), but if
there's a more portable way I'd rather do that.
Keith
--
Keith Davies
ke**********@kjdavies.org http://www.kjdavies.org/
"Some do and some don't. I *hate* that kind of problem."
"Understandable. Consistency is important with fuck ups."
Jul 20 '05 #1
1 1282
Keith Davies <ke**********@kjdavies.org> writes:
Hi All,

is there a (reasonably) portable way in XSLT to invoke an external
program? I've got data I want to represent as a number of charts.
I can write SVG easily enough (and they look nice in PDF), but I
want to produce PNG for inclusion on a website.

Can I invoke a program from inside XSLT? I can include instructions
in the Makefile to invoke the program to process the SVG, but I might
prefer to do it directly from XSLT.

I'm using SAXON 8.2b, for what it's worth... I could use a SAXON
extension if needed (and it exists... I suspect it does), but if
there's a more portable way I'd rather do that.


You can use an extension function (saxon allows you to escape to java
for example) an alternative that is in some sense more portable is to
use the document() function with a URI that points to a server and then
arrange that your program runs on the server using cgi-bin script or
some other technology of your choice.

David
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ted | last post by:
Was wondering if XSLT alone is appropriate for the following situation. From XML, I'm creating a small website (around 50 pages) with pages that link to each other through a nav menu and a...
1
by: Mohit | last post by:
Hi Friends I have to call 1 of the 2 child XSLT files from the Main XSLT file based on some criteria. I want one child XSLT file will be executed by version 1 of XSLT processor and the other by...
2
by: JeffFinnan | last post by:
I am trying to develop some script to open files for use in a particular plugin called Chime which is used for molecular visualization. I am just experimenting right now. The whole script works...
10
by: John Henry | last post by:
Hi all, I have a need to create a Python script on the fly from another Python program and then execute the script so created. Do I need to invoke Python through os.spawnl or is there a better...
2
by: David Laub | last post by:
A transform that works fine in XMLSPy fails when I run it under dot net. I've run many other transforms successfully in dot net so there is something "special" about this transform I just...
3
by: Teksure | last post by:
Hi group, searching in the Internet I found two products for XML which incorporate a very robust debugger for XSL/XSLT, I would like you to see these products and then, give me your opinion about...
4
by: Rodrigo Meneses | last post by:
Hello. Does somebody know how to invoke a web service using reflection in c#? Thanks in advance -Rodrigo Meneses Pinillos
1
by: Sergey Dubinets | last post by:
In effort to prioritize our goals we composed the list of random features each of them may add value to set of XSLT tools offered from Microsoft. 1. XSLTc (Compiler for XSLT...
41
by: z | last post by:
I use Visual C 2005 to develop my programs. One in particular is crashing in very specific and hard to replicate situations, made worse by the fact it only crashes when run -outside- the dev - as...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.