[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Deploying xsl sheets in Java Environment

Subject: Re: Deploying xsl sheets in Java Environment
From: Johannes Döbler <jd@xxxxxxxxxxxxxx>
Date: Mon, 13 Aug 2001 17:42:10 +0200
xsl sheets
seems to be a little off topic for xsl-list, but here are some ideas:

Easy way: make the xsl file read-only (and additionally encrypt it by using a lot of for-each instructions?)
Hard way: include the xsl file into your jar-file and then use Class.getResourceAsStream() or ClassLoader.getResourceAsStream() to get a inputstream to it and pass this stream to your xsl processor. The processor will certainly have an initializer to read the stylesheet from a stream instead of a file object.


Cheers,
Johannes


Hi.

> I need to deploy a xsl document that converts the input XML document into
> another XML document that is used at the backend. One way of deploying
this
> xsl file is to place it in a config directory and access it from the Java
> code. However, the config directory is deployed at the customer's server
> site and I don't want the customers to be able to access this xsl file (to
> avoid accidental deletes and changes)....What are my options? Is there a
way
> I can encrypt this file? I am not using any application server...

For speed and obfuscation I guess you may complile a stylesheet into a java
class. As far as I remember, alphaworks.ibm.com has a technology and so has
the apache xml initiative. And many more.
If this is ony to secure the stylesheet itself - not access to it, I guess
it will be a right solution.

Bye.
/lexi


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.