How to execute XSLT code outside Oxygen

Here should go questions about transforming XML with XSLT and FOP.
Krishn60
Posts: 3
Joined: Wed Dec 24, 2008 7:01 pm

How to execute XSLT code outside Oxygen

Post by Krishn60 » Fri Feb 27, 2009 2:42 am

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.

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: How to execute XSLT code outside Oxygen

Post by sorin_ristache » Fri Feb 27, 2009 11:09 am

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

JohnBampton
Posts: 14
Joined: Tue Feb 10, 2009 1:50 pm

Re: How to execute XSLT code outside Oxygen

Post by JohnBampton » Fri Feb 27, 2009 1:33 pm

a simple google search will provide you will the results

sandeepm
Posts: 10
Joined: Tue Feb 24, 2009 1:54 pm

Re: How to execute XSLT code outside Oxygen

Post by sandeepm » Fri Feb 27, 2009 8:29 pm

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

robert3L
Posts: 21
Joined: Sun Jan 15, 2006 11:36 am

Re: How to execute XSLT code outside Oxygen

Post by robert3L » Wed Mar 18, 2009 6:11 pm

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.

Post Reply