Page 1 of 1

How to execute XSLT code outside Oxygen

Posted: Fri Feb 27, 2009 2:42 am
by Krishn60
Hi

I have written XSLT code to convert XML files in Oxygen. I need to use the code by calling it from a VB code.

Is there a command to use or a way to convert the XSLT code to an executable object. I am totally new to XSLT and I need some detailed guidence on how to do it.

Thanks
Krishnan.

Re: How to execute XSLT code outside Oxygen

Posted: Fri Feb 27, 2009 11:09 am
by sorin_ristache
Hello,

Oxygen provides support for applying an XSLT transformation to an XML file by defining and running a transformation scenario but the transformation or the scenario cannot be converted to an executable object. We do not know how to apply the transformation in Visual Basic.


Regards,
Sorin

Re: How to execute XSLT code outside Oxygen

Posted: Fri Feb 27, 2009 1:33 pm
by JohnBampton
a simple google search will provide you will the results

Re: How to execute XSLT code outside Oxygen

Posted: Fri Feb 27, 2009 8:29 pm
by sandeepm
Hey Krishna,

Do have a look at the link below which suggests how to link the xml and stylesheet and then view the output.

http://www.w3schools.com/xsl/xsl_transformation.asp

Cheers and Good Luck!
Sandeep

Re: How to execute XSLT code outside Oxygen

Posted: Wed Mar 18, 2009 6:11 pm
by robert3L
It kind of depends on what XSLT processor you want to use. If you're using Saxon, that's a Java app and you can run it from the command line when you have a JRE/JDK installed. I have a batch file that runs a custom XSLT stylesheet. Here are the relevant parts of it with some comments added:

Code: Select all


REM Path to Saxon:
SET SAXON_HOME=C:\j2sdk1.4.2_19\saxon
REM Path to Java (%JAVA_HOME is Windows environment variable)
SET JAVA_BIN_HOME=%JAVA_HOME%\bin
"%JAVA_BIN_HOME%\java" -cp "%SAXON_HOME%\saxon.jar" com.icl.saxon.StyleSheet ../../../src/help.xml ../../my_stylesheet.xsl
Hope this helps a bit.