473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

calling VB.net function in a XSL transform

Hi

I have a page I need to access some VB.NET code in an XSL transform.

I've used scripting languages before in XSL transforms for string
manipulation and other simple tasks but have never needed to use VB. I think
what i need to do is outside the scope of a scripting language as it uses
the 'system.Security.Cryptography' namespace.

I've posted this in the XSL newsgroup as well.

Thanks in advance

amessimon
Nov 19 '05 #1
4 1544

You can't do this directly...

The only thing I could suggest, if it's absolutely necessary, is to write
your code you need into a VB.Net class library, then expose this by putting
a COM interface on it, then access this DLL in the scripting using
CreateObject.

The other solution would be to reevaluate your approach, and see if you can
put the data you need to access inside the message in your VB.Net code
before transforming, then access the inserted data it from the XSL.

Thanks.

Daniel.
"amessimon" <am********************@hotmail.com> wrote in message
news:8Y**************@newsfe1-gui.ntli.net...
Hi

I have a page I need to access some VB.NET code in an XSL transform.

I've used scripting languages before in XSL transforms for string
manipulation and other simple tasks but have never needed to use VB. I
think what i need to do is outside the scope of a scripting language as it
uses the 'system.Security.Cryptography' namespace.

I've posted this in the XSL newsgroup as well.

Thanks in advance

amessimon

Nov 19 '05 #2
in System.Xml.Xsl, see the IXsltContextFunction

-- bruce (sqlwork.com)

"amessimon" <am********************@hotmail.com> wrote in message
news:8Y**************@newsfe1-gui.ntli.net...
| Hi
|
| I have a page I need to access some VB.NET code in an XSL transform.
|
| I've used scripting languages before in XSL transforms for string
| manipulation and other simple tasks but have never needed to use VB. I
think
| what i need to do is outside the scope of a scripting language as it uses
| the 'system.Security.Cryptography' namespace.
|
| I've posted this in the XSL newsgroup as well.
|
| Thanks in advance
|
| amessimon
|
|
Nov 19 '05 #3
Hi Dan

I somebody in another group pointed out this article, i probably didnt
explain it too well but anyways this is pretty much exactly what i wanted to
do.

http://www.dotnetspider.com/technology/KBPages/967.aspx

regards

amessimon
http://www.dotnetspider.com/technology/KBPages/967.aspx

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...

You can't do this directly...

The only thing I could suggest, if it's absolutely necessary, is to write
your code you need into a VB.Net class library, then expose this by
putting a COM interface on it, then access this DLL in the scripting using
CreateObject.

The other solution would be to reevaluate your approach, and see if you
can put the data you need to access inside the message in your VB.Net code
before transforming, then access the inserted data it from the XSL.

Thanks.

Daniel.
"amessimon" <am********************@hotmail.com> wrote in message
news:8Y**************@newsfe1-gui.ntli.net...
Hi

I have a page I need to access some VB.NET code in an XSL transform.

I've used scripting languages before in XSL transforms for string
manipulation and other simple tasks but have never needed to use VB. I
think what i need to do is outside the scope of a scripting language as
it uses the 'system.Security.Cryptography' namespace.

I've posted this in the XSL newsgroup as well.

Thanks in advance

amessimon


Nov 19 '05 #4
Never knew that existed!

The issue for me with that is not only are you relying on an external object
existing, but the XSL has to be executed through Microsoft's .Net
XslTransform object... This isn't necessarily a problem, as long as the
XSL's aren't used in other contexts.

"amessimon" <am********************@hotmail.com> wrote in message
news:th***************@newsfe6-win.ntli.net...
Hi Dan

I somebody in another group pointed out this article, i probably didnt
explain it too well but anyways this is pretty much exactly what i wanted
to do.

http://www.dotnetspider.com/technology/KBPages/967.aspx

regards

amessimon
http://www.dotnetspider.com/technology/KBPages/967.aspx

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...

You can't do this directly...

The only thing I could suggest, if it's absolutely necessary, is to write
your code you need into a VB.Net class library, then expose this by
putting a COM interface on it, then access this DLL in the scripting
using CreateObject.

The other solution would be to reevaluate your approach, and see if you
can put the data you need to access inside the message in your VB.Net
code before transforming, then access the inserted data it from the XSL.

Thanks.

Daniel.
"amessimon" <am********************@hotmail.com> wrote in message
news:8Y**************@newsfe1-gui.ntli.net...
Hi

I have a page I need to access some VB.NET code in an XSL transform.

I've used scripting languages before in XSL transforms for string
manipulation and other simple tasks but have never needed to use VB. I
think what i need to do is outside the scope of a scripting language as
it uses the 'system.Security.Cryptography' namespace.

I've posted this in the XSL newsgroup as well.

Thanks in advance

amessimon



Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Mark Constant | last post by:
I have a drop-down list now and I got it so when something is selected from the drop down list it calls a JavaScript function. I want it so the value selected from the drop-down list is sent as a...
1
by: Fisch von Gestern | last post by:
I have tried to run the extension function/element examples provided with the Xalan-J download. I believe that my classpath is correct, and that my versions are up-to-date. However, I can't get...
8
by: Muthu | last post by:
I've read calling conventions to be the order(reverse or forward) in which the parameters are being read & understood by compilers. For ex. the following function. int Add(int p1, int p2, int...
1
by: Brian McGuinness | last post by:
I have a question about using the STL transform algorithm in a function. What I want to do is define a group of array classes to represent APL-style arrays (arrays in which the number of...
11
by: Bore Biko | last post by:
Dear, I have function that transform time from secconds to string formated as dd:hh:mm:ss (days:hours:minutes:seconds), but it doesent work correctly... Here s code compiled with gcc it goes...
0
by: nickyeng | last post by:
#include <iostream> #include <fstream> #include <string> #include <map> #include <iterator> using namespace std; void f(string str){ transform(str.begin(), str.end(), str.begin(),...
1
by: eric_jin | last post by:
i wrote a c# webservice to call matlab functions. add is the function written in matlab,and then make it dll to use in c#; //add.m function result=add(left,right) result=left + right; ...
12
by: KIRAN | last post by:
hi, the grammer for any programming language says that when a function is called by another function,the callee after executing it's body should return to the point where it left in the caller.....
2
by: ph33red | last post by:
Hi, I'm having a problem getting my code to pull the appropriate information when I call for it via URL. (example: http://..../.php?id=2). For some reason I can't get it to pull the information for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.