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 10th, 2007, 08:20 AM
Authorized User
Join Date: Jun 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling external scripts from XSLT


I'd like to know if it is possible to call external programs from my stylesheet that would return a node for example. Ths goal of this is to be able to parse a complicated flat string with perl and return a list of nodes.


Old June 10th, 2007, 09:27 AM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

It's possible in principle, but the details depend entirely on the XSLT processor that you are using. Look in the product documentation for "extension functions".

With XSLT 2.0 you can do some pretty complex string parsing within the XSLT language, using instructions such as xsl:analyze-string.

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Old June 25th, 2007, 03:55 AM
Registered User
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


I have the following problem:

Here is the fragment of the script:
<xsl:template match="some-template">
  <xsl:variable name="xslScript">...</xsl:variable>
  <xsl:variable name="xmlFile">...</xsl:variable>
  <xsl:variable name="startMode">...</xsl:variable>

  ... Here I need to call stylesheet $xslScript for $xmlFile file in mode $startMode to retrive some node set...

How can it be implemented using the Microsoft XSL transformer?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling to an external .jar file tony_s XSLT 3 December 16th, 2006 05:20 PM
PakageMaker & External scripts murraywj Xcode 1 May 12th, 2006 05:00 PM
calling an external application forlorn Classic ASP Professional 0 August 19th, 2005 03:26 AM
calling an external application forlorn Classic ASP Basics 0 August 19th, 2005 03:22 AM
Newbie: XSLT & Scripts kwilliams XSLT 13 August 5th, 2005 11:39 AM

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