xsl-list
[Top] [All Lists]

RE: [xsl] Calling Saxon Transform from .NET API

2008-08-24 09:17:23
The saxon-resources download includes sample C# code for invoking Saxon on
.NET (see the samples/cs directory). It shouldn't be very difficult to
translate this to VB - it involves the same calls, just trivially-different
surface syntax.

Michael Kay
Saxonica
 

-----Original Message-----
From: Ronnie Royston [mailto:rhroyston(_at_)gmail(_dot_)com] 
Sent: 21 August 2008 17:25
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Calling Saxon Transform from .NET API

Saxon documentation refers to a .NET API, but I don't have 
the skills to comprehend and articulate the corresponding VB 
code.  Any help from this esteemed group of masters would be 
appreciated.

I normally run from the command line, transform knowledge.xml 
testxsl.xsl customer="Mr. Customer" project="Hello World".  
The output doc is defined in the stylesheet.  I've figured 
out how to use the ShellExecute WinAPI function to run a .bat 
file to do a command-line transformation, but that's a crappy 
work-around that I would be ashamed to publish.

Using VB, I need to transform with the Saxon Engine handing 2 
parameters, "customer" and "project".  Determining if Saxon 
is installed on machine using VB is another battle for another day...

Can someone send me a sample VB subroutine (code) that would 
transform using SaxonB?

I know it's not exactly a pure XSLT question, but I know 
there's talented programmers here that could do this is about 
30 seconds...
So, pardon the slightly off topicness of the post, and thank you.

- Ronnie Royston

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>