[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] How can I preserve ASCII Encoding Character Sets?


Subject: Re: [xsl] How can I preserve ASCII Encoding Character Sets?
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 06 Nov 2012 21:37:31 +0000

I've no idea what an "ASCII Encoding Character Set" is - do you perhaps mean you want to preserve the particular representation of the non-breaking space character using the numeric character reference '&#x00A0;'?

If so, why? And how precisely do you want it preserved? Would '&#xA0;' be OK? What about '&#160;'?

I'm a bit surprised that you should want at the same time to obfuscate your code and to retain irrelevant details of its visual representation. Perhaps I've misunderstood.

Michael Kay
Saxonica

On 06/11/2012 19:05, Philip Vallone wrote:
Hi,

This question is related to a question I asked a few months ago about finding a way to distribute a set of stylesheets that makes it difficult for the stylesheets to be modified or stolen (e.g. protect the intellectual property). See http://markmail.org/thread/qv3z7yzdlr5ht7rw

What I ended up doing is creating a stylesheet that combines my stylesheets into one xsl file. I then encrypt the file and store it as a binary. I have created a "wrapper" application that basically decrypts the file back to xsl and passes the xsl string to Saxon to do its work. Everything works great except when I compile my stylesheets into a single xsl file, some ASCII Encoding Character Sets are not preserved:
<xsl:when test="$prefix = 'pf01'">&#x00A0;</xsl:when>


How can I preserve these ASCII Encoding Character Sets?

Regards,

Phil


Current Thread
Keywords
xsl