Google Answers Logo
View Question
 
Q: Scripting within an XSLT document ( No Answer,   1 Comment )
Question  
Subject: Scripting within an XSLT document
Category: Computers > Programming
Asked by: donphiltrodt-ga
List Price: $12.00
Posted: 13 May 2003 18:45 PDT
Expires: 14 May 2003 01:19 PDT
Question ID: 203399
What XSLT engines, if any, allow the XSLT document author to call
a script parser (Perl, python, VBscript) from within the XSLT
document?

DISCUSSION: XSLT has it's strengths and weaknesses.  For certain
document processing applications, using either XSLT or, say, Perl
exclusively isn't the best course.  Some tasks are simply better
suited for different technologies... so can I create an XSLT document
that contains (in addition to XSLT markup) Perl code?


RESTATEMENT OF QUESTION: Which XSLT engines (if any) allow me to
encapsulate the power and flexbility of a procedural scripting
language (like Perl) with the functional, set-based power of XSLT?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Scripting within an XSLT document
From: mathtalk-ga on 13 May 2003 23:34 PDT
 
Hi, donphiltrodt-ga:

The idea of extending the non-procedural paradigm of XSLT by embedding
scripted procedural code within has been considered by several people.

Of the major engines the biggest plunge seems to have been taken by
Microsoft, in the MSXML implementation of the DOM API.  See here for a
specific element that allows for embedded scripting:

http://msdn.microsoft.com/library/en-us/xmlsdk/htm/xsl_elm_qz_4s50.asp

The Microsoft approach aims to allow for any scripting language at all
to be used.

One suggested application for such a mechanism is "validation" logic. 
Here's a page that kicks around that and a few other corners of the
subject:

http://www.xmleverywhere.com/newsletters/20000329.htm

regards, mathtalk-ga

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy