xslt transforms

  • Thread starter Thread starter adam
  • Start date Start date
A

adam

Hi

we have a need to store data on a PDA running pocket
pc2003 in an encrypted form which we do as xml, and then
transform it to html for display.

we are currently trying to use an embedded C# app with
the html viewer control to display the html. We chose
this over pocket IE because if the user turns off the
device with pocket IE showing, and then the device is
stolen, when switched on it will display the unencrypted
data.

The problem is how to transform the (decrypted) XML using
XSLT into HTML. We have have read that the compact
framework doesnt support xslt. This really surprised us
with the whole focus of dotnet on xml. Also, pocket IE
runs the transforms fine.

Is there a way of transforming the xml to html
(preferably using our stylesheet)?
(We can manage the decryption etc. fine).

Thanks

Adam
 
If PIE can perform transformations, you should be able to create a small eVC
DLL that would CoCreate MSXML2.DomDocument and use it to perform the
transform, then return the string to your C# app
 
adam said:
Thanks for this. If only I were a C programmer. Wed
thought of doing this with eVB using createObject, but it
seemed weird not to be able to do it in eVC# - there is
no CreateObject in eVC#? Rewriting the whole app in eVB
seemed a bit sledgehammerish. I thought you were supposed
to be able to do everything you could do in VB.net in C#?

There isn't any support for XSLT in the .NET Compact Framework, this applies
to both VB.Net and C#. (eVB != VB.Net)
You're going to have to P/Invoke the functionality using a small native dll.
It shouldn't require any C++ expertise, eVC++ should do most of the magic for
you. You'll have to Google for the API calls and how to make sure that
functions are exported as C style, and not mangled C++ style.
 
Back
Top