Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 8th, 2013, 07:46 AM
Registered User
 
Join Date: May 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Encrypting XSL stylesheets

Hi,
I am using XSLT 1.0. I use XML spy for development. I have many XSL files where i have provided some business mappings. I do not want to expose these XSL file contents to user. I want to encrypt these XSL files so that user cannot see the mappings provided in XSL files but if they run them from XML Spy then they should be able to see the correct output (not encrypted).
How to achieve this?
Please help!

Thanks in advance,
Ashwini
 
Old May 8th, 2013, 10:23 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Saxon Enterprise Edition has a facility for obfuscating stylesheets decribed here:

http://www.saxonica.com/documentatio.../packaged-xslt

which may meet your needs, although it's not secure encryption. However, this will only allow the stylesheets to be run under Saxon, not under XML Spy.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
 
Old May 26th, 2013, 08:16 AM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

Michael,

This is pretty interesting and might save me some time. I have written a simple encryption/decryption library which stores the stylesheet as a single string (imports and includes) in a SQLite database. Its not 100% secure (I don't think anything is 100% secure), but it does make it very difficult to decrypt. Nevertheless, I want to try your example out. The link you provide to use the zip runs from the command line. Is there any documentation for running from embedded code?

Thx

Phil





Similar Threads
Thread Thread Starter Forum Replies Last Post
Testing my stylesheets BuckBazooka XSLT 4 November 15th, 2010 02:44 PM
App_Themes stylesheets Will ASP.NET 4 General Discussion 3 August 20th, 2010 02:07 AM
Accessing variables from parent stylesheets in included stylesheets apollo13 XSLT 2 March 31st, 2010 03:30 AM
passing parameters to xsl stylesheets smys123 Java Basics 2 June 22nd, 2007 03:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.