xsl-list
[Top] [All Lists]

Re: [xsl] Data type conversion in xslt 2

2015-03-06 03:24:51
Take a look at the EXPath file and binary modules: both implemented in Saxon 
9.6.

Michael Kay
Saxonica
mike(_at_)saxonica(_dot_)com
+44 (0) 118 946 5893




On 6 Mar 2015, at 00:45, Joseph L. Casale jcasale(_at_)activenetwerx(_dot_)com 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> 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

--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>