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.
How to execute XSLT code outside Oxygen
-
- Posts: 4144
- Joined: Fri Mar 28, 2003 2:12 pm
Re: How to execute XSLT code outside Oxygen
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
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
-
- Posts: 14
- Joined: Tue Feb 10, 2009 1:50 pm
Re: How to execute XSLT code outside Oxygen
a simple google search will provide you will the results
Re: How to execute XSLT code outside Oxygen
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
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
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:
Hope this helps a bit.
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