Re: [xsl] Data type conversion in xslt 2

Subject: Re: [xsl] Data type conversion in xslt 2
From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 6 Mar 2015 04:55:56 -0000
Maybe you could use a standard XSD type such as xs:base64Binary
(http://www.w3.org/TR/xmlschema-2/#base64Binary)
or xs:hexBinary (http://www.w3.org/TR/xmlschema-2/#hexBinary)

Cheers,
Dimitre Novatchev

On Thu, Mar 5, 2015 at 4:45 PM, Joseph L. Casale
jcasale@xxxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
wrote:
> I have some transforms that generate source code and window
> reg files. The reg files include REG_DWORD and REG_MULTI_SZ
> values. The xml input is required to setup defaults, the REG_DWORD
> values aren't difficult to deal with when using integer input in the xml
> as they require decimal to hex conversion. However the REG_MULTI_SZ
> values are required to be a sequence of null-terminated strings,
> terminated by an empty string (\0). So this ends up being a comma
> separated list of bytes.
>
> What is the most optimal way to produce such output in xslt?
>
> Thanks!
> jlc
> 



-- 
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all
------------------------------------
Quality means doing it right when no one is looking.
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
-------------------------------------
To achieve the impossible dream, try going to sleep.
-------------------------------------
Facts do not cease to exist because they are ignored.
-------------------------------------
Typing monkeys will write all Shakespeare's works in 200yrs.Will they
write all patents, too? :)
-------------------------------------
I finally figured out the only reason to be alive is to enjoy it.

Current Thread